Disk utilization of "/boot" exceeds 90%

Ranjan

Verified User
Joined
Dec 30, 2021
Messages
22
Location
India
Hi there,
/boot is using about 91% of available space, screenshot attached.
Any suggestion, which files should I clean?
 

Attachments

  • boot.png
    boot.png
    26.8 KB · Views: 14
  • files.png
    files.png
    86.6 KB · Views: 15
Hello,
You need to purge old kernels
Check which kernel you are using now, if not latest - reboot to switch to it.
Then remove all unused. There are two ways, or manually or with app:

 
better way, Increase /boot partition size atleast 1GB
That sounds a good idea.
Hello,
You need to purge old kernels
Check which kernel you are using now, if not latest - reboot to switch to it.
Then remove all unused. There are two ways, or manually or with app:

just cleaned old kernels.
thanks
 
Another suggestion: only have the latest 2 kernels installed. I changed it from 3 to 2 on servers with /boot of 512MB, never have any problems anymore
 
That depends on your OS. If it's RH alike, so Centos or Almalinux, you can edit the /etc/yum.conf file and change this:
installonly_limit=3
The default in Centos is 5 if I'm correct. So I set this to 3 for the same reason and that's enough. But you can also set it to 2 if you have 3 now.
 
/boot doesn't really need a lot of disk space anyway. It's not like random stuff is being written there while the server is running. It just stores the kernel. Keeping 4 old kernels is probably a bit of overkill - but that is the default. yum will remove the oldest kernel before it installs a new kernel anyway, so it just keeps rotating them out.

90% usage in /boot is not the same thing as 90% usage in /home or /var - where stuff is being written to all the time.
 
Yes that is correct, it's a rather fairly static usage.
Only the kernels and additional files have become a bit bigger over the years.
Several years ago it was enough to have a 500 MB boot partition. Nowadays we create a boot partition of 1 GB.
But if one shortens the amount of kernels being kept, 500 MB is still enough.
 
Back
Top