Restore LVM system with VG configuration change

 

revision 1/17/2013

 

Usually in order to perform a bare metal recovery of a LVM system the same number of HDD with the same capacity or larger of the source backup is required. When restoring to a location where there is no guarantee of the same number of HDD, follow these procedures to change the VG configuration and restore the LVM.

Procedure

  1. Start the recovery environment from the media.
  2. Start the restore wizard and select the image file that contains the backup type LVM. After clicking Next] the message "Do you want to restore the LVM configuration information?" will be displayed, select [Yes] on the dialog.
  1. Restore only disks from step 2 that have boot volumes (usually "/dev/sda") to a newly configured HDD.
  2. When the process is started, two restore tasks will be performed. The restoration of the VG will be attempted in the second task but will exit with an error because it is not correctly configured at this point.
  1. From [Utilities] open a terminal and run the following.

#After the restore is complete, select [Reboot System] from the [Operations] menu and shutdown the recovery environment. Boot from the LVM system that has the changed VG configuration.vgdisplay
    → The VG information from the backup will be displayed on /dev/sda from the restored metadata.
#vgremove -f <The restored VG name>
    → Force delete the restored VG
#fdisk /dev/sda
    → Create a new Linux LVM(8e) PV partition type using the on /dev/sda2
    * It must be larger than the VG being restored.
#pvcreate /dev/sda2
    → Make /dev/sda2 the PV
#vgcreate <Original VG name> /dev/sda2(Set the PV to participate in the VG)
    → Create the VG to be restored to

  1. From the [View] menu click on [Update Latest Information] to refresh the disk information. The newly create VG will be displayed in the disk information.
  2. Click on [Restore Image] to start the restore wizard and select the same image as in step 1.After clicking Next] the message "Do you want to restore the LVM configuration information?" will be displayed, select [No] on the dialog.
  3. Restore the image containing a VG in step 2 to the newly created VG.After the restore is complete, select [Reboot System] from the [Operations] menu and shutdown the recovery environment. Boot from the LVM system that has the changed VG configuration.

 

Back to Index