Linux operating system How to solve the "/boot" partition is full

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.