Boot sector getting full

Hi

System: FreePBX 2.9.0.7, installed from an AsteriskNOW 1.7.1 distro and fully updated to Asterisk 1.8.5.0 as of 17.08.11

After a yum update in the last two days I noticed the /boot sector is now yellow and at 70%. This is the highest it’s been and caused me some concern. I ran uname -r to check what kernel was in use which returned 2.6.18-238.19.1.el5PAE. I then ran rpm -q kernel and this was the following output:

kernel-2.6.18-194.17.4.el5
kernel-2.6.18-194.32.1.el5
kernel-2.6.18-238.9.1.el5
kernel-2.6.18-238.12.1.el5
kernel-2.6.18-238.19.1.el5

I attempted to remove the old kernels to free up space, however, my attempt failed due to dependency issues:

rpm -e kernel-2.6.18-194.17.4.el5
error: Failed dependencies:
kernel-i686 = 2.6.18-194.17.4.el5 is needed by (installed) kmod-dahdi-linux-fwload-vpmadt032-2.4.0-1_centos5.2.6.18_194.17.4.el5.i686
kernel-i686 = 2.6.18-194.17.4.el5 is needed by (installed) kmod-dahdi-linux-2.4.0-1_centos5.2.6.18_194.17.4.el5.i686

Should I remove the old kernels or do I need to free up space another way?

TIA

BR

Any ideas with this please?

TIA

BR

Any ideas with this please?

TIA

BR

Hi

Still having issues trying to remove un-needed kernels from my PBX.

This is the content of /boot:

[[email protected] boot]# ls -al
total 63157
drwxr-xr-x 4 root root 5120 Sep 1 15:52 .
drwxr-xr-x 24 root root 4096 Sep 1 16:04 …
-rw-r–r-- 1 root root 69598 Nov 9 2010 config-2.6.18-194.26.1.el5
-rw-r–r-- 1 root root 69551 Nov 9 2010 config-2.6.18-194.26.1.el5PAE
-rw-r–r-- 1 root root 69598 Jan 5 2011 config-2.6.18-194.32.1.el5
-rw-r–r-- 1 root root 69551 Jan 6 2011 config-2.6.18-194.32.1.el5PAE
-rw-r–r-- 1 root root 69820 May 31 18:52 config-2.6.18-238.12.1.el5
-rw-r–r-- 1 root root 69773 May 31 19:31 config-2.6.18-238.12.1.el5PAE
-rw-r–r-- 1 root root 69820 Jul 15 13:03 config-2.6.18-238.19.1.el5
-rw-r–r-- 1 root root 69773 Jul 15 13:45 config-2.6.18-238.19.1.el5PAE
-rw-r–r-- 1 root root 69819 Apr 12 23:41 config-2.6.18-238.9.1.el5
-rw-r–r-- 1 root root 69772 Apr 13 00:22 config-2.6.18-238.9.1.el5PAE
drwxr-xr-x 2 root root 1024 Sep 1 15:52 grub
-rw------- 1 root root 3353082 Nov 15 2010 initrd-2.6.18-194.26.1.el5.img
-rw------- 1 root root 3353910 Nov 15 2010 initrd-2.6.18-194.26.1.el5PAE.img
-rw------- 1 root root 3353319 Jan 14 2011 initrd-2.6.18-194.32.1.el5.img
-rw------- 1 root root 3355376 Jan 14 2011 initrd-2.6.18-194.32.1.el5PAE.img
-rw------- 1 root root 3402006 Jun 7 15:52 initrd-2.6.18-238.12.1.el5.img
-rw------- 1 root root 3401548 Jun 7 15:51 initrd-2.6.18-238.12.1.el5PAE.img
-rw------- 1 root root 3402160 Sep 1 15:51 initrd-2.6.18-238.19.1.el5.img
-rw------- 1 root root 3401607 Sep 1 15:52 initrd-2.6.18-238.19.1.el5PAE.img
-rw------- 1 root root 3402042 Apr 29 12:16 initrd-2.6.18-238.9.1.el5.img
-rw------- 1 root root 3401801 Apr 29 12:16 initrd-2.6.18-238.9.1.el5PAE.img
drwx------ 2 root root 12288 Apr 22 2010 lost+found
-rw-r–r-- 1 root root 80032 Mar 12 2009 message
-rw-r–r-- 1 root root 111264 Nov 9 2010 symvers-2.6.18-194.26.1.el5.gz
-rw-r–r-- 1 root root 111373 Nov 9 2010 symvers-2.6.18-194.26.1.el5PAE.gz
-rw-r–r-- 1 root root 111346 Jan 5 2011 symvers-2.6.18-194.32.1.el5.gz
-rw-r–r-- 1 root root 111452 Jan 6 2011 symvers-2.6.18-194.32.1.el5PAE.gz
-rw-r–r-- 1 root root 112421 May 31 18:53 symvers-2.6.18-238.12.1.el5.gz
-rw-r–r-- 1 root root 112532 May 31 19:32 symvers-2.6.18-238.12.1.el5PAE.gz
-rw-r–r-- 1 root root 112421 Jul 15 13:03 symvers-2.6.18-238.19.1.el5.gz
-rw-r–r-- 1 root root 112532 Jul 15 13:46 symvers-2.6.18-238.19.1.el5PAE.gz
-rw-r–r-- 1 root root 112421 Apr 12 23:42 symvers-2.6.18-238.9.1.el5.gz
-rw-r–r-- 1 root root 112532 Apr 13 00:22 symvers-2.6.18-238.9.1.el5PAE.gz
-rw-r–r-- 1 root root 970587 Nov 9 2010 System.map-2.6.18-194.26.1.el5
-rw-r–r-- 1 root root 968071 Nov 9 2010 System.map-2.6.18-194.26.1.el5PAE
-rw-r–r-- 1 root root 971511 Jan 5 2011 System.map-2.6.18-194.32.1.el5
-rw-r–r-- 1 root root 968995 Jan 6 2011 System.map-2.6.18-194.32.1.el5PAE
-rw-r–r-- 1 root root 980245 May 31 18:52 System.map-2.6.18-238.12.1.el5
-rw-r–r-- 1 root root 977729 May 31 19:31 System.map-2.6.18-238.12.1.el5PAE
-rw-r–r-- 1 root root 980358 Jul 15 13:03 System.map-2.6.18-238.19.1.el5
-rw-r–r-- 1 root root 977842 Jul 15 13:45 System.map-2.6.18-238.19.1.el5PAE
-rw-r–r-- 1 root root 980202 Apr 12 23:41 System.map-2.6.18-238.9.1.el5
-rw-r–r-- 1 root root 977686 Apr 13 00:22 System.map-2.6.18-238.9.1.el5PAE
-rw-r–r-- 1 root root 1876564 Nov 9 2010 vmlinuz-2.6.18-194.26.1.el5
-rw-r–r-- 1 root root 163 Nov 9 2010 .vmlinuz-2.6.18-194.26.1.el5.hmac
-rw-r–r-- 1 root root 1874260 Nov 9 2010 vmlinuz-2.6.18-194.26.1.el5PAE
-rw-r–r-- 1 root root 166 Nov 9 2010 .vmlinuz-2.6.18-194.26.1.el5PAE.hmac
-rw-r–r-- 1 root root 1877108 Jan 5 2011 vmlinuz-2.6.18-194.32.1.el5
-rw-r–r-- 1 root root 163 Jan 5 2011 .vmlinuz-2.6.18-194.32.1.el5.hmac
-rw-r–r-- 1 root root 1874868 Jan 6 2011 vmlinuz-2.6.18-194.32.1.el5PAE
-rw-r–r-- 1 root root 166 Jan 6 2011 .vmlinuz-2.6.18-194.32.1.el5PAE.hmac
-rw-r–r-- 1 root root 1889268 May 31 18:52 vmlinuz-2.6.18-238.12.1.el5
-rw-r–r-- 1 root root 163 May 31 18:52 .vmlinuz-2.6.18-238.12.1.el5.hmac
-rw-r–r-- 1 root root 1885012 May 31 19:31 vmlinuz-2.6.18-238.12.1.el5PAE
-rw-r–r-- 1 root root 166 May 31 19:31 .vmlinuz-2.6.18-238.12.1.el5PAE.hmac
-rw-r–r-- 1 root root 1889876 Jul 15 13:03 vmlinuz-2.6.18-238.19.1.el5
-rw-r–r-- 1 root root 163 Jul 15 13:03 .vmlinuz-2.6.18-238.19.1.el5.hmac
-rw-r–r-- 1 root root 1885076 Jul 15 13:45 vmlinuz-2.6.18-238.19.1.el5PAE
-rw-r–r-- 1 root root 166 Jul 15 13:45 .vmlinuz-2.6.18-238.19.1.el5PAE.hmac
-rw-r–r-- 1 root root 1889140 Apr 12 23:41 vmlinuz-2.6.18-238.9.1.el5
-rw-r–r-- 1 root root 162 Apr 12 23:41 .vmlinuz-2.6.18-238.9.1.el5.hmac
-rw-r–r-- 1 root root 1884980 Apr 13 00:22 vmlinuz-2.6.18-238.9.1.el5PAE
-rw-r–r-- 1 root root 165 Apr 13 00:22 .vmlinuz-2.6.18-238.9.1.el5PAE.hmac

When I try and remove old kernels by running rpm -e kernel-2.6.18-194.26.1.el5 for example, I get the following error:

error: Failed dependencies:
kernel-i686 = 2.6.18-194.26.1.el5 is needed by (installed) kmod-dahdi-linux-2.4.0-1_centos5.2.6.18_194.26.1.el5.i686
kernel-i686 = 2.6.18-194.26.1.el5 is needed by (installed) kmod-dahdi-linux-fwload-vpmadt032-2.4.0-1_centos5.2.6.18_194.26.1.el5.i686

Can anyone suggest how to ‘trim the fat’ in my boot sector please.

TIA

BR

Any update?

Slow down mate…I had the same trouble (not so bad after all) you have and I solved (freeing /boot partition limited space by removing unused Kernels) in this way (which, IMHO, is far more secure than removing kernels as you’re trying to do) in my FreePBX Distro (which is CentOS 6.4 based).

Kind regards, Davide.