Free up boot partition space on Linux servers

Free up boot partition space on Linux servers

Our current SAN server has only about 200 MB assigned to boot partition and therefore we need to ensure that old kernels are removed so that there is adequate space in the /boot partition. Following are the steps taken to resolve this issue:

Do the following to keep just the last 2 kernels on your system, to keep /boot clean

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

installonly_limit=2

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=2 

Done. This will erase in a good fashion the old kernels, and, keep just the last 2 of them for the next upgrades.

Ref: http://unix.stackexchange.com/questions/105026/boot-partition-is-almost-full-in-centos



    • Related Articles

    • Install MagicSpam (Free edition) through plesk panel

      MagicSpam is an anti-spam product designed to target spam and junk mail, and remove it before it even gets in your inbox. Simple to understand, with a full Graphical User Interface, statistics, graphs, full logging, custom controls, blacklists, ...
    • How to install Plesk in CentOS Linux

      Installing Plesk Panel on CentOS Linux server Check out our updated step by step guide on how to setup plesk obsidian on centos 7 To install Plesk panel at Linux server, please follow the below given steps. Step-01: Installation of the Plesk control ...
    • Install Free Lets Encrypt SSL certificate for your domains and sub-sudomains

      Install Free Lets Encrypt SSL Certificate from Plesk Here we will get to know how to add Let's Encrypt Free SSL certificate for your domains, www and domain aliases hosted on the same server, also how to redirect HTTP to HTTPs. Step 1: Login to the ...
    • server migration checklist (dallas to singapore) with virtuozzo for linux servers

      Make a list of IPs required on the new server Sort out the domains which are not required and can be removed from the server install csf, cdp agent, plesk, license, dummy domain on new server list out the domains for which email needs to be sent to ...
    • How to View the Plesk Website Statistics and Disk space Utilization

      How to View the Website Statistics and Disk space Utilization Viewing Statistics from client area Website Statistics Disk Space Utilization Viewing Statistics from client area Step 1: Log in to your client area from https://manage.diadem.in/ and once ...