On the RHEL 9.3 I have renamed the logical volume (LV) /dev/lvm01/root
to /dev/lvm01/root.vol
. I did everything to make the new name correctly recognized:
- changed
/etc/fstab
entry - reloaded systemd configuration
- remounted /
And I also modified the /etc/default/grub
entry:
GRUB_CMDLINE_LINUX="root=/dev/mapper/lvm01-root.vol ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/lvm01-swap.vol rd.lvm.lv=lvm01/root.vol rd.lvm.lv=lvm01/swap.vol"
Then I expected the grub2-mkconfig -o /boot/grub2/grub.cfg
to do the rest of the job and rebooted. But the system ended up with dracut message that the root partition is not found (or something like that).
After short investigation, I realized the kernel parameters had not been modified as expected. The manual change helped to get the OS booted. Interesting that the /boot/grub2/grub.cfg
was updated. But what was not updated was the /boot/loader/entries/*
files. And it was the issue.
grub2-editenv list
. Depending on the history of the system (i.e. if and howgrubby
has been used in the past), theroot=
and other the boot options may or may not be stored in/boot/grub2/grubenv
.