grub2-mkconfig command shows "/usr/sbin/grub2-probe: error: failed to get canonical path of `/dev/mapper/rhel-root'." error message after renaming root lv.
Issue
- After renaming root lv, grub2-mkconfig command shows below error message:
# grub2-mkconfig -o /boot/grub2/grub.cfg
/usr/sbin/grub2-probe: error: failed to get canonical path of `/dev/mapper/vg_root-lv_root'.
-
Server fails to boot and goes in dracut shell after reboot.
-
From rescue mode, grub2-mkconfig command executed without any error which helped the server boot up successfully.
-
Why grub2-mkconfig command failed and server failed to boot as renaming root lv is online procedure?
Environment
- Red Hat Enterprise Linux (RHEL) 7
- Red Hat Enterprise Linux (RHEL) 8
- Red Hat Enterprise Linux (RHEL) 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.