OCI: How To Clean Or Free Space In /boot Filesystem In Oracle Linux
APPLIES TO:
Oracle Cloud Infrastructure
Oracle Linux
GOAL
How To Clean Or Free Space In /boot Filesystem In Oracle Linux
[root@ server0 opc]# df -hT /boot Filesystem Type Size Used Avail Use% Mounted on /dev/sda2 xfs 1014M 989M 26M 98% /boot [root@ server0 opc]
SOLUTION
Validate what is the active Kernel version in the instance
# uname -a
Linux server0 5.4.17-2136.321.4.el8uek.x86_64 #2 SMP Mon Jun 26 18:17:37 PDT
Validate all installed Kernel in the instance and check the size of initramfs-* image files under /boot
[root@ server0 boot]# ls -altrh *initram* -rw-------. 1 root root 63M Dec 1 2021 initramfs-0-rescue-047059e7c2024eceac005ca6292d668e.img -rw-------. 1 root root 64M Dec 1 2021 initramfs-4.18.0-348.2.1.el8_5.x86_64.img -rw-------. 1 root root 62M Dec 1 2021 initramfs-5.4.17-2136.301.1.3.el8uek.x86_64.img -rw-------. 1 root root 30M May 26 2022 initramfs-5.4.17-2136.301.1.3.el8uek.x86_64kdump.img -rw------- 1 root root 110M May 26 2022 initramfs-0-rescue-9b6c5d2aba434abf951aba41084c96e8.img -rw------- 1 root root 109M May 26 2022 initramfs-4.18.0-372.9.1.el8.x86_64.img -rw------- 1 root root 31M Jul 21 06:33 initramfs-5.4.17-2136.307.3.4.el8uek.x86_64kdump.img -rw------- 1 root root 116M Jul 21 06:39 initramfs-5.4.17-2136.321.4.el8uek.x86_64.img -rw------- 1 root root 117M Jul 21 06:39 initramfs-4.18.0-477.13.1.el8_8.x86_64.img -rw------- 1 root root 114M Jul 21 06:41 initramfs-5.4.17-2136.307.3.4.el8uek.x86_64.img -rw------- 1 root root 31M Jul 21 06:50 initramfs-5.4.17-2136.321.4.el8uek.x86_64kdump.img [root@ server0 boot]# rpm -qa | grep -i ^kernel kernel-modules-4.18.0-477.13.1.el8_8.x86_64 kernel-uek-5.4.17-2136.321.4.el8uek.x86_64 kernel-uek-5.4.17-2136.301.1.3.el8uek.x86_64 kernel-devel-4.18.0-477.13.1.el8_8.x86_64 kernel-modules-4.18.0-348.2.1.el8_5.x86_64 kernel-core-4.18.0-372.9.1.el8.x86_64 kernel-4.18.0-348.2.1.el8_5.x86_64 kernel-devel-4.18.0-372.9.1.el8.x86_64 kernel-uek-devel-5.4.17-2136.301.1.3.el8uek.x86_64 kernel-core-4.18.0-477.13.1.el8_8.x86_64 kernel-core-4.18.0-348.2.1.el8_5.x86_64 kernel-tools-libs-4.18.0-477.13.1.el8_8.x86_64 kernel-uek-devel-5.4.17-2136.321.4.el8uek.x86_64 kernel-uek-5.4.17-2136.307.3.4.el8uek.x86_64 kernel-headers-4.18.0-477.13.1.el8_8.x86_64 kernel-modules-4.18.0-372.9.1.el8.x86_64 kernel-tools-4.18.0-477.13.1.el8_8.x86_64 kernel-4.18.0-477.13.1.el8_8.x86_64 [root@ server0 boot]#
Tagged:
1