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.1here'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
| Greg Kroah-Hartman | [PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
| Andrew Morton | -mm merge plans for 2.6.23 |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Herbert Xu | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Rémi Denis-Courmont | [PATCH 01/14] Phonet global definitions |
