Re: CentOS 7: restore fails
Bruno Cornec <[email protected]>
| Newsgroups | gmane.linux.mondo.devel |
|---|---|
| Message-ID | <[email protected]> |
Nikolaos Milas said on Mon, Dec 26, 2016 at 11:37:38AM +0200: >> grub2-install: error: cannot find a GRUB drive for /dev/vda1. Check your device.map. >> THat's probably the issue here. Could you give us your /boot/grub2/device.map file please ? > # this device map was generated by anaconda > (hd0) /dev/vda > (hd1) /dev/vda Humm doesn't look right to me. There should be only one line, typically: (hd0) /dev/vda Now, I'm not sure this is the cause of the problem with grub-install, but you could try. Amend your device.map file and run grub2-install again after a chroot in /mnt/RESTORING to see whether it's behaving better. >Interestingly, I found that all my CentOS 7 VMs have the same >/boot/grub2/device.map, which seemingly refers to two HDs, although the >VM in fact includes only one (virtual) HD: Strange. >Is the above behavior expected? If not, what should be the expected way >of operation and how do we fix things up? I'm not sure yet. But at install time, grub2 is installed correctly, because you're able to reboot on it. Now if mondorestore does it, it doesn't work. It's always difficult to comment without the conf below the fingers to try. Bruno. -- Open Source Profession, WW Linux Community Lead http://www.hpintelco.net HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource FLOSS projects: http://mondorescue.org http://project-builder.org Musique ancienne? http://www.musique-ancienne.org http://www.medieval.org ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot