Home > OS > Ubuntu 4.8.2, hard disk space is full, but can not find out which directory, or file is larger
Ubuntu 4.8.2, hard disk space is full, but can not find out which directory, or file is larger
Time:04-20
Root @ node11:/# df -h The Filesystem Size, informs the Avail Use % Mounted on /dev/vda1 40 G 32 G 5.9 G 85%/ None 4.0 K 0 0% 4.0 K/sys/fs/cgroup Udev 16 g 4.0 K 16 g 1%/dev TMPFS 3.2 G 3.2 G 1% 380 k/run None 5.0 M 5.0 M 0 0%/run/lock None 16 g 0 0%/run/16 g SHM None of 100 m 0 100 m 0%/run/user
Using the 32 gb space, but in the root directory, execute Root @ node11:/# du - sh * | sort - hr Du: always access the/proc/28050/task/28050/fd/4 ': No to the file or directory Du: always access the/proc/28050/task/28050/fdinfo/4 ': No to the file or directory Du: always access 'proc/28050/fd/4: No to the file or directory Du: always access 'proc/28050/fdinfo/4: No to the file or directory 2.6 G cache 1.1 G var 1.1 G usr 486 m home 469 m lib 78 m MNT 62 m boot ,,,,,,,,
These directories, add up, and no 32 gb?
The root directory, there is no hidden files, the following Root @ node11: #/ls -a . The boot etc initrd. Img. Old lost + found opt run sys var . Cache home lib media proc sbin TMP called Bin dev initrd. Img lib64 MNT root the SRV usr called the old
How to find what directory and/or file is bigger?
CodePudding user response:
Had to restart the machine?
CodePudding user response:
Uh huh, restart the machine or in the use of services and have a look, may have been deleted, but did not release
CodePudding user response:
If it is not convenient to restart, lsof | grep del if there is a large file or delete the content of large quantities of small files