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教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
df -lh 查看磁盘用量df -i 查看inode用量du -sh |*sort -n View folder size
df -lh
df -i
du -sh |*sort -n
After cleaning the disk, you find that the capacity has not been reduced, then reboot
reboot
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.
Execute resize2fs /dev/xvda1
resize2fs /dev/xvda1
df -lh
查看磁盘用量df -i
查看inode用量du -sh |*sort -n
View folder sizeAfter cleaning the disk, you find that the capacity has not been reduced, then
reboot
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.
Execute
resize2fs /dev/xvda1