Summary
You cannot attach a restored VMDK disk, mount the file system and copy files, due to LVM and the use of UUIDs for logical volumes.
Step By Step
- Restore the VMDK(s) and attach them to the VM as “Existing hard disks”.
- Scan the SCSI bus:
- echo "- - -" > /sys/class/scsi_host/host0/scan
- List and identify the restored disk devices by running: lsblk.
- Run the command to import and rename the duplicated volume group, by default an incremental suffix to the original name will be used:
- vgimportclone --basevgname <VolumeGroupName> <PhysicalVolume> [PhysicalVolume...]
- Verify the logical volumes by running: lvdisplay.
- Make the logical volume(s) available:
- lvchange -ay /dev/<VolumeGroupName>1/LogicalVolumeName>
- Mount the restored logical volume to a temporary mount point to access the file system:
- mount -o nouuid /dev/<VolumeGroupName>1/<LogicalVolumeName> /mnt
- Unmount the restored logical volume when the restore operation is complete:
- umount /mnt
- Remove the restored volume group and physical volume:
- vgremove <VolumeGroupName>1
- Delete the restored VMDK(s) from the VM.
- Perform cleanup of the restore job in ECX.