Skip to main content

Centos 7.3, LVM, GRUB2, UEFI --> Hyper-V

Thread needs solution

Dear all,

We have a physical server with Centos 7.3 64bit, it uses UEFI, GRUB2 and LVM. I'm trying to restore backup image of this machine to Hyper-V VM, but it unfortunately doesn't work. Product in question is Acronis Advanced Backup 11.7.50058 for Linux.

Is this migration something that should work? Or can I make it work with some workaround?

I've tried to restore it
* as a set of VirtualPC files and then using it's vhd as a boot VM's boot disc,
* from a recovery cd running on target VM (manually pre-configured VM),
* trying to restore and boot using IDE and SCSI (latter should work according to manual),
* in both gen1 (bios) and gen2 (uefi) VM (latter should work according to manual),
* without and with Acronis univesal restore (latter should work according to manual)

... but to no avail, restored VM doesn't boot.

Some more info: Recovery procedure "detects Software RAID/LVM metadata in the backup" but when clicking Apply RADI/LVM it produces error message "Cannot apply the RAID/LVM configuration. Successfully mapped devices from the backup: Unmapped devices from the backup: Machine devices not used in mapping:"

If I leave ABR to convert LVM to simple discs, restore finishes, but again system doesn't boot. Using Universal restore produces no error, but examining the logs it says it couldn't find initrd menu entries (Centos 7.3 is using initramfs?).

I am no linux expert so I might have missed something obvious, please bear with me.

Thanks and best regards,

Andrej

 

0 Users found this helpful
frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 250
Comments: 7092

Hello Andrej,

Welcome to Acronis forums! I've checked our internal resources for similar issues and found a ticket, where the issue was solved with the following steps:  

The issue was not reproduced when Bootable media was booted in UEFI mode.
Steps:

  • Booted UEFI machine from Linux-based Bootable media in UEFI mode ;
  • Selected the provided archive;
  • Specified the following options:
    *Apply RAID/LVM = applied;
    *AUR = enabled;
  • Started recovery;
  • VM sucessfully booted

Please try to boot the target machine from the media in UEFI mode. Remember that LVM structure may be recovered only as whole, thus you need to make sure that the new disk configuration includes at least (!) the same number of disks as the original volume structure did (!). The capacity of the disks must be enough to fit all the data being recovered. So, it is not possible to recover machine with LVM on 2 disks to a machine with 1 disk. 

Note, a machine running Linux cannot be transferred between UEFI and BIOS. Please check if the target machine is UEFI-based and make sure to boot it from the Acronis media in UEFI mode (64 bit mode). Should the issue persist, it's better to raise a support ticket for more indepth investigation. 

Thank you,