sillypuddy

Member
Oct 25, 2004
7
0
151
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 1008M 877M 81M 92% /
none 506M 0 506M 0% /dev/shm
/dev/hda7 76G 2.3G 70G 4% /home
/dev/hda6 1008M 33M 925M 4% /tmp
/dev/hda2 20G 4.6G 15G 25% /usr
/dev/hda3 14G 1.4G 12G 11% /var

My system seems to be getting full and it to me anyway I can't figure out why.

Any help on what I could delete logs and such and where would be appreciated,
 

JP-HOST

Well-Known Member
Sep 23, 2004
59
0
156
Roscoe, IL, USA
I found this from Chirpy in an earlier post.

du -h --max-depth=1

Then change to the subdirectory that has a large size then

ls -laSh | more

to see if the files exist there, if not du again in that subdirectory

du -h --max-depth=1

and continue following the directory path till you find the large files.

Here is the original post.

http://forums.cpanel.net/showthread.php?t=32464&highlight=large+files

he was explaining how to examine the /var partition but I think the method will work in your situation too.
 

sillypuddy

Member
Oct 25, 2004
7
0
151
Thank you for your reply,

2.6G ./home
5.2M ./scripts
4.0K ./selinux
4.0K ./opt
12M ./sbin
4.3G ./usr
751M ./lib
0 ./sys
4.0K ./mnt
104K ./tmp
4.0K ./misc
1.4G ./var
29M ./etc
902M ./proc
7.7M ./root
16K ./lost+found
36M ./boot
4.0K ./initrd
5.0M ./bin
552K ./dev
9.9G .

This is the breakdown from that command,

[email protected] [/lib/modules]# du -h --max-depth=1
57M ./2.6.5-1.358
57M ./2.6.10-1.8_FC2
48M ./2.6.9-1.6_FC2
46M ./2.6.10-1.12_FC2
45M ./2.6.9-1.3_FC2smp
44M ./2.6.8-1.521
44M ./2.6.10-1.9_FC2
44M ./2.6.9-1.6_FC2smp
39M ./2.6.5-1.358smp
43M ./2.6.9-1.3_FC2
48M ./2.6.10-1.12_FC2smp
46M ./2.6.9-1.11_FC2smp
47M ./2.6.10-1.9_FC2smp
43M ./2.6.9-1.11_FC2
41M ./2.6.8-1.521smp
47M ./2.6.10-1.8_FC2smp
730M .


Would these be the root of my problem, they are the only large files I can see on that partition. Or would the problem not lie in the lib dir at all? The only other large on I see it the ./proc dir.

Again thanks.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
You would definitely benefit from clearing down the kernels that you do not use. However, do not just delete the files. You have to remove them carefull using rpm and be sure to keep your current kernel and the one previous to what you're running incase of future problems. If you aren't confident in removing kernels, I would strongly recommend a helping hand from someone who is or can do it for you.
 

sillypuddy

Member
Oct 25, 2004
7
0
151
Do you think it is these kernals that are taking up all this space>? I really dont want to run into a problem where the server goes down. It is from what I posted the only place in that partition taking up that much space.
 

sillypuddy

Member
Oct 25, 2004
7
0
151
chirpy said:
Yes, I'd say that it is almost definitely the kernels taking up the space.
46M ./2.6.10-1.12_FC2
48M ./2.6.10-1.12_FC2smp
46M ./2.6.9-1.11_FC2smp
43M ./2.6.9-1.11_FC2

Would these be the 2 current kernel's listed?

[email protected] [/etc]# uname -r
2.6.10-1.12_FC2smp


Unfortunately I do not have anyone with more experience to help me,

[email protected] [/]# rpm -qa | grep kernel-*
kernel-smp-2.6.5-1.358
kernel-smp-2.6.8-1.521
kernel-smp-2.6.9-1.3_FC2
kernel-2.6.9-1.6_FC2
kernel-2.6.10-1.8_FC2
kernel-2.6.10-1.9_FC2
kernel-utils-2.4-9.1.131_FC2
kernel-2.6.10-1.12_FC2
kernel-2.6.5-1.358
kernel-2.6.8-1.521
kernel-2.6.9-1.3_FC2
kernel-smp-2.6.9-1.6_FC2
kernel-2.6.9-1.11_FC2
kernel-smp-2.6.9-1.11_FC2
kernel-smp-2.6.10-1.8_FC2
kernel-smp-2.6.10-1.9_FC2
kernel-smp-2.6.10-1.12_FC2


[email protected] [/]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Fedora Core (2.6.10-1.12_FC2smp)
root (hd0,0)
kernel /boot/vmlinuz-2.6.10-1.12_FC2smp ro root=LABEL=/
initrd /boot/initrd-2.6.10-1.12_FC2smp.img
title Fedora Core (2.6.10-1.12_FC2)
root (hd0,0)
kernel /boot/vmlinuz-2.6.10-1.12_FC2 ro root=LABEL=/
initrd /boot/initrd-2.6.10-1.12_FC2.img
title Fedora Core (2.6.10-1.9_FC2smp)
root (hd0,0)
kernel /boot/vmlinuz-2.6.10-1.9_FC2smp ro root=LABEL=/
initrd /boot/initrd-2.6.10-1.9_FC2smp.img
title Fedora Core (2.6.10-1.9_FC2)
root (hd0,0)
kernel /boot/vmlinuz-2.6.10-1.9_FC2 ro root=LABEL=/
initrd /boot/initrd-2.6.10-1.9_FC2.img
title Fedora Core (2.6.10-1.8_FC2smp)
root (hd0,0)
kernel /boot/vmlinuz-2.6.10-1.8_FC2smp ro root=LABEL=/
initrd /boot/initrd-2.6.10-1.8_FC2smp.img
title Fedora Core (2.6.10-1.8_FC2)
root (hd0,0)
kernel /boot/vmlinuz-2.6.10-1.8_FC2 ro root=LABEL=/
initrd /boot/initrd-2.6.10-1.8_FC2.img
title Fedora Core (2.6.9-1.11_FC2smp)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-1.11_FC2smp ro root=LABEL=/
initrd /boot/initrd-2.6.9-1.11_FC2smp.img
title Fedora Core (2.6.9-1.11_FC2)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-1.11_FC2 ro root=LABEL=/
initrd /boot/initrd-2.6.9-1.11_FC2.img
title Fedora Core (2.6.9-1.6_FC2smp)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-1.6_FC2smp ro root=LABEL=/
initrd /boot/initrd-2.6.9-1.6_FC2smp.img
title Fedora Core (2.6.9-1.6_FC2)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-1.6_FC2 ro root=LABEL=/
initrd /boot/initrd-2.6.9-1.6_FC2.img
title Fedora Core (2.6.9-1.3_FC2smp)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-1.3_FC2smp ro root=LABEL=/
initrd /boot/initrd-2.6.9-1.3_FC2smp.img
title Fedora Core (2.6.9-1.3_FC2)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-1.3_FC2 ro root=LABEL=/
initrd /boot/initrd-2.6.9-1.3_FC2.img
title Fedora Core (2.6.8-1.521smp)
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-1.521smp ro root=LABEL=/
initrd /boot/initrd-2.6.8-1.521smp.img
title Fedora Core (2.6.8-1.521)
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-1.521 ro root=LABEL=/
initrd /boot/initrd-2.6.8-1.521.img
title Fedora Core (2.6.5-1.358smp)
root (hd0,0)
kernel /boot/vmlinuz-2.6.5-1.358smp ro root=LABEL=/
initrd /boot/initrd-2.6.5-1.358smp.img
title Fedora Core-up (2.6.5-1.358)
root (hd0,0)
kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/
initrd /boot/initrd-2.6.5-1.358.img


[email protected] [/etc]# cat /etc/lilo.conf.anaconda
prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
linear

image=/boot/vmlinuz-2.6.5-1.358smp
label=linux
initrd=/boot/initrd-2.6.5-1.358smp.img
read-only
append="root=LABEL=/"

image=/boot/vmlinuz-2.6.5-1.358
label=linux-up
initrd=/boot/initrd-2.6.5-1.358.img
read-only
append="root=LABEL=/"
 
Last edited: