OpenVZ Forum


Home » General » Support » Clean "boot" directory from old updates (Clean "boot" directory from old updates)
Re: Clean "boot" directory from old updates [message #38410 is a reply to message #38409] Thu, 17 December 2009 03:21 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Since you are on an RPM-based system, the correct way is to remove RPMS, not files. Check the output of
rpm -qa ovzkernel\*
and then run rpm -e on some older kernels. Be careful!

Alternatively, you can find out which package a file belongs to, for example:
rpm -qf /boot/vmlinux-2.6.18-128.2.1.el5.028stab064.4
and then again run rpm -e on such packages.

Also, in case it's CentOS 5 AFAIR yum should take care of removing the old kernels. There is probably a setting in /etc/yum.conf which tells how many older kernels to keep -- you can lower that value to say 2 or 3 in case it's higher.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Previous Topic: ve private and ve root, needs to be mounted on host?
Next Topic: speed up container start with too many IPs
Goto Forum:
  


Current Time: Sat Aug 17 18:22:33 GMT 2024

Total time taken to generate the page: 0.02772 seconds