If you want to semi-auto create these partitions in preparation for a BMR rollback, without having to manually create the LVM's then you can do the following steps (Do not do this for non-BMR tasks such as just rolling back to a machine that already has the LVM partitions created. BMR ONLY):
- From the Linux LiveDVD, mount the "/" recovery point for the machine you wish to restore.
- Use fdisk to manually create your physical disk layout example /dev/sda1, /dev/sda2, /dev/sda5 ....etc
- Locate the LVM archive directory in your mounted recovery point which is normally /etc/lvm/archive/example-volumegroup.vg
- Create your physical disks to be used for your LVM. The UUID in the example below should be the same UUID of the physical disk in your example-volumegroup.vg file. If you have more than one physical disk in your example-volumegroup.vg file, then you need to run the command for all the necessary physical disks in the file..
- pvcreate --uuid "MUKwI1-nGCQ-XWHx-O3Ip-rF68-DpAR-Xbjc7a" --restorefile /etc/lvm/archive/example-volumegroup.vg /dev/sda5
- Once all of your physical disks have been restored then you need to restore the Volume group and the Logical volumes within. In the below command, the last argument should be the name of the volume group you are restoring.
- vgcfgrestore -f /etc/lvm/archive/example-volumegroup.vg example-volumegroup
- You then need to format your logical partitions that were created so that you can mount them to folders, so that the Core will be able to see them for the manual rollback process. Example(YOUR SETUP WILL BE DIFFERENT):
- mkdir /mnt/boot /mnt/root /mnt/data
- mkfs.ext4 /dev/sda1 /mnt/boot ; mkfs.ext4 /dev/mapper/example--volumegroup_root ; mkfs.ext4 /dev/mapper/example-volumegroup_data
- mount /dev/sda1 /mnt/boot ; mount /dev/mapper/example--volumegroup_root /mnt/root ; mount /dev/mapper/example--volumegroup_data /mnt/data
- Complete the restore from the Core Console using the manual partitioning option and map the recovery point to the proper mount point.