Re: CentOS 7: restore fails [SOLVED]

Nikolaos Milas <[email protected]>
Newsgroups gmane.linux.mondo.devel
Organization National Observatory of Athens
Message-ID <[email protected]>
On 4/5/2017 5:22 μμ, Nikolaos Milas wrote:

> How can we fix this cloned CentOS 7 installation to become bootable?
>

Through an investigation in the CentOS mailing list, we found the solution.

The problem is caused by a bug in xfs in combination with CentOS 7.3. 
So, it occurs when the boot partition is formatted as xfs.

Details of the bug are here:

    https://bugzilla.redhat.com/show_bug.cgi?id=1399487

The solution:

After restoring a backup:

1. Boot using CentOS installation media and enter Troubleshooting mode

2. Unmount the boot partition and run the command:

    xfs_admin -U restore /dev/vdal

3. This provides a new UUID to the boot partition and enables 
recognition of the partition filesystem (as xfs).

4. Mount the boot partition again, chroot to /mnt/sysimage/ and run:

    grub2-install /dev/vda

5. Edit /etc/fstab and replace the existing boot partition UUID with the 
one generated at step 2 above.

6. Exit, Reboot.

Done!

That was a VERY tricky one. It almost drove me crazy.

I don't know if mondo/mindi should or could be modified to take into 
account this problem, to help users avoid needing to follow the above 
process.

In any case, I do wish the above may prove useful to someone!

Cheers,
Nick


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.