CENTOS 磁盘占用100%(20G)但是文件系统只占用了1.8G,到底什么原因导致的
高洛峰
高洛峰 2017-04-25 09:01:32
0
5
930

Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 20G 19G 4.0K 100% /
tmpfs 938M 0 938M 0% /dev/shm
/dev/xvdb1 20G 173M 19G 1% /pan2

我用du -h --max-depth=1 / 查看所有文件只占用了1.8G。到底什么原因导致的磁盘100%?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all (5)
迷茫

df -lh查看磁盘用量
df -i查看inode用量
du -sh |*sort -nView folder size

After cleaning the disk, you find that the capacity has not been reduced, thenreboot

    巴扎黑

    Not enough inode nodes

      伊谢尔伦

      You can use lsof -a | grep delete to check. It may be that some files are not really deleted. Just kill pid.

      Note: Root is required

        我想大声告诉你

        May I ask if the poster has any solution? I am in the same situation as you.

          过去多啦不再A梦

          Executeresize2fs /dev/xvda1

            Latest Downloads
            More>
            Web Effects
            Website Source Code
            Website Materials
            Front End Template
            About us Disclaimer Sitemap
            php.cn:Public welfare online PHP training,Help PHP learners grow quickly!