[root@template-cent7 ~]# yum update
Total 40 MB/s | 66 MB 00:00:01
Running transaction check
Running transaction test
Transaction check error:
installing package kernel-3.10.0-957.1.3.el7.x86_64 needs 2MB on the /boot filesystem
Error Summary
-------------
Disk Requirements:
At least 2MB more space needed on the /boot filesystem.
[root@template-cent7 /boot]# df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 190M 146M 31M 83% /boot
조치 방법
----------------------------------------------
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: 아래 3번 커맨드가 없을 시
yum install yum-utils
3- Make an oldkernel cleanup:
package-cleanup --oldkernels --count=<남길 커널 버전 갯수>
----------------------------------------------