Yum update requires more room in /boot [RESOLVED]

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
bananapar
Forum User
Forum User
Posts: 38
Joined: Fri Jul 23, 2010 10:03 am
Location: UK

Yum update requires more room in /boot [RESOLVED]

Unread post by bananapar »

A recent yum update contained errors when updating.
raise Errors.YumBaseError, errors
yum.Errors.YumBaseError: [('installing package kernel-2.6.32.41-4.art.x86_64 needs 3MB on the /boot filesystem', (9, '/boot', 2408448L)), ('installing package kernel-2.6.32.41-4.art.x86_64 needs 3MB on the /boot filesystem', (9, '/boot', 2408448L))]
a du --si of /boot shows it to be 78M in total.
the contents of the /boot directory contain lots of very similar files, a small excerpt of this is shown below

Oct 25 2010 xen.gz-2.6.18-194.17.4.el5
Nov 9 2010 xen.gz-2.6.18-194.26.1.el5
Jan 5 22:45 xen.gz-2.6.18-194.32.1.el5
Apr 1 23:32 xen.gz-2.6.18-238.5.1.el5
Apr 12 23:03 xen.gz-2.6.18-238.9.1.el5

Would it be safe to remove the first three from that list? In general should I be OK to remove files with similar names excepting version? I suspect yes but don't want to make assumptions and then break everything. It seems odd that so many would be kept if they weren't needed for something.
Last edited by bananapar on Mon Jun 27, 2011 9:36 am, edited 1 time in total.
paulie
Forum User
Forum User
Posts: 76
Joined: Tue Apr 20, 2010 2:49 am

Re: Yum update requires more room in /boot

Unread post by paulie »

Hi,

Its because you always install a new kernel rather than updating a previous one. Eventually your /boot fills up with these old kernels. You're probably ok to delete the files, but its not a neat way of doing things, instead you're better off doing this : http://www.cyberciti.biz/faq/debian-red ... l-command/

Paul.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Yum update requires more room in /boot

Unread post by breun »

How many kernel packages do you have installed? What is installonly_limit in /etc/yum.conf set to?
Lemonbit Internet Dedicated Server Management
bananapar
Forum User
Forum User
Posts: 38
Joined: Fri Jul 23, 2010 10:03 am
Location: UK

Re: Yum update requires more room in /boot

Unread post by bananapar »

Thanks Paulie, we have it sorted out now.
breun wrote: How many kernel packages do you have installed? What is installonly_limit in /etc/yum.conf set to?
yum.conf install only was set to 5, if I set it to 3 I think that might prevent issues in the future whilst still allowing us to go back if required

In terms of various kernels we have loads. If you're interested we have:
  • config, (.el5xen and .x86_64)
    initrd (el5xen.img and x86_64.img)
    system.map (el5xen, x86_64)
    vmlinuz (el5xen, x86_64)
    xen.gz (el5)
    xen-syms (el5)
No wonder it had filled up!
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Yum update requires more room in /boot

Unread post by breun »

bananapar wrote:In terms of various kernels we have loads. If you're interested we have:
  • config, (.el5xen and .x86_64)
    initrd (el5xen.img and x86_64.img)
    system.map (el5xen, x86_64)
    vmlinuz (el5xen, x86_64)
    xen.gz (el5)
    xen-syms (el5)
No wonder it had filled up!
Those are different files related to a single kernel release. What's the output of rpm -qa | grep kernel | sort?
Lemonbit Internet Dedicated Server Management
bananapar
Forum User
Forum User
Posts: 38
Joined: Fri Jul 23, 2010 10:03 am
Location: UK

Re: Yum update requires more room in /boot [RESOLVED]

Unread post by bananapar »

This is it currently:
kernel-2.6.32.27-1.art.x86_64
kernel-2.6.32.28-1.art.x86_64
kernel-2.6.32.41-3.art.x86_64
kernel-2.6.32.41-4.art.x86_64
kernel-firmware-2.6.32.41-4.art.x86_64
kernel-headers-2.6.32.41-4.art.x86_64
kernel-xen-2.6.18-194.32.1.el5.x86_64
kernel-xen-2.6.18-238.12.1.el5.x86_64
kernel-xen-2.6.18-238.9.1.el5.x86_64
kernel-xen-devel-2.6.18-238.12.1.el5.x86_64
kernel-xen-devel-2.6.18-238.5.1.el5.x86_64
kernel-xen-devel-2.6.18-238.9.1.el5.x86_64
yum-kernel-module-1.1.16-14.el5.centos.1.noarch
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Yum update requires more room in /boot [RESOLVED]

Unread post by breun »

Are you using those Xen kernels? If not, I'd remove kernel-xen*, which will probably give you lots of space on /boot back.
Lemonbit Internet Dedicated Server Management
Post Reply