[root@1]# service pound status
pound is stopped
ตรวจสอบการทำงานของระบบ
[root@1]# service postgresql restart
[root@1]# service postgresql status
postmaster is stopped
[root@1]# service postgresql restart
Starting postgresql service: [Failed]
postmaster dead but pid file exists
postmaster dead but pid file exists
Cause : To get a better idea on why postgres is not starting we can check the pgsql log under /var/log
# cd /var/log
# cd /var/log
# less pgsql
The above message states that database is not able to write any more to /tmp/s.PGSQL.5432.lock since there is no space left in "/tmp"
We can do df -h to confirm the space.
Jan 15 10:24:06 rgppaws001 postgres[29137]: [1-2] LOCATION: CreateLockFile, miscinit.c:919
Jan 15 10:24:52 rgppaws001 postgres[29256]: [1-1] FATAL: 53100: could not write lock file "/tmp/.s.PGSQL.5432.lock": No space left
on device
The above message states that database is not able to write any more to /tmp/s.PGSQL.5432.lock since there is no space left in "/tmp"
We can do df -h to confirm the space.
Resolution : Clear up the old files in "/tmp" directory. We can use rm -rf command to clear files. Once we get free space under "/tmp" we can try restarting the postgres service.
[root@1 log]# service postgresql restart
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]
[root@1]# service pound restart
ข้อมูลจาก http://community.arubanetworks.com