rear recover doesn't work because grub2-probe fails for CRC-enabled xfs
Environment
- Red Hat Enterprise Linux (RHEL) 7.3
- kernel-3.10.0-514.el7
- xfsprogs-4.5.0-8.el7
- rear-1.17.2-6.el7
- grub2-2.02-0.65.el7
Issue
-
rear recoverdoesn't work whenXFSis used for/bootfromRHEL7.3.
grub2-installfailed whilerear recoverwas executed inrescue mode. -
grub2-probe, which can be called bygrub2-installorgrub2-mkconfig, forCRC-enabled xfsfails. -
while restoring system by
xfsrestorein Installer Rescue mode, and runninggrub2-mkconfigfollowing error showed:/usr/sbin/grub2-probe: error: unknown filesystem. -
after system reboot the following error shows and boot fails:
error: disk 'hd3, gpt2' not found. error: you need to load the kernel first.
Resolution
Update to
- grub2-2.02-0.76.el7 shipped with Advisory RHBA-2018:3264 or newer
- rear-2.00-2.el7 shipped with Advisory 2017:2052 or newer
Root Cause
Previously rear was setting the file system UUID twice, therefore filesystem metadata ended up inconsistent and grub2-install command failed.
Previously grub2 didn't support reading from XFS filesystems with new filesystem features and failed to boot off of the filesystems created during system installation.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments