Koozali.org: home of the SME Server

Boot Directory Full

Offline billi

  • *
  • 46
  • +0/-0
    • http://applitec.net
Boot Directory Full
« on: December 19, 2008, 08:21:14 AM »
A quick note to say that on a yum update in 7.3 to 7.4 I got a message that it could not complete because the /boot directory was full.
I tried deleting all but the last 2 sets of the following file groups
inintrd-##
system.map ##
vmlinuz ##
The partitons disk space went from 96% to 36% full
I ran yum update, and all seems well.



Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Boot Directory Full
« Reply #1 on: December 19, 2008, 11:45:15 AM »
This probably needs to be reported to the bug tracker, if only for reference purposes.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Boot Directory Full
« Reply #2 on: December 19, 2008, 12:54:04 PM »
This probably needs to be reported to the bug tracker, if only for reference purposes.
This should already be fixed according to http://bugs.contribs.org/show_bug.cgi?id=2101 .

I think you can work around it like this:
Code: [Select]
yum update smeserver-yum
signal-event post-upgrade
signal-event reboot

When it comes back up wait a few minutes (for the update check to finish) and retry updating then, it should decide to remove kernels that are obsolete freeing up disk space on the /boot.

If that does not work (as it might try install kernels before removing them) you can always uninstall some of the older kernels, using either http://bugs.contribs.org/show_bug.cgi?id=2101#c44 or this http://bugs.contribs.org/show_bug.cgi?id=2101#c36

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 billi

  • *
  • 46
  • +0/-0
    • http://applitec.net
Re: Boot Directory Full
« Reply #3 on: December 20, 2008, 03:59:37 PM »
First - Thanks for your help.
Aron Glover wrote in

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

> No. Don't use yum to remove packages. Use rpm. "yum remove xxx" has been known
> to be overenthusiastic.
>
> rpm -e kernel-2.6.9-22.0.1.EL.i686 kernel-smp-2.6.9-22.0.1.EL.i686 ...

I have a backup of the root files of /boot from before the successful removal of the older kernel files (using rm *55* or what ever old file number are)    and a successful "yum update". My question is - Should I put the removed files back and do what was suggested above, or just leave well enough alone.


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Boot Directory Full
« Reply #4 on: December 20, 2008, 04:14:24 PM »
First - Thanks for your help.
Aron Glover wrote in

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

> No. Don't use yum to remove packages. Use rpm. "yum remove xxx" has been known
> to be overenthusiastic.
>
> rpm -e kernel-2.6.9-22.0.1.EL.i686 kernel-smp-2.6.9-22.0.1.EL.i686 ...

I have a backup of the root files of /boot from before the successful removal of the older kernel files (using rm *55* or what ever old file number are)    and a successful "yum update". My question is - Should I put the removed files back and do what was suggested above, or just leave well enough alone.
It is not completely clear from the commands what you did. Did you execute any of the instructions posted by me or instructions from the two comments mentioned in my previous post?

If not try to describe what you did and why as the solution was in the links I provided. Please next time try to follow-up the advice given to you, this makes it much easier for us to help you.
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 billi

  • *
  • 46
  • +0/-0
    • http://applitec.net
Re: Boot Directory Full
« Reply #5 on: December 20, 2008, 05:01:32 PM »
OK - from the start
Tried the yum update - got the /boot full error
Search and got and tried the Bugzilla  fix -
yum update smeserver-yum
signal-event post-upgrade
signal-event reboot

tried the update again
boot disk  full errors again

There were  a few different fixes suggested in the  Bugzilla thread. I could not decide which one to run.
I made a backup of the \boot root files.
I then deleted all be the 2 most recent sets of files using the rm command - thinking - at least giving the update room to run.
Ran the yum update again and it worked.

Still unsure of the what problems might occur if I did not do the RPM based removals -  I posted to this forum for some advice - which thankfully I am getting.

So I guess my question still stands, do you think that I should replace the deleted files from my backup and run and one of the RPM based fixes (not yet clear which one)  or just leave well einough alone.
Thanks

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Boot Directory Full
« Reply #6 on: December 20, 2008, 05:31:33 PM »
There were  a few different fixes suggested in the  Bugzilla thread. I could not decide which one to run.
That is why I direclty pointed you to two, from which you should have chosen one.

I made a backup of the \boot root files.
I then deleted all be the 2 most recent sets of files using the rm command - thinking - at least giving the update room to run.
And that is what you should not have done as that might leave your system in an unknown, unbootable state. If you were to delete anything you should have been better of removing the oldest ones.

Ran the yum update again and it worked.
You are lucky.

Still unsure of the what problems might occur if I did not do the RPM based removals -  I posted to this forum for some advice - which thankfully I am getting.

So I guess my question still stands, do you think that I should replace the deleted files from my backup and run and one of the RPM based fixes (not yet clear which one)  or just leave well einough alone.
Thanks
You should just have done what was suggested to you:
If that does not work (as it might try install kernels before removing them) you can always uninstall some of the older kernels, using either http://bugs.contribs.org/show_bug.cgi?id=2101#c44 or this http://bugs.contribs.org/show_bug.cgi?id=2101#c36
Please consider that we are trying to help as good as we can, so please do as we suggest instead of just wandering of on your own, while you asked for help and advice. I consider this wasting my valuable and precious time I dedicate to SME Server and to you, so please keep that in mind.
« Last Edit: December 20, 2008, 05:33:19 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 billi

  • *
  • 46
  • +0/-0
    • http://applitec.net
Re: Boot Directory Full
« Reply #7 on: December 20, 2008, 07:04:56 PM »
In order again.
I did leave the 2 most recent kernel file sets  when I did the rm on the files and did the yum update with them in place. Sorry if that was not clear.

The first few steps were done before my first post here, so I your advice could have only have been considered after the deletion of the files and running of the yum update.

You in fact did suggest 2 short scripts but I don't have your depth of knowledge to make an informed decision on which one to use or if I can try both if one does not work. I was simply trying to ask advice on:
1. should I put the files back so I can run your suggested scripts
2. which of the scripts would be best to try.

I think your patience is growing thin with this topic and me so .......
Thanks again for your efforts, and unless I see otherwise through this thread that it would be best to take another action, I will just leave things the way they are and hope for the best.






Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Boot Directory Full
« Reply #8 on: December 20, 2008, 07:21:44 PM »
In order again.
You in fact did suggest 2 short scripts but I don't have your depth of knowledge to make an informed decision on which one to use or if I can try both if one does not work. I was simply trying to ask advice on:
1. should I put the files back so I can run your suggested scripts
2. which of the scripts would be best to try.
I suggest you run this version of the command to get everything back in sync:
Code: [Select]
rpm -e $(rpm -q kernel kernel-smp kernel-hugemem \
 | sed /$(uname -r | sed -e s/smp//)/d)
It safes you the restore and only keeps the current kernel you are running. After that and the latest upgrades you should then never be bothered by this.
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 billi

  • *
  • 46
  • +0/-0
    • http://applitec.net
Re: Boot Directory Full
« Reply #9 on: December 22, 2008, 05:42:56 AM »
Just to finish up.
here is the result of running the suggested RPM

rpm -e $(rpm -q kernel kernel-smp kernel-hugemem | sed /$(uname -r | sed -e s/smp//)/d)
error: package package is not installed
error: package kernel-hugemem is not installed
error: package is is not installed
error: package not is not installed
error: package installed is not installed

I am guessing that if the files that are being removed have already been removed, perhaps, by last  the successful yum update.
There are only 2 version groups in the /boot directory.

Thanks again for your help.