BOOT PARTITION FILLING UP Print

  • 0

The boot partition can fill up with excess kernels causing the system to crash if the boot partition completely fills up.

With that in mind it is easy enough to adjust yum to keep only the last few kernels ...


Do the following to keep just the last 3 kernels on your server keeping the /boot partition clean

1 - Edit /etc/yum.conf and set the following parameter

installonly_limit=3

This will make your package manager keep just the 2 last kernels on your system(including the one that is running)

2 - Install yum-utils:

yum install yum-utils

3- Make an oldkernel cleanup:

package-cleanup --oldkernels --count=3



Completed as this will erase in a good fashion the old kernels, and, keep just the last 3 kernels through the following upgrades.

Was this answer helpful?

« Back

Powered by WHMCompleteSolution