The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

dev/hda1 Full

Discussion in 'General Discussion' started by sillypuddy, Feb 22, 2005.

  1. sillypuddy

    sillypuddy Member

    Joined:
    Oct 25, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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,
     
  2. JP-HOST

    JP-HOST Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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.
     
  3. sillypuddy

    sillypuddy Member

    Joined:
    Oct 25, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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,

    root@server1 [/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.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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.
     
  5. sillypuddy

    sillypuddy Member

    Joined:
    Oct 25, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yes, I'd say that it is almost definitely the kernels taking up the space.
     
  7. sillypuddy

    sillypuddy Member

    Joined:
    Oct 25, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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?

    root@server1 [/etc]# uname -r
    2.6.10-1.12_FC2smp


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

    root@server1 [/]# 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


    root@server1 [/]# 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


    root@server1 [/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=/"
     
    #7 sillypuddy, Feb 22, 2005
    Last edited: Feb 22, 2005
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I've sent you a PM if you haven't spotted it.
     
Loading...

Share This Page