Kernel update on Airwave server failed

Aruba Employee
Problem:


Kernel update on Airwave fails with below error message,

# cd /root/git/mercury/src/x86_64/rpms/CentOS-6; rpm -Uvh kernel-2.6.32-642.13.1.el6.x86_64.rpm kernel-headers-2.6.32-642.13.1.el6.x86_64.rpm kernel-firmware-2.6.32-642.13.1.el6.noarch.rpm

Preparing...                ########################################### [100%]

        installing package kernel-2.6.32-642.13.1.el6.x86_64 needs 8MB on the /boot filesystem

 



Diagnostics:

 

Reason for this is because we don't have enough space under "/boot" directory to update the new kernel files.

# ls -l

total 66790
-rw-r--r--  1 root root   107139 Feb  9  2016 config-2.6.32-573.18.1.el6.x86_64
-rw-r--r--  1 root root   108107 Oct 26 00:00 config-2.6.32-642.6.2.el6.x86_64
drwxr-xr-x. 3 root root     1024 Jan 14  2015 efi/
drwxr-xr-x. 2 root root     1024 Nov  4 21:51 grub/
-rw-------  1 root root 26469982 Jun  7  2016 initramfs-2.6.32-573.18.1.el6.x86_64.img
-rw-------  1 root root 27565208 Nov  4 21:51 initramfs-2.6.32-642.6.2.el6.x86_64.img
drwx------. 2 root root    12288 Jan 14  2015 lost+found/
-rw-r--r--  1 root root   206010 Feb  9  2016 symvers-2.6.32-573.18.1.el6.x86_64.gz
-rw-r--r--  1 root root   215530 Oct 26 00:00 symvers-2.6.32-642.6.2.el6.x86_64.gz
-rw-r--r--  1 root root  2586114 Feb  9  2016 System.map-2.6.32-573.18.1.el6.x86_64
-rw-r--r--  1 root root  2618532 Oct 26 00:00 System.map-2.6.32-642.6.2.el6.x86_64
-rwxr-xr-x  1 root root  4221968 Feb  9  2016 vmlinuz-2.6.32-573.18.1.el6.x86_64*
-rwxr-xr-x  1 root root  4270096 Oct 26 00:00 vmlinuz-2.6.32-642.6.2.el6.x86_64*

 

We can see two kernel package files in this directory. One is 642 and other one is 573. We can confirm this by executing the below command which will grep for the kernel packages installed on the server.

# rpm -q kernel

kernel-2.6.32-573.18.1.el6.x86_64
kernel-2.6.32-642.6.2.el6.x86_64

To check which is the kernel currently been used we can execute the below command.

# uname -a

Linux localhost.localdomain 2.6.32-642.13.1.el6.x86_64 #1 SMP Wed Jan 11 20:56:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
 

 



Solution

 

From the commands we have confirmed that we are using kernel-2.6.32-642.13.1.el6.x86_64 and we can remove kernel kernel-2.6.32-573.18.1.el6.x86_64 using the below command,

# yum remove kernel-2.6.32-573.18.1.el6.x86_64

 

This will remove the old kernel keeping the one which is active. This will also free up the space under "/boot" directory. Now we can do the kernel update again and this will install the package.

#  cd /root/git/mercury/src/x86_64/rpms/CentOS-6; rpm -Uvh kernel-2.6.32-642.13.1.el6.x86_64.rpm kernel-headers-2.6.32-642.13.1.el6.x86_64.rpm kernel-firmware-2.6.32-642.13.1.el6.noarch.rpm

Preparing...                ########################################### [100%]

   1:kernel-firmware        ########################################### [ 33%]

   2:kernel                 ########################################### [ 67%]

   3:kernel-headers         ########################################### [100%]

 

Version history
Revision #:
2 of 2
Last update:
‎02-27-2017 07:02 AM
Updated by:
 
Labels (1)
Contributors
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: