Disk-Space-Utilization

pwrite:設備上沒有剩餘空間。df -i, df -h 好的

  • January 26, 2013

在 Rackspace 雲伺服器上,我看到:

admin@foo:/etc/nginx$ sudo /etc/init.d/nginx start
Starting nginx: nginx: [crit] pwrite() "/var/run/nginx.pid" failed (28: No space left on device)
nginx.

admin@foo:/etc/nginx$ sudo df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       9.4G  6.6G  2.4G  74% /
udev             10M  8.0K   10M   1% /dev
none             25M   25M     0 100% /run
none            5.0M     0  5.0M   0% /run/lock
none            123M     0  123M   0% /run/shm

admin@foo:/etc/nginx$ df -i
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
/dev/sda1      1245184 154910 1090274   13% /
udev             31392    427   30965    2% /dev
none             31392   1374   30018    5% /run
none             31392      2   31390    1% /run/lock
none             31392      1   31391    1% /run/shm

有任何想法嗎?

您確實已經用完了空間/run(這是從/var/run較新版本的 Fedora 和可能的其他發行版上符號連結的)。檢查目錄並刪除所有不必要的文件,並考慮給它更多空間。

/var/run也許符號連結/run到?

引用自:https://serverfault.com/questions/472665