We recently moved the data directory of our database to a new hard drive because the old one was full.
I needed to clean up some space in order to install something, so I deleted the old data directory.
Now postgres doesn't start anymore, presumably because I deleted the postgresql.config
There are no logs in /var/log/postgres/...
.
The data directory we copied to the new hard drive doesn't contain a postgresql.conf, i don't know why though.
Deleting the old data directory also didn't free any space even though the folder was 21GB, so I cannot use initdb
to create a new config and point it to the new data directory because the disk is full.
Is there any way I can get the system back up and running? We are using postgres 12, if that matters.