Hi,
My server's config
DELL PE 2970 : 4GB RAM,RAID 1 with 2x500GB sata HDD
1 primary partition /boot - 250MB - EXT2
1 logical volume - LVM - 495GB
The logical volume is partitioned as the following :
/var 31GB - EXT3
/home 250 GB - EXT3
/ 50 GB - EXT3
swap 12GB
/usr - 30GB - EXT3
/tmp - 2GB - EXT3
remain free around 120GB
-------------------------------------------------------------------------------------------------
Last week when checking the disk space usage on the server, I found the / file system is full
root@gege:/# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/gege-root
46G 45G 0 100% /
tmpfs 2,0G 0 2,0G 0% /lib/init/rw
varrun 2,0G 1,5M 2,0G 1% /var/run
varlock 2,0G 0 2,0G 0% /var/lock
udev 2,0G 160K 2,0G 1% /dev
tmpfs 2,0G 0 2,0G 0% /dev/shm
lrm 2,0G 2,5M 2,0G 1% /lib/modules/2.6.28-19-server/volatile
/dev/sda1 236M 34M 190M 16% /boot
/dev/mapper/gege-home
231G 84G 135G 39% /home
/dev/mapper/gege-temp
1,9G 35M 1,8G 2% /tmp
/dev/mapper/gege-user
29G 1,2G 26G 5% /usr
/dev/mapper/gege-var 29G 2,6G 25G 10% /var
---------------------------------------------------------------------------------------------------
To find which file or directory that is consuming all that space disk I tried the following on / but nothing in the result can help.
root@gege:/# du -kshc * |sort -n
0 cdrom
0 initrd.img
0 initrd.img.old
0 lib64
0 proc
0 sys
0 vmlinuz
0 vmlinuz.old
4,0K mnt
4,0K opt
4,0K selinux
4,0K srv
6,9M etc
7,2M bin
8,0K media
8,2M sbin
16K lost+found
16K tmp
28M boot
38M root
84G home
87G total
160K dev
240M lib
467M var
963M usr
------------------------------------------------------------------------------------------------
If someone has any idea on what happens I will really appreciate.
Many
thanks in advance.
Our community of experts have been thoroughly vetted for their expertise and industry experience.