Koozali.org: home of the SME Server

Need room on /boot

Offline Seeker

  • *
  • 12
  • +0/-0
Need room on /boot
« 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!!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Need room on /boot
« Reply #1 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.
« Last Edit: March 17, 2008, 03:39:45 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Seeker

  • *
  • 12
  • +0/-0
Re: Need room on /boot
« Reply #2 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
« Last Edit: March 17, 2008, 03:40:47 PM by Seeker »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Need room on /boot
« Reply #3 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Seeker

  • *
  • 12
  • +0/-0
Re: Need room on /boot
« Reply #4 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

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Need room on /boot
« Reply #5 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
« Last Edit: March 17, 2008, 04:46:26 PM by RayMitchell »
...

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Need room on /boot
« Reply #6 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???
In life, you must either "Push, Pull or Get out of the way!"

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Need room on /boot
« Reply #7 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Need room on /boot
« Reply #8 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.
In life, you must either "Push, Pull or Get out of the way!"

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Need room on /boot
« Reply #9 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Need room on /boot
« Reply #10 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.
« Last Edit: March 17, 2008, 04:50:17 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Need room on /boot
« Reply #11 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
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Need room on /boot
« Reply #12 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.
...