No space left on device Low Disk Space

No space left on device

A, df -h to view disk usage

df -hl /opt

Two, df -i to see inode usage

Three, Find / -size -xdev 100M + {} -l -exec LS;
du---max the -X-depth = -H. 1 which directories occupy too

lsof | grep testfile
lsof | grep deleted Note: This indicates that the deleted file has been deleted, but the file handle is not released, the command will process all of the unreleased file handles listed

Follow the general several files:
. 1, / usr / local / Nginx / logs / the access.log
2, / var / log / Message
. 3, / var / log / Maillog

Just use
echo ""> /usr/local/nginx/logs/access.log
echo ""> / var / log / the Message
echo ""> / var / log / maillog

Guess you like

Origin www.cnblogs.com/cloudwas/p/12048882.html