un petit error...
Nov. 16th, 2022 12:54 pmhm hm hm I think I made a mistake setting up mastodon
so i usually set up my servers to have a separate /home partition and naturally did that here too, with a / of 30gb, which is normally totally fine, i run lean installs.
the problem of course is that postgresql is storing the local database in /var/lib, oops. so we're fine for now but not forever.
is there any reason not to create /home/postgres, clone /var/lib/postgres contents over, and softlink /var/lib/postgres to /home/postgres?
or is it better to clone then edit postgresql.conf to point to /home/postgres?
eta: another mastodon instance administration told me to clone then edit postgresql.conf because system call reasons. and it worked! very cleanly too. genuine "phew" moment lol
so i usually set up my servers to have a separate /home partition and naturally did that here too, with a / of 30gb, which is normally totally fine, i run lean installs.
the problem of course is that postgresql is storing the local database in /var/lib, oops. so we're fine for now but not forever.
is there any reason not to create /home/postgres, clone /var/lib/postgres contents over, and softlink /var/lib/postgres to /home/postgres?
or is it better to clone then edit postgresql.conf to point to /home/postgres?
eta: another mastodon instance administration told me to clone then edit postgresql.conf because system call reasons. and it worked! very cleanly too. genuine "phew" moment lol