背景 链接到标题 众多 Linux 发行版中,很多为了稳定性要求,Kernel 的版本还处于比较低的版本,比如:3.10.0-xxx(说的就是 CentOS)。 在工作中难免因为某些需求要升级 Kernel,最近遇到多次升级 Kernel 后导致 /boot 分区被占满的情况,特此查找资料记录。
升级方式 链接到标题 在之前的博客中提到过多次,CentOS 发行版升级一般采用 yum update ,Kernel 因为没有相关依赖,也可以直接 rpm -Uvh 的方式升级。
yum update 链接到标题 举个例子,比如这台 Linux,目前情况如下:
[root@node111 14:25:10 ~]$uname -a Linux node111 3.10.0-693.11.6.el7.smartx.1.x86_64 #1 SMP Tue Jan 16 22:09:10 CST 2018 x86_64 x86_64 x86_64 GNU/Linux [root@node111 14:25:12 ~]$ll /boot/ total 124929 -rw-r--r--. 1 root root 140924 Jan 16 2018 config-3.10.0-693.11.6.el7.smartx.1.x86_64 drwxr-xr-x. 3 root root 1024 Jul 2 07:23 efi drwxr-xr-x.