As we know kernels use to update regularly in linux server and blocking storage of old kernel files. So we use to get mail notice like this blew on when we use WHM in server.
The filesystem “/boot” mounted at “/boot” reached “warn” status because you currently use 84.36% of its available blocks.
The filesystem “/boot” mounted at “/boot” reached “warn” status because you currently use 84.36% of its available blocks.
First, check what kernel we're using, and do not attempt to remove it using following command
# uname -a
We'll get current kernel version which we must not delete like blew
3.10.0-514.6.2.el7.x86_64
Check Installed Kernels use following command we'll get list of kernel
rpm -q kernel
kernel-3.10.0-229.el7.x86_64kernel-3.10.0-327.28.2.el7.x86_64
kernel-3.10.0-514.6.2.el7.x86_64
Normally reason why you maybe want remove kernels is limited disk space, example on VPS servers and laptop. This is very easy task, you need yum-utils package.
yum install yum-utils
If you want to update latest kernel run following command from SSH using puttyyum updatePackage-cleanup set count as how many old kernels you want left
example if there are 5 kernels and we want to keep 2 and remove other old kernels use following command
package-cleanup --oldkernels --count=2