→ Applies to: SynetoOS 6.x
PREREQUISITES
This check is mandatory before upgrading to SynetoOS 6.0.3. It can also be run at any time to verify available space on the /boot partition.
Symptom
During the upgrade from SynetoOS 5 to SynetoOS 6, the process might halt during the post-upgrade reconfiguration phase due to insufficient space in the /boot partition (~405 MB) caused by leftover older kernels. Upon reboot, the system fails to start normally and drops into a GRUB rescue console (grub>).
Solution
Step 1. Connect to SynetoOS appliance via SSH as admin
ssh admin@<your_ip_address_or_hostname>
Step 2. Get root privileges
sudo su -
Step 3. Check available space on the /boot partition
df -h /bootEXAMPLE OUTPUT
[root@syneto ~]# df -h /boot Filesystem Size Used Avail Use% Mounted on /dev/md127 405M 298M 107M 74% /bootIf free space is below 150 MB, proceed with below steps to free up space before starting the upgrade.
Step 4. Check which kernels are currently installed
rpm -qa kernelEXAMPLE OUTPUT
[root@syneto ~]# rpm -qa kernel kernel-4.18.0-477.27.1.el8_8.x86_64 kernel-4.18.0-513.11.1.el8_9.x86_64 kernel-5.14.0-611.55.1.el9_7.x86_64
Step 5. Check which kernel is currently running
uname -rEXAMPLE OUTPUT
[root@syneto ~]# uname -r 5.14.0-611.55.1.el9_7.x86_64
Step 6. Remove old unused kernels (replace <old-version> with versions found in Step 4 that do not match the output of Step 5)
dnf remove kernel-core-<old-version> kernel-modules-<old-version> kernel-<old-version>EXAMPLE
dnf remove kernel-core-4.18.0-477.27.1.el8_8.x86_64 kernel-modules-4.18.0-477.27.1.el8_8.x86_64 kernel-4.18.0-477.27.1.el8_8.x86_64 dnf remove kernel-core-4.18.0-513.11.1.el8_9.x86_64 kernel-modules-4.18.0-513.11.1.el8_9.x86_64 kernel-4.18.0-513.11.1.el8_9.x86_64IMPORTANT
Run this command for each old kernel to remove.
Never remove the kernel currently in use (the one shown in Step 5). Only remove kernels whose version does not match the output of Step 5.
Step 7. Check that /boot now has sufficient free space before proceeding with the upgrade
df -h /bootEXAMPLE OUTPUT
[root@syneto ~]# df -h /boot Filesystem Size Used Avail Use% Mounted on /dev/md127 405M 178M 227M 44% /bootCheck if the free space is greater than 150 MB before starting the upgrade.