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.

Boot partition full

Discussion in 'General Discussion' started by Legin76, Apr 10, 2014.

  1. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    I'm not sure why it's so small but its only 97mb.

    I've done the following checks but am still not sure exactly what's safe to remove. Could someone please clarify this for me.

    Code:
    root@srv05 [~]# uname -a
    Linux srv05.domain.com 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
    
    root@srv05 [~]# rpm -qa | grep kernel
    abrt-addon-kerneloops-2.0.8-21.el6.centos.x86_64
    kernel-2.6.32-220.el6.x86_64
    kernel-firmware-2.6.32-431.11.2.el6.noarch
    kernel-headers-2.6.32-431.11.2.el6.x86_64
    kernel-2.6.32-220.23.1.el6.x86_64
    libreport-plugin-kerneloops-2.0.9-19.el6.centos.x86_64
    kernel-2.6.32-431.11.2.el6.x86_64
    dracut-kernel-004-336.el6_5.2.noarch
    kernel-2.6.32-220.13.1.el6.x86_64
    
    root@srv05 [~]# rpm -e kernel
    error: "kernel" specifies multiple packages:
      kernel-2.6.32-220.el6.x86_64
      kernel-2.6.32-220.13.1.el6.x86_64
      kernel-2.6.32-220.23.1.el6.x86_64
      kernel-2.6.32-431.11.2.el6.x86_64
    
    root@srv05 [~]# rpm -q kernel kernel-smp
    kernel-2.6.32-220.el6.x86_64
    kernel-2.6.32-220.13.1.el6.x86_64
    kernel-2.6.32-220.23.1.el6.x86_64
    kernel-2.6.32-431.11.2.el6.x86_64
    package kernel-smp is not installed
    
    
    ls -lah /boot
    total 87M
    dr-xr-xr-x.  5 root root 3.0K Apr 10 09:44 ./
    dr-xr-xr-x. 25 root root 4.0K Apr  9 14:41 ../
    -rw-r--r--   1 root root  99K Apr 18  2012 config-2.6.32-220.13.1.el6.x86_64
    -rw-r--r--   1 root root  99K Jun 18  2012 config-2.6.32-220.23.1.el6.x86_64
    -rw-r--r--.  1 root root  99K Dec  6  2011 config-2.6.32-220.el6.x86_64
    -rw-r--r--   1 root root 103K Mar 25 20:25 config-2.6.32-431.11.2.el6.x86_64
    drwxr-xr-x.  3 root root 1.0K Apr 20  2012 efi/
    drwxr-xr-x.  2 root root 1.0K Apr  9 14:11 grub/
    -rw-r--r--   1 root root  15M Apr 20  2012 initramfs-2.6.32-220.13.1.el6.x86_64.img
    -rw-r--r--   1 root root  15M Jul  6  2012 initramfs-2.6.32-220.23.1.el6.x86_64.img
    -rw-r--r--.  1 root root  15M Apr 20  2012 initramfs-2.6.32-220.el6.x86_64.img
    -rw-------   1 root root  17M Apr  9 14:11 initramfs-2.6.32-431.11.2.el6.x86_64.img
    drwx------.  2 root root  12K Apr 20  2012 lost+found/
    -rw-r--r--   1 root root 168K Apr 18  2012 symvers-2.6.32-220.13.1.el6.x86_64.gz
    -rw-r--r--   1 root root 168K Jun 18  2012 symvers-2.6.32-220.23.1.el6.x86_64.gz
    -rw-r--r--.  1 root root 168K Dec  6  2011 symvers-2.6.32-220.el6.x86_64.gz
    -rw-r--r--   1 root root 190K Mar 25 20:26 symvers-2.6.32-431.11.2.el6.x86_64.gz
    -rw-r--r--   1 root root 2.3M Apr 18  2012 System.map-2.6.32-220.13.1.el6.x86_64
    -rw-r--r--   1 root root 2.3M Jun 18  2012 System.map-2.6.32-220.23.1.el6.x86_64
    -rw-r--r--.  1 root root 2.3M Dec  6  2011 System.map-2.6.32-220.el6.x86_64
    -rw-r--r--   1 root root 2.5M Mar 25 20:25 System.map-2.6.32-431.11.2.el6.x86_64
    -rwxr-xr-x   1 root root 3.8M Apr 18  2012 vmlinuz-2.6.32-220.13.1.el6.x86_64*
    -rw-r--r--   1 root root  171 Apr 18  2012 .vmlinuz-2.6.32-220.13.1.el6.x86_64.hmac
    -rwxr-xr-x   1 root root 3.8M Jun 18  2012 vmlinuz-2.6.32-220.23.1.el6.x86_64*
    -rw-r--r--   1 root root  171 Jun 18  2012 .vmlinuz-2.6.32-220.23.1.el6.x86_64.hmac
    -rwxr-xr-x.  1 root root 3.8M Dec  6  2011 vmlinuz-2.6.32-220.el6.x86_64*
    -rw-r--r--.  1 root root  166 Dec  6  2011 .vmlinuz-2.6.32-220.el6.x86_64.hmac
    -rwxr-xr-x   1 root root 4.0M Mar 25 20:25 vmlinuz-2.6.32-431.11.2.el6.x86_64*
    -rw-r--r--   1 root root  171 Mar 25 20:25 .vmlinuz-2.6.32-431.11.2.el6.x86_64.hmac
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I do not believe 97M is large enough to handle the files added to the /boot partition. Are you able to backup/migrate the accounts and reinstall the OS/cPanel with the advised partition scheme? If so, you can find it here:

    cPanel Installation - Recommended Partition Setup

    If cleaning the /boot partition is your only option, then you could review this thread:

    Cleaning /boot partition

    However, note that even removing some older kernels might not free up enough space.

    Thank you.
     
  3. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    Thanks. The size of the boot partition is as set by Softlayer but the recommended amount is 99mb so if more is required then the recommended levels need to be changed.

    I'm still not 100% sure which are safe to remove... Is that anything before kernel-2.6.32-431.11.2.el6.x86_64?

    And would the yum command be "yum remove kernel-2.6.32-220.el6.x86_64" or do I need to list each of the files individually?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Were you able to review the other thread I referenced to get a better idea of what kernel you are currently running? It provides an answer to the questions you have asked.

    Thank you.
     
  5. texo

    texo Well-Known Member

    Joined:
    Mar 28, 2007
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    Hi

    Do this:

    Code:
    uname -r
    this will list the current kernel, which you MUST NOT remove

    Code:
    rpm -qa | grep kernel|sort
    this will list all the kernels in boot

    Then

    Code:
    rpm -e --nodeps <old kernels>
     
  6. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    Thank you for your help guys. I read though it again and removed the oldest unused files.

    I didn't realise that the one command would remove all the files for that version.
     
Loading...

Share This Page