Production server:
Os:centos 6.8
Task: Yum upgrade #升级软件包, but does not change the software and system configuration and does not upgrade the kernel.
Problem:
Run Rpm_check_debug
Performing a transaction test
Transaction Test Error:
Installing package kernel-2.6.32-642.11.1.el6.x86_64 needs 15MB on the/boot filesystem
Error condition
-------------
Disk Requirements:
At least 15MB + space needed on the/boot filesystem.
[Email protected]/]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda2 49G 22G 25G 48%/
Tmpfs 939M 44K 939M 1%/DEV/SHM
/DEV/SDA1 93M 75M 14M 85%/boot
/dev/sda5 179G 1.8G 168G 2%/Home
Workaround: Delete the old version of the Kernel
[Email protected]/]# Rpm-qa|grep kernel
Dracut-kernel-004-409.el6_8.2.noarch
Kernel-2.6.32-504.1.3.el6.x86_64
Kernel-firmware-2.6.32-642.el6.noarch
Kernel-devel-2.6.32-573.12.1.el6.x86_64
Kernel-2.6.32-573.12.1.el6.x86_64
Kernel-2.6.32-642.el6.x86_64
Kernel-devel-2.6.32-642.el6.x86_64
Kernel-headers-2.6.32-642.el6.x86_64
[email protected]/]# Yum remove kernel-2.6.32-504.1.3.el6.x86_64 kernel-devel-2.6.32-573.12.1.el6.x86_64 kernel-2.6.32-573.12.1.el6.x86_64 kernel-devel-2.6.32-642.el6.x86_64 kernel-headers-2.6.32-642.el6.x86_64
............
Delete Complete!
[Email protected]/]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda2 49G 22G 25G 47%/
Tmpfs 939M 44K 939M 1%/DEV/SHM
/DEV/SDA1 93M 28M 61M 32%/boot #可用空间61M
/dev/sda5 179G 1.8G 168G 2%/Home
[email protected]/]# Yum upgrade #升级软件包
[Email protected]/]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda2 49G 22G 25G 47%/
Tmpfs 939M 44K 939M 1%/DEV/SHM
/DEV/SDA1 93M 54M 35M 61%/boot #升级软件包之后, free space available only 35M
/dev/sda5 179G 1.8G 168G 2%/Home
Linux operating system How to solve the "/boot" partition is full