Home  >  Q&A  >  body text

CENTOS 磁盘占用100%(20G)但是文件系统只占用了1.8G,到底什么原因导致的

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%?

高洛峰高洛峰2733 days ago965

reply all(5)I'll reply

  • 迷茫

    迷茫2017-04-25 09:03:32

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

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

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-25 09:03:32

    Not enough inode nodes

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-25 09:03:32

    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

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-04-25 09:03:32

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

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-04-25 09:03:32

    Execute resize2fs /dev/xvda1

    reply
    0
  • Cancelreply