#
DF shows no file systems processed
Posted by John Quaglieri on July-07:26 AM
A df-m command on the system shows:
Df-m
Df:no File Systems processed
On Openvz file systems is mounted on the hostnode. In order for OpenVZ to know about the filesystems it Reads/etc/mtab (which shows the data from/proc/mounts).
To fix the issue run
Cat/proc/mounts >/etc/mtab
#
About the problem of inodes occupancy 100% and how to solve it
Find the space is sufficient, and then df-i view the next inodes, found that the root directory inodes value usage is 100%
Workaround: Check with the following script to see in which directory the most files are below:
For i in/*; do echo $i; Find $i | Wc-l; Done (if determined to be under a directory, then/converted to the directory absolute path, such as/var/spool, use for I in/var/spool/*; do echo $i; Find $i | Wc-l; Done
The/VAR/SOPPL directory was eventually found to be the most. And then further determined that there are millions of files under the/var/spool/amavisd/quarantine directory, the machine has been unable to display the normal, and then Baidu looked under this directory is the mail server, processing spam live virus mail quarantine, understand why, Delete all files in this directory; Use the Xargs command to delete a larger number of files:
ls | Xargs-n RM-RF
Rm-rvf/var/spool/postfix/maildrop
About the problem of inodes occupancy 100% and how to solve it