1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Root clearing

Discussion in 'Plesk for Linux - 8.x and Older' started by TonyTTL, Mar 25, 2006.

  1. TonyTTL

    TonyTTL Guest

    Im a newbie - so please bear with me:

    My boot partition /hda1 is now @100%
    This is causing mysql errors (as it does) and I want to clear some space.

    What files should I clear/delete &
    How can I move them?

    Can I use root access thru WinScp and 'drag' them to a new folder off the partition? - and if so where is the best place to resite the files?
  2. wagnerch

    wagnerch Guest

    Run these commands:

    uname -a
    ll /boot
    rpm -q kernel kernel-smp
    cat /etc/grub.conf /etc/lilo.conf

    and send the output. You probably recently upgraded your kernel and hit your partition's limit, you may need to remove an older kernel (using rpm -e, not rm!) to free up space. I typically only have 2~3 kernels available, previous, current and new. Once I reboot to new I blow away the oldest kernel.
  3. TonyTTL

    TonyTTL Guest

    Thank you for your response to my FIRST ever Post !
    GREEK to me. !!
    Translate / Action plan ????
  4. wagnerch

    wagnerch Guest

    Looks like you have a completely custom kernel built there (2.6.14). You should be able to "rpm -e kernel-2.6.10-1.771_FC2" and "rpm -e kernel-smp-2.6.10-1.771_FC2" without any harm.

    I guess ll didn't work, it is a habit of mine (alias)...

    ls -l /boot

    would show what it is in the boot directory. Is your server with 1&1, by chance? It looks like their work, and if that is the case you probably have a 500MB root partition.
  5. TonyTTL

    TonyTTL Guest

    Thanks for your response. You seem to know Ur way about ;)
    Right on all counts. Im pretty sure I can work with (without repartitioning) the 500MB boot partition that 1&1 uk provided if I keep it trim.
    So heres the layout:
    So whats eating up the space?
  6. wagnerch

    wagnerch Guest

    It is definately the extra kernels, the 500MB partition can only hold about 3 or 4 kernels. Typically it isn't the kernel but the modules (/lib/modules/) that come with the kernel that eat up the space. They are about 60MB per kernel installation. I would use rpm to erase the 2.6.10 kernels, since you have a custom built 2.6.14 kernel.

    This command can tell you on the root partition (/) what are the top 15 largest directories (or subdirectories).

    du -kx --max-depth=3 / |sort -n -r |head -15

    Here is what mine looks like...

    201064 /
    144944 /lib
    125980 /lib/modules
    74264 /lib/modules/2.6.10-2.3.legacy_FC2smp
    48212 /lib/modules/2.6.10-1.771_FC2smp
    30284 /etc
    21872 /etc/security
    21776 /etc/security/selinux
    11808 /sbin
    8160 /boot
    5008 /bin
    3500 /lib/modules/2.6.9-041221
    2752 /lib/kbd
    2700 /lib/tls
    1760 /lib/i686

    I have three kernels installed, 2.6.9 (which 1&1 built), my current and the new one.
  7. TonyTTL

    TonyTTL Guest

    You have single-handedly fixed several (various) errors that were caused by a lack of space on hda1 (boot).
    First of all thank you !

    There were some dependencies that prevented removal of

    but that still made enough room to be getting on and learning what to do. :) Ta ;)
  8. wagnerch

    wagnerch Guest

    Yeah, those dependencies are bogus because your 2.6.14 kernel is not registered in the package manager (rpm). Unfortunately the only thing you can do is --nodeps removal using "rpm -e kernel-smp-2.6.10-1.771_FC2 --nodeps".
  9. TonyTTL

    TonyTTL Guest

    Done and dusted. Another successful operation carried out under your direction. Theres a long way to go yet but I appreciate the time a & effort U afforded me. Ta