84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
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 -nView folder size
df -lh
df -i
du -sh |*sort -n
After cleaning the disk, you find that the capacity has not been reduced, thenreboot
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.
Executeresize2fs /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