Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fatal 1: Can't write lock file--Postgres not starting!!!

Status
Not open for further replies.

dmg2206

MIS
Feb 15, 2002
54
0
0
US
Somehow, our Linux server was turned off this morning. When we restarted it, XServer wouldn't start. I can still get a terminal screen, but when I try to start postgres I get the following:

Code:
bash-2.05$ postmaster -D /usr/local/pgsql/data -i -p 5432
FATAL 1: Can't write lock file /tmp/.s.pgsql.5432.lock: No space left on device

Any idea what's going on here?
 
Filesystem:
Code:
/dev/hda5
1k-blocks:
Code:
381139
Used:
Code:
381138
Available:
Code:
0
Use%:
Code:
100%
Mounted on:
Code:
/

Filesystem:
Code:
/dev/hda1
1k-blocks:
Code:
46636
Used:
Code:
5976
Available:
Code:
38252
Use%:
Code:
14%
Mounted on:
Code:
/boot

Filesystem:
Code:
/dev/hda3
1k-blocks:
Code:
13520032
Used:
Code:
1131236
Available:
Code:
11702020
Use%:
Code:
9%
Mounted on:
Code:
/home

Filesystem:
Code:
none
1k-blocks:
Code:
63320
Used:
Code:
0
Available:
Code:
63320
Use%:
Code:
0%
Mounted on:
Code:
/dev/shm

Filesystem:
Code:
/dev/hda2
1k-blocks:
Code:
4893924
Used:
Code:
1648952
Available:
Code:
2996368
Use%:
Code:
36%
Mounted on:
Code:
/usr

Filesystem:
Code:
/dev/hda6
1k-blocks:
Code:
256667
Used:
Code:
56680
Available:
Code:
186735
Use%:
Code:
24%
Mounted on:
Code:
/var
 
The first part of the display shows your problem...

Filesystem: /dev/hda5
1k-blocks: 381139
Used: 381138
Available: 0
Use%: 100%
Mounted on: /

tmp, in your system is part of the / partition as you have not explicitly created a /tmp partition. As the display shows the / partition is full (Available: 0) so you need to free up some space in either the / directory or one of the directories under that partition (ie any partition not in one of your other explicitly created partitions).

Cheers - Gavin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top