I recently had a crashed disk. I recovered from backup, and made some
changes to fstab.
Now I can't get postgresql to start.
I get an error that no controlling tty. If I try to start it anyway
it tells me that postmaster isn't in the same directory as pg_ctl (but
it is).
Maybe somebody else can spot what I'm missing.
errors:
GTX-440:/root#su - _postgresql
sh: No controlling tty (open /dev/tty: Permission denied)
sh: warning: won't have full job control
$ pg_ctl -D data/ start
sh: cannot create /dev/null: Permission denied
fgets failure: Permission denied
The program "postmaster" is needed by pg_ctl but was not found in the
same directory as "/usr/local/bin/pg_ctl".
Check your installation.
$ locate pg_ctl
/usr/local/bin/pg_ctl
/usr/local/man/man1/pg_ctl.1
$ locate postmaster
/usr/local/bin/postmaster
/usr/local/man/man1/postmaster.1
here's the changes I made to fstab (sd4 is the crashed disk):
$ cat /etc/fstab
/dev/wd0a / ffs rw 1 1
/dev/wd1a /home ffs rw,nodev,nosuid,softdep 1 2
/dev/wd0d /usr ffs rw,nodev 1 2
/dev/wd0b /var/squid/cache/ mfs rw,async,-s=252400 0 0
#/dev/sd0a /usr/obj ffs rw,nodev 1 2
/dev/sd3a /usr/src ffs rw,nodev 1 2
#/dev/sd4a /var/www ffs rw,nodev 1 2
/dev/sd0a /var/www ffs rw,nodev 1 2
--Bryan