On Tue, Feb 09, 2010 at 05:53:48PM +1100, Jobst Schmalenbach wrote:
> On Tue, Feb 09, 2010 at 02:07:53PM +1100, Voytek Eymont ([email protected]) 
> wrote:
> > 
> > my centos system just run out of space on /boot:
> > 
> > # df
> > Filesystem           1K-blocks      Used Available Use% Mounted on
> > /dev/mapper/VolGroup00-LogVol00
> >                      101793144  28730252  67892104  30% /
> > /dev/cciss/c0d0p1        98747     92263      1385  99% /boot
> > none                   1168044         0   1168044   0% /dev/shm
> > /dev/mapper/VolGroup00-LogVol02
> >                        1064312     34180    976068   4% /tmp
> > 
> > 
> > if I delete older versions of init-rd*, vmlinuz*, do I need to do anything
> > else after deleteting the older files ?
>
> 
> Do
> 
>  rpm -qa | grep kernel
> 
> then do:
> 
>  yum erase kernel-XYZ
> 
> of the older ones. Do not delete the files in boot directly
> as you stuff up your rpm database and yum WILL get confused


First, you really should not be running 55.0.2, or whatever. That's a 
kernel from Centos 5.2, which is ancient. So the first thing to do is
schedule a reboot.

Then do the following:

  rpm -qa 'kernel*'

  # Decide a set of versions to delete e.g. the 67.x.y releases
  rpm -qa 'kernel*' | grep -- -67

  # Confirm that list contains only what you want to delete, and then:
  rpm -qa 'kernel*' | grep -- -67 | xargs rpm -e


You can use yum for the last step if you prefer, but it doesn't add any value
for kernel removes, and it's slower.

  
Cheers,
Gavin

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to