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 recover
doesn't work whenXFS
is used for/boot
fromRHEL7.3
.
grub2-install
failed whilerear recover
was executed inrescue mode
. -
grub2-probe
, which can be called bygrub2-install
orgrub2-mkconfig
, forCRC-enabled xfs
fails. -
while restoring system by
xfsrestore
in Installer Rescue mode, and runninggrub2-mkconfig
following 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