How to resolve `FATAL: could not write lock file "postmaster.pid": No space left on device` error? [closed] How to resolve `FATAL: could not write lock file "postmaster.pid": No space left on device` error? [closed] postgresql postgresql

How to resolve `FATAL: could not write lock file "postmaster.pid": No space left on device` error? [closed]


This is not really a programming question so it should be on superuser.

Short answer -

reboot the system.

If the system comes back up, try:

find / -mtime -3 -size +100000 -exec ls -ls {} \; | sort -n

The largest newest files will be at the bottom of the list. If you can see that the file is not part of an app- a data file for example- remove it. You need at least 5% free space on /.

Long term you must add more disk space, like double or triple what you have.