On 5/5/2017 9:10 ??, Marcelo Roccasalva wrote:> xfs_admin -U restore /dev/vdalBingo! I had to unmount the boot partition (being in Troubleshooting mode), run the above command, which provided a new UUID and at last the partition was recognized as xfs. (I forgot to copy the output to paste here.) I then mounted the boot partition again, chrooted, grub2-install'ed successfully, exited and rebooted. The VM started booting, seemingly well, but after some time it took me to emergency mode. ("Give root password for maintenance or type Ctrl-D to continue.") I'll have to check that tomorrow... I need some sleep now (it's after midnight over here - in Athens, Greece). [Perhaps I should have manually edited /etc/fstab as well to enter the new UUID?] Anyway, that was a good progress! Thanks for your great cooperation. I'll keep you updated. Cheers, Nick
On 6/5/2017 12:20 ??, Nikolaos Milas wrote:> [Perhaps I should have manually edited /etc/fstab as well to enter the > new UUID?]Yes, that was it! The VM booted fine after /etc/fstab update! Case closed. It was a tricky one! Thank you all for your feedback and kind assistance! Cheers, Nick
On 6/5/2017 12:09 ??, Nikolaos Milas wrote:> The VM booted fine after /etc/fstab update!I did another test, which was also successful. Below follows the output from the process (after booting in troubleshooting mode using the CentOS 7 media disk): 1) Continue 2) Read-only mount 3) Skip to shell 4) Quit (Reboot) Please make a selection from the above: 1 ====================================================== ====================================================== Rescue Mount Your system has been mounted under /mmt/sysimage. If you would like to make your system the root environment, run the command: chroot /mnt/sysimage Please press <return> to get a shell. When finished, please exit from the shell and your system will reboot. sh-4.2# umount /dev/vda1 sh-4.2# xfs_admin -U restore /dev/vda1 Clearing log and setting UUID writing all SBs new UUID = b05227b2-7c86-4ccf-81ff-204a9a80f789 sh-4.2# mount /dev/vda1 /mmt/sysimage/boot sh-4.2# chroot /mnt/sysimage bash-4.2# grub2-install /dev/vda Installing for i386-pc platform. Installation finished. No error reported. bash-4.2# nano /etc/fstab bash-4.2# exit sh-4.2# Note also that after logging into the (finally bootable) OS, we should follow the directions: "Resetting and Reinstalling GRUB 2". https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sec-Reinstalling_GRUB_2.html#sec-Resetting_and_Reinstalling_GRUB_2 Best regards, Nick