Re: CentOS 7: restore fails
Nikolaos Milas <[email protected]>
| Newsgroups | gmane.linux.mondo.devel |
|---|---|
| Organization | National Observatory of Athens |
| Message-ID | <[email protected]> |
On 26/12/2016 1:47 πμ, Bruno Cornec wrote:
> ...
> In your case grub doesn't install correctly.
> ...
> 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 ?
> ...
Thanks Bruno,
Here it is:
# this device map was generated by anaconda
(hd0) /dev/vda
(hd1) /dev/vda
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:
[root@dns2 dns4]# parted -l
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/centos-swap: 2147MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 2147MB 2147MB linux-swap(v1)
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/centos-root: 18.8GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 18.8GB 18.8GB xfs
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary xfs boot
2 525MB 21.5GB 20.9GB primary lvm
This is NOT the case with my CentOS 5 and CentOS 6 VMs, which all have a
"correct" device map, with a single (hda0) entry.
Is the above behavior expected? If not, what should be the expected way
of operation and how do we fix things up?
Many Thanks!
Nick
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel