Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Seeker on March 17, 2008, 02:27:34 PM

Title: Need room on /boot
Post by: Seeker on March 17, 2008, 02:27:34 PM
I did read a long thread on the bug tracker about this problem and I have nothing to add except HELP How do I?

My current updates are failing due to lack of space on /boot. How do I clean up what is obsolete? Please I'm a linux newbie so something simple is required.

Many thanks!!
Title: Re: Need room on /boot
Post by: cactus on March 17, 2008, 03:33:03 PM
I did read a long thread on the bug tracker about this problem and I have nothing to add except HELP How do I?
And what bugs did you read there exactly?

My current updates are failing due to lack of space on /boot. How do I clean up what is obsolete? Please I'm a linux newbie so something simple is required.

Many thanks!!
Please post the output of the following command to see if we can remove some kernels:

Code: [Select]
rpm -qa | grep kernel | sort
If this is a long list, which I presume it is, you can try remove older kernels by using
Code: [Select]
rpm -e kernel-version-as-reported-previous-command
I would advice you to only uninstall kernels you really will not be using and leave at lest the latest and the one used before that on the system.

Edit: Changed remove command to rpm -e to prevent server being rendered useless by removing of dependencies.
Title: Re: Need room on /boot
Post by: Seeker on March 17, 2008, 03:39:06 PM
Hi and thanks for the response.

This is the bug report I think is most similar to my issue.

http://bugs.contribs.org/show_bug.cgi?id=2101

Here is my list.
[root@mail boot]# rpm -qa | grep kernel | sort
kernel-2.6.9-22.0.1.EL
kernel-2.6.9-22.0.2.EL
kernel-2.6.9-34.0.2.EL
kernel-2.6.9-34.EL
kernel-2.6.9-42.0.10.EL
kernel-2.6.9-42.0.2.EL
kernel-2.6.9-42.0.3.EL
kernel-2.6.9-42.0.8.EL
kernel-2.6.9-55.0.12.EL
kernel-2.6.9-55.0.2.EL
kernel-2.6.9-55.0.6.EL
kernel-2.6.9-55.0.9.EL
kernel-2.6.9-67.0.1.EL
kernel-smp-2.6.9-22.0.1.EL
kernel-smp-2.6.9-22.0.2.EL
kernel-smp-2.6.9-34.0.2.EL
kernel-smp-2.6.9-34.EL
kernel-smp-2.6.9-42.0.10.EL
kernel-smp-2.6.9-42.0.2.EL
kernel-smp-2.6.9-42.0.3.EL
kernel-smp-2.6.9-42.0.8.EL
kernel-smp-2.6.9-55.0.12.EL
kernel-smp-2.6.9-55.0.2.EL
kernel-smp-2.6.9-55.0.6.EL
kernel-smp-2.6.9-55.0.9.EL
kernel-smp-2.6.9-67.0.1.EL
kernel-utils-2.4-13.1.105
Title: Re: Need room on /boot
Post by: cactus on March 17, 2008, 03:44:36 PM
Here is my list.
That are a lot of old kernels.

Hi and thanks for the response.

This is the bug report I think is most similar to my issue.

http://bugs.contribs.org/show_bug.cgi?id=2101
you could have found a method in mentioned bug (http://bugs.contribs.org/show_bug.cgi?id=2101#c36), but you can do it manually as well, by using rpm -e.

Note I changed my previuos post to not use yum remove, but use rpm -e as this will not remove dependencies still needed by your server.
Title: Re: Need room on /boot
Post by: Seeker on March 17, 2008, 04:07:19 PM
That are a lot of old kernels.
you could have found a method in mentioned bug (http://bugs.contribs.org/show_bug.cgi?id=2101#c36), but you can do it manually as well, by using rpm -e.

Note I changed my previuos post to not use yum remove, but use rpm -e as this will not remove dependencies still needed by your server.

Well I wasn't understanding a lot that I was reading. I have only removed the oldest and it seems to have freed enough space to do an update.

Thanks
Title: Re: Need room on /boot
Post by: raem on March 17, 2008, 04:15:26 PM
Seeker

You would also do
uname -r
to see what kernel version you are now running.
I assume it would be
2.6.9-67.0.1.EL
or if you just yum updated then
2.6.9-67.0.4.EL

So then you remove all the old kernels you are not using ie

rpm -e kernel-2.6.9-22.0.1.EL
rpm -e kernel-2.6.9-22.0.2.EL
rpm -e kernel-2.6.9-34.0.2.EL
rpm -e kernel-2.6.9-34.EL
rpm -e kernel-2.6.9-42.0.10.EL
rpm -e kernel-2.6.9-42.0.2.EL
rpm -e kernel-2.6.9-42.0.3.EL
rpm -e kernel-2.6.9-42.0.8.EL
rpm -e kernel-2.6.9-55.0.12.EL
rpm -e kernel-2.6.9-55.0.2.EL
rpm -e kernel-2.6.9-55.0.6.EL
rpm -e kernel-2.6.9-55.0.9.EL

rpm -e kernel-smp-2.6.9-22.0.1.EL
rpm -e kernel-smp-2.6.9-22.0.2.EL
rpm -e kernel-smp-2.6.9-34.0.2.EL
rpm -e kernel-smp-2.6.9-34.EL
rpm -e kernel-smp-2.6.9-42.0.10.EL
rpm -e kernel-smp-2.6.9-42.0.2.EL
rpm -e kernel-smp-2.6.9-42.0.3.EL
rpm -e kernel-smp-2.6.9-42.0.8.EL
rpm -e kernel-smp-2.6.9-55.0.12.EL
rpm -e kernel-smp-2.6.9-55.0.2.EL
rpm -e kernel-smp-2.6.9-55.0.6.EL
rpm -e kernel-smp-2.6.9-55.0.9.EL

signal-event post-upgrade
reboot
Title: Re: Need room on /boot
Post by: pfloor on March 17, 2008, 04:27:25 PM
So then you remove all the old kernels you are not using ie

rpm -e kernel-utils-2.4-13.1.105

...

Ray, are you sure that the kernel-utils can/should be removed???
Title: Re: Need room on /boot
Post by: cactus on March 17, 2008, 04:29:15 PM
Ray, are you sure that the kernel-utils can/should be removed???
That version (2.4) is long since obsolete as the user is running 2.6 kernels now.
Title: Re: Need room on /boot
Post by: pfloor on March 17, 2008, 04:34:08 PM
That version (2.4) is long since obsolete as the user is running 2.6 kernels now.

Oh, I don't know about that...

Redhat 4.X and CentOs 4.X still use that 2.4 version.  I don't know if that version number coinsides with the kernel number but it doesn't appear to.
Title: Re: Need room on /boot
Post by: Stefano on March 17, 2008, 04:37:07 PM

signal-event post-upgrade
reboot


Hi Ray..

just a question: why is necessary a reboot in this case?

TIA

Stefano
Title: Re: Need room on /boot
Post by: cactus on March 17, 2008, 04:43:45 PM
Oh, I don't know about that...

Redhat 4.X and CentOs 4.X still use that 2.4 version.  I don't know if that version number coinsides with the kernel number but it doesn't appear to.
AFAIK I know it should have the same version number as the kernel. I will check it to be sure...

Update: After some checking you might be right that the kernel-utils version might not be in sync with the kernel release version.
Title: Re: Need room on /boot
Post by: raem on March 17, 2008, 04:49:04 PM
pfloor
Quote
...are you sure that the kernel-utils can/should be removed???

Paul, good spotting.

I have removed that reference from the original post, I see it is still on my 7.3 server ie

rpm -q kernel-utils
kernel-utils-2.4-13.1.105
Title: Re: Need room on /boot
Post by: raem on March 17, 2008, 04:52:01 PM
nenonano

Quote
..why is necessary a reboot in this case?

To make sure your system boots up OK to the remaining installed kernel.