Portal Home > Knowledgebase > Articles Database > /boot full on cpanel server
/boot full on cpanel server
|Posted by vu3prx, 10-15-2015, 10:31 PM|
|On my server /boot is full
Files in /boot folder
Any suggestion on freeing up disk space ? Did kernel size grow recently ? I have another server at softlayer, that had 100 MB /boot, it was the default installation, on that i am stuck, not able to upgrade to new kernel as no free disk space.
In this case, can i remove files that is not from current live kernel ?
|Posted by BeZazz, 10-16-2015, 05:50 AM|
|Personally I would remove all but the current Kernel and the one before that.
|Posted by Srv24x7, 10-16-2015, 09:40 AM|
Check the grub.conf of menu.lst and see which is the current kernel and the one most recent one. The below link could be helpful in guiding you through:
|Posted by iserversupport, 10-16-2015, 03:47 PM|
|You need to remove unused kernel to free up disk space, make sure to keep current used kernel files intact
|Posted by vu3prx, 10-17-2015, 12:00 AM|
|Thanks everyone for the reply.
Only have one kernel installed. I removed all others. Look like few files rpm packages staying behind.
Packages that are not related to current kernel version
Any of these safe to remove ?
|Posted by Srv24x7, 10-17-2015, 02:26 AM|
No, please don't remove them, at least until you verify them. It may cause issues when you boot us the next time.
|Posted by tarunap, 10-18-2015, 06:13 AM|
|Do the following to keep just the last 2 kernel on your system, to keep /boot clean and you have too low space for /boot. Better be with atleast 1GB
1) Edit /etc/yum.conf and set the following parameter
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:
3) Make an oldkernel cleanup:
Done. This will clean the old kernels, and, keep just the last 2 of them for the next upgrades.
4) The command you ran
Doesn't actually tell you what kernels are using space on your boot partition. dracut-kernel doesn't actually
install a kernel on your system. You can query the rpm to confirm that.
In case you feel like to remove it and its taking unwanted space, you can just remove the rpm`s.
Add to Favourites Print this Article