标签:
#
df shows no file systems processed
Posted by John Quaglieri on 27 July 2012 07:26 AM
A df -m command on the system shows:
df -m
df: no file systems processed
on Openvz file systems are 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
#
关于inodes占用100%的问题及解决方法
发现空间是足够的,然后df -i 查看了下inodes,发现根目录下的inodes值使用率为100%了
解决方法:通过以下脚本进行检查,查看到底哪个目录下面的文件最多:
for i in /*; do echo $i; find $i | wc -l; done(如果确定是某个目录下面,则/转换为该目录绝对路径,如/var/spool,则使用for i in /var/spool/*; do echo $i; find $i | wc -l; done)
最终发现/var/soppl目录最多。然后又进一步确定是/var/spool/amavisd/quarantine 目录下面有上百万个文件,机器已经无法正常显示了,后来百度查看了下这个目录是邮件服务器,处理垃圾邮件活病毒邮件隔离的,明白原因了,删除该目录下所有文件;使用xargs命令来删除数量比较多的文件:
ls | xargs -n 10 rm -rf
rm -rvf /var/spool/postfix/maildrop
标签:
原文地址:http://www.cnblogs.com/jouny/p/4320786.html