OpenVZ Forum


Home » General » Support » Space on boot
Space on boot [message #51380] Fri, 02 May 2014 19:43 Go to next message
fartypants is currently offline  fartypants
Messages: 2
Registered: May 2014
Junior Member
HI,

My server running Solusvm its the host with 4 vps servers created on it as a boot partition of 250MB but after the last update with new kernel i now only have 60MB left
and just wanted to know if there was a command i could use that would clean the boot partition up and remove some old kernels not in use, to free up some space.

This is what i get when i run command rpm -q kernel

kernel-2.6.32-358.el6.x86_64
kernel-2.6.32-431.el6.x86_64

This is the list of files in the boot partition

dr-xr-xr-x. 5 root root 4096 May 2 00:07 .
dr-xr-xr-x. 26 root root 4096 May 2 00:07 ..
-rw-r--r--. 1 root root 104595 Nov 8 14:21 config-2.6.32-042stab083.2
-rw-r--r-- 1 root root 104653 Feb 17 17:13 config-2.6.32-042stab084.26
-rw-r--r-- 1 root root 105741 Mar 21 15:21 config-2.6.32-042stab085.20
-rw-r--r-- 1 root root 105740 Apr 3 14:55 config-2.6.32-042stab088.4
-rw-r--r--. 1 root root 104081 Feb 22 2013 config-2.6.32-358.el6.x86_64
-rw-r--r--. 1 root root 105195 Nov 22 03:40 config-2.6.32-431.el6.x86_64
drwxr-xr-x. 3 root root 1024 Dec 8 01:17 efi
drwxr-xr-x. 2 root root 1024 May 2 00:01 grub
-rw-------. 1 root root 16861958 Dec 8 19:14 initramfs-2.6.32-042stab083.2.img
-rw------- 1 root root 16860372 Mar 9 19:26 initramfs-2.6.32-042stab084.26.img
-rw------- 1 root root 17403187 Mar 26 01:39 initramfs-2.6.32-042stab085.20.img
-rw------- 1 root root 17423028 May 2 00:01 initramfs-2.6.32-042stab088.4.img
-rw-r--r--. 1 root root 16208948 Dec 8 01:18 initramfs-2.6.32-358.el6.x86_64.img
-rw-------. 1 root root 17128157 Dec 8 01:24 initramfs-2.6.32-431.el6.x86_64.img
-rw------- 1 root root 4610771 Dec 8 20:44 initrd-2.6.32-042stab083.2kdump.img
-rw------- 1 root root 4610451 Mar 11 21:03 initrd-2.6.32-042stab084.26kdump.img
-rw------- 1 root root 4641292 Mar 26 01:49 initrd-2.6.32-042stab085.20kdump.img
-rw------- 1 root root 4603320 May 2 00:07 initrd-2.6.32-042stab088.4kdump.img
-rw-------. 1 root root 4479509 Dec 8 01:23 initrd-2.6.32-358.el6.x86_64kdump.img
-rw-------. 1 root root 4510380 Dec 8 01:29 initrd-2.6.32-431.el6.x86_64kdump.img
drwx------. 2 root root 12288 Dec 8 01:07 lost+found
-rw-r--r--. 1 root root 194391 Nov 8 14:22 symvers-2.6.32-042stab083.2.gz
-rw-r--r-- 1 root root 194290 Feb 17 17:15 symvers-2.6.32-042stab084.26.gz
-rw-r--r-- 1 root root 202361 Mar 21 15:22 symvers-2.6.32-042stab085.20.gz
-rw-r--r-- 1 root root 202462 Apr 3 14:57 symvers-2.6.32-042stab088.4.gz
-rw-r--r--. 1 root root 185734 Feb 22 2013 symvers-2.6.32-358.el6.x86_64.gz
-rw-r--r--. 1 root root 193758 Nov 22 03:41 symvers-2.6.32-431.el6.x86_64.gz
-rw-r--r--. 1 root root 2458156 Nov 8 14:21 System.map-2.6.32-042stab083.2
-rw-r--r-- 1 root root 2458372 Feb 17 17:13 System.map-2.6.32-042stab084.26
-rw-r--r-- 1 root root 2566506 Mar 21 15:21 System.map-2.6.32-042stab085.20
-rw-r--r-- 1 root root 2568130 Apr 3 14:55 System.map-2.6.32-042stab088.4
-rw-r--r--. 1 root root 2407466 Feb 22 2013 System.map-2.6.32-358.el6.x86_64
-rw-r--r--. 1 root root 2518236 Nov 22 03:40 System.map-2.6.32-431.el6.x86_64
-rwxr-xr-x. 1 root root 4085168 Nov 8 14:21 vmlinuz-2.6.32-042stab083.2
-rw-r--r--. 1 root root 164 Nov 8 14:21 .vmlinuz-2.6.32-042stab083.2.hmac
-rwxr-xr-x 1 root root 4085616 Feb 17 17:13 vmlinuz-2.6.32-042stab084.26
-rw-r--r-- 1 root root 165 Feb 17 17:13 .vmlinuz-2.6.32-042stab084.26.hmac
-rwxr-xr-x 1 root root 4163280 Mar 21 15:21 vmlinuz-2.6.32-042stab085.20
-rw-r--r-- 1 root root 165 Mar 21 15:21 .vmlinuz-2.6.32-042stab085.20.hmac
-rwxr-xr-x 1 root root 4166224 Apr 3 14:55 vmlinuz-2.6.32-042stab088.4
-rw-r--r-- 1 root root 164 Apr 3 14:55 .vmlinuz-2.6.32-042stab088.4.hmac
-rwxr-xr-x. 1 root root 4043888 Feb 22 2013 vmlinuz-2.6.32-358.el6.x86_64
-rw-r--r--. 1 root root 166 Feb 22 2013 .vmlinuz-2.6.32-358.el6.x86_64.hmac
-rwxr-xr-x. 1 root root 4128368 Nov 22 03:40 vmlinuz-2.6.32-431.el6.x86_64
-rw-r--r--. 1 root root 166 Nov 22 03:40 .vmlinuz-2.6.32-431.el6.x86_64.hmac
Re: Space on boot [message #51384 is a reply to message #51380] Sat, 03 May 2014 13:23 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Two things you can do without any issues:

- uninstall old regular kernels, you aren't using them anyway
- remove old kdump files from the kernels that you don't use or don't exist on your system anymore.

You could alse remove old vzkernels, but I prefer to keep at least one vzkernel that is verified to work well for my systems (besides the active one, and that is not always the latest one).

After you remove either a kernel or a vzkernel, make sure grub has the correct kernel set as default (same as you do after a regular upgrade happens).

Anyway, even if you end up with 3 regular and 3 vzkernels, your /boot partition should be just about big enough.
Re: Space on boot [message #51385 is a reply to message #51384] Sat, 03 May 2014 13:27 Go to previous message
fartypants is currently offline  fartypants
Messages: 2
Registered: May 2014
Junior Member
Ales wrote on Sat, 03 May 2014 09:23
Two things you can do without any issues:

- uninstall old regular kernels, you aren't using them anyway
- remove old kdump files from the kernels that you don't use or don't exist on your system anymore.

You could alse remove old vzkernels, but I prefer to keep at least one vzkernel that is verified to work well for my systems (besides the active one, and that is not always the latest one).

After you remove either a kernel or a vzkernel, make sure grub has the correct kernel set as default (same as you do after a regular upgrade happens).

Anyway, even if you end up with 3 regular and 3 vzkernels, your /boot partition should be just about big enough.


Hi thanks for the reply, but this is all new to me and not sure how to remove them, also when i do yum update i have never checked grub to see which kernel is being used.
Previous Topic: 2.6.32-042stab088.4 Issues
Next Topic: OPENVZ / MYSQL CRASH RADOMLY ON CONTAINER
Goto Forum:
  


Current Time: Mon May 06 05:47:25 GMT 2024

Total time taken to generate the page: 0.01958 seconds