Linux boot空间不够 Out of Disk Space While Installing Package

Redhat  yum update升级时报错:
    Linux /boot: Out of Disk Space While Installing Package
    kernel-2.6.32-431.17.1.el6.x86_64


处理方法:
    1.查看已经安装的内核
    [root@deepbay706 ~]# rpm -aq | grep kernel-
    kernel-2.6.32-71.el6.x86_64
    kernel-2.6.32-279.14.1.el6.x86_64
    kernel-2.6.32-358.11.1.el6.x86_64
    2.删除旧的内核
    [root@deepbay706 ~]# rpm -e kernel-2.6.32-71.el6.x86_64
    3.设置内核数量限制    #100M的/boot只够存三个kernel,installonly_limit设置为2
    [root@deepbay706 ~]# cat /etc/yum.conf | grep installonly_limit
    installonly_limit=2
    4.继续升级
    yum update


总结:此案例中/boot的size是100M,不太够,建议设置boot为1G。
    [root@deepbay706 boot]# df -h | grep boot
    /dev/sda1              97M   74M    19M  80% /boot

当你觉得自己的想法很创新时,十有八九是知识面太窄。
原文地址:https://www.cnblogs.com/flankershen/p/6427384.html