rear recover doesn't work because grub2-probe fails for CRC-enabled xfs

Solution Verified - Updated -

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 when XFS is used for /boot from RHEL7.3.
    grub2-install failed while rear recover was executed in rescue mode.

  • grub2-probe, which can be called by grub2-install or grub2-mkconfig, for CRC-enabled xfs fails.

  • while restoring system by xfsrestore in Installer Rescue mode, and running grub2-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