×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

(OP)
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:

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?

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

What does a df -k show?

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

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

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

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

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

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

Filesystem: /dev/hda6
1k-blocks: 256667
Used: 56680
Available: 186735
Use%: 24%
Mounted on: /var

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

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close