Restore LVM system with VG configuration change

 

Revised on March 28, 2014

 

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

Procedures

  1. Start Boot Environment.
  2. Start the restore wizard and select the image file created for backup type [LVM].
    Click on [Next] button, and the message "Do you want to restore the LVM configuration information?" will be displayed.
    Select [Yes] on the dialog.
  1. Restore only disks 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 is attempted with the second task but will ends with an error because the VG is not correctly configured at this point.
  1. Select [Utilities] to open the terminal and run the following.

#vgdisplay
    → Displays the backup information of VG provided by metadata restored in "/dev/sda".
#vgremove -f <Restored VG name>
    → Forcefully delete the restored VG .
#fdisk /dev/sda
    → Create a partition for PV of Linux LVM(8e) type in "/dev/sda2".
    * Please make sure you have available space size larger than the VG to restore.
#pvcreate /dev/sda2
    → Specify ”/dev/sda2” as PV.
#vgcreate <Source VG name> /dev/sda2 (Specify PV to be included in VG.)
    → Create VG for restore destination.

  1. From the [View] menu, click on [Refresh] to refresh the disk information.
    The newly created VG will be displayed in the disk information.
  2. Click on [Restore Image] to start the restore wizard and select the same image again.
    Click on [Next] and the message "Do you want to restore the LVM configuration information?" is displayed.
    Select [No] on the dialog.
  3. Restore the backup image of VG to the newly created VG.
    Upon completion of restore processing, select [Operations] - [Reboot System] to exit Boot Environment.
    Boot from the LVM system which VG configuration is changed for.

 

Back to Index