----
{toc:location=top|maxLevel=3|minLevel=3|type=flat|separator=pipe|style=border:1}
----
h3. Preparations
h5. Configuring Server
For testing purposes, create a Server with a complex software RAID layout with seven (7) different disks:
!scheme2.png!
The following screen-shot shows how the example layout looks in *fdisk*.
!picture16.png!
h5. Creating a Disk Safe
Create a Disk Safe with the "Protect Storage Configuration" option enabled. See [Create Disk Safes].
!Performing Bare-Metal Restore with LVM^Create New Disk Safe window_Create button_English.png!
h5. Creating and Running a Policy
1. Create a basic Policy for the new Disk Safe. See [Create policies].
!Performing Bare-Metal Restore with LVM^Create New Policy window_Filled in_Create button_English.png!
2. Run the created Policy. See [Run policies].
----
h3. Bare-Metal Restore Process
Follow the instructions below to start the Software RAID (MD) Bare Metal Restore.
{info:title=Note}The process is the same for all Boot methods:
* Live CD
* PXE Network Boot
{info}
----
{toc:location=top|maxLevel=4|minLevel=4|type=flat|separator=pipe|style=border:1}
----
h4. Step 1: Boot from Live CD or PXE Network Boot
If you are restoring your system partition (e.g., {{/}}, {{/boot}}, {{/bin}}, {{/lib}}, etc.), boot the physical or virtual machine from one of the available Server Backup disaster recovery media options (Live CD or PXE Network Boot).
For more information, see:
* [Boot a server from a CD]
* [Use PXE network boot]
h4. Step 2: Initiate a Bare-Metal Restore from "Recovery Points"
1. Click on "Recovery Points" in the Main Menu to open the "Recovery Points" screen.
2. Select a Server from the drop-down menu located on the "Recovery Points" list toolbar.
3. Select a Disk Safe from the drop-down menu located on the "Recovery Points" list toolbar.
{info:title=Tip}Alternatively, you can click on "Servers" in the main menu, then select the "Disk Safes" tab in the bottom pane, and then click on the "Recovery Points" icon for the Disk Safe to access the Recovery Points list.
{info}
4. In the "Recovery Points" list, click on the "Bare-Metal Restore" icon in the "Actions" column for the Recovery Point from which you are going to restore.
!Performing Bare-Metal Restore with LVM^Recovery Points_Enterprise_Bare-Metal Restore icon_English.png!
{info:title=Tip}
To find a Recovery Point, you can use the Basic and Advanced List Filters. See [ServerBackup:Customize the Recovery Points list].
{info}
5. The "Bare-Metal Restore" window opens.
!Performing Bare-Metal Restore with LVM^BMR_Main window_English.png!
Look through the information on the Introduction screen and click "Next."
!next.png!
h4. Step 3: Choose Filesystems
{info:title=Note}
Hereinafter on this page there are some changes. Please refer to this link [Using Bare-Metal Restore Device Auto-Mapping|Using Bare-Metal Restore Device Auto-Mapping] explaining the new feature: Bare-Metal Restore Device Auto-Mapping.
{info}
On the next page, select the filesystem(s) you want to restore. All available filesystems are listed. In our example, we select the {{/}}, {{/boot}}, {{/home}}, {{/home/user1}}, and {{/home/user2}} filesystems.
!lvm05.png!
Click "Next" to proceed to the following step.
!next.png!
h4. Step 4: Select Host
On the next screen, select the "Restore to Alternate Host Name/IP" option. Enter the IP address and port of your Live CD or PXE Boot environment.
!lvm16.png!
Click "Next" to proceed to the following step.
!next.png!
h4. Step 5: Define Restore Storage Configuration
On the "Restore Storage Configuration" screen, choose the "Select Storage Configuration to Restore" option.
!lvm17.png!
Click "Next" to proceed to the following step.
!next.png!
h5. 5.1 Choose Partition Tables
Partition tables should be restored before restoring LVM Volume Groups. Go through all of the Partition Tables steps before moving on to the LVM Volume Groups:
* Choose Partition Tables
* Select Partition Tables
* Map Partition Tables
* Restore Partition Tables
!lvm18.png!
On the "Choose Partition Tables" screen, choose the "Select Partition Tables to Restore" to select partition tables from the Recovery Point to restore to the target host.
!lvm19.png!
Click "Next" to proceed to the following step.
!next.png!
Then choose the appropriate partition table layout(s) for the filesystems you want to restore. At least one partition table check-box must be selected.
!lvm20.png!
Click "Next" to proceed to the following step.
!next.png!
After choosing partition tables to restore, you need to map the partition tables to the disks on the target host. Map all the partition tables selected.
{note:title=Notice}The target disk must be large enough to hold the partition table, and each target disk can only be selected once.
{note}
!lvm21.png!
{info:title=Tip}
Click the plus-sign to see the details of a partition table.
!plus1.png!
The following information is available:
* Content Type
* Size
* Number Of Sectors
* Sector Size
* Serial Number
* Partitions
{info}
Click "Next" to proceed to the following step.
!next.png!
On the next screen, click on the "Restore Partition Tables" button.
!lvm23.png!
You should then receive the "Successfully Restored Partition Tables" message. Click "OK."
!part_rest.png!
Output from *fdisk* before partition table restore:
!picture3.png!
Output from *fdisk* after partition table restore (should match original):
!picture4.png!
h5. 5.2 Choose Software RAID Devices
On the "Choose Software RAID Device" screen, choose the "Select Software RAID Device to Restore" option.
!lvm091.png!
Click "Next" to proceed to the following step.
!next.png!
Then select Software RAID arrays to restore with the corresponding check-boxes.
!picture17.png!
{info:title=Tip}
Click the plus-sign to see the details of a Software RAID array.
!picture8.png!
The following information is available:
* Content Type
* Size
* RAID Level
* Chunk Size
* Layout
* Number of Devices
* Members
{info}
Click "Next" to proceed to the following step.
!next.png!
After choosing the Software RAID arrays to restore, map them.
{note:title=Notice}Mapping RAID arrays is hierarchical. Instead of mapping the actual RAID device (/dev/md0), you should map its active and spare members.
{note}
!picture18.png!
Click "Next" to proceed to the following step.
!next.png!
When all the members are mapped, click the "Restore Software RAID Devices" button to launch the restore.
!picture12.png!
When the restore completes successfully, the RAID arrays will be available for mapping the selected filesystems.
h4. Step 6: Map Filesystems
Map filesystems in the Recovery Point to software RAID devices as a restore destination.
Enter the new software RAID device as the destination (for example, /dev/md_new).
!lvm13.png!
You are provided a table that allows you to map the chosen partition tables to physical Disks on the Target Server. You can see as many lines in the table as the number of Partition Tables selected for restore. Each Partition Table must be mapped to a physical Disk on the Target Server before proceeding.
{note:title=Notice}Make sure that the partition for {color:blue}/boot{color} is big enough.
{note}
{info:title=Tip} Click the plus-sign to see the details of filesystems.
{info}
After selecting the Disks, click on "Next" to proceed to the next page.
!next.png!
h4. Step 7: Map Filesystems
Make sure the "Reboot after restore" box is unchecked.
!reboot.png!
Click "Next" to proceed to the following step.
!next.png!
h4. Step 8: Summary
On the "Summary" page, you will need to confirm the selected Bare-Metal Restore options. Each selected filesystem is listed, along with the name of the target device to which it is being mapped.
!summary.png!
Click "Restore" to start the Bare-Metal Restore task.
!18_restore.png!
The data Restore is initiated. Click "OK" in the notification pop-up.
!19_19.png!
{info:title=Tip}
The Task results can be sent via email as a Report. See [Reporting].
{info}
h4. Step 9: Bare-Metal Restore Start
The Restore process starts and can take a while. You can go to the "Task History" screen to observe the task progress. See [Access task history].
The Task History page displays the State, Alert, Type, Progress Percentage, and the Started Time Stamp of the Bare-Metal Restore process.
!Performing Bare-Metal Restore with LVM^BMR_Success_English.png!
h4. Step 9: Reboot
When the process is complete, you can reboot the Server you just restored by pressing <Ctrl><Alt><Del> or by executing the reboot command in the root shell.
{info:title=Note}
Make sure you eject the Disk from the CD-ROM drive so that the Server will boot from the hard Disk.
!centos.png!
If the Disk you used for your Bare-Metal Restore is larger than the Disk you backed up previously, the free space on the new Disk will remain free. You can create a new partition in this space.
{info}
Results of RAID array creation can be verified at the command line via the "ls" command.
Before restoring software RAID devices:
!picture14.png!
After restoring software RAID devices:
!picture15.png!
{excerpt:hidden=true}Instructions on how to run the bare-metal restore with RAID (MD). {excerpt}
{toc:location=top|maxLevel=3|minLevel=3|type=flat|separator=pipe|style=border:1}
----
h3. Preparations
h5. Configuring Server
For testing purposes, create a Server with a complex software RAID layout with seven (7) different disks:
!scheme2.png!
The following screen-shot shows how the example layout looks in *fdisk*.
!picture16.png!
h5. Creating a Disk Safe
Create a Disk Safe with the "Protect Storage Configuration" option enabled. See [Create Disk Safes].
!Performing Bare-Metal Restore with LVM^Create New Disk Safe window_Create button_English.png!
h5. Creating and Running a Policy
1. Create a basic Policy for the new Disk Safe. See [Create policies].
!Performing Bare-Metal Restore with LVM^Create New Policy window_Filled in_Create button_English.png!
2. Run the created Policy. See [Run policies].
----
h3. Bare-Metal Restore Process
Follow the instructions below to start the Software RAID (MD) Bare Metal Restore.
{info:title=Note}The process is the same for all Boot methods:
* Live CD
* PXE Network Boot
{info}
----
{toc:location=top|maxLevel=4|minLevel=4|type=flat|separator=pipe|style=border:1}
----
h4. Step 1: Boot from Live CD or PXE Network Boot
If you are restoring your system partition (e.g., {{/}}, {{/boot}}, {{/bin}}, {{/lib}}, etc.), boot the physical or virtual machine from one of the available Server Backup disaster recovery media options (Live CD or PXE Network Boot).
For more information, see:
* [Boot a server from a CD]
* [Use PXE network boot]
h4. Step 2: Initiate a Bare-Metal Restore from "Recovery Points"
1. Click on "Recovery Points" in the Main Menu to open the "Recovery Points" screen.
2. Select a Server from the drop-down menu located on the "Recovery Points" list toolbar.
3. Select a Disk Safe from the drop-down menu located on the "Recovery Points" list toolbar.
{info:title=Tip}Alternatively, you can click on "Servers" in the main menu, then select the "Disk Safes" tab in the bottom pane, and then click on the "Recovery Points" icon for the Disk Safe to access the Recovery Points list.
{info}
4. In the "Recovery Points" list, click on the "Bare-Metal Restore" icon in the "Actions" column for the Recovery Point from which you are going to restore.
!Performing Bare-Metal Restore with LVM^Recovery Points_Enterprise_Bare-Metal Restore icon_English.png!
{info:title=Tip}
To find a Recovery Point, you can use the Basic and Advanced List Filters. See [ServerBackup:Customize the Recovery Points list].
{info}
5. The "Bare-Metal Restore" window opens.
!Performing Bare-Metal Restore with LVM^BMR_Main window_English.png!
Look through the information on the Introduction screen and click "Next."
!next.png!
h4. Step 3: Choose Filesystems
{info:title=Note}
Hereinafter on this page there are some changes. Please refer to this link [Using Bare-Metal Restore Device Auto-Mapping|Using Bare-Metal Restore Device Auto-Mapping] explaining the new feature: Bare-Metal Restore Device Auto-Mapping.
{info}
On the next page, select the filesystem(s) you want to restore. All available filesystems are listed. In our example, we select the {{/}}, {{/boot}}, {{/home}}, {{/home/user1}}, and {{/home/user2}} filesystems.
!lvm05.png!
Click "Next" to proceed to the following step.
!next.png!
h4. Step 4: Select Host
On the next screen, select the "Restore to Alternate Host Name/IP" option. Enter the IP address and port of your Live CD or PXE Boot environment.
!lvm16.png!
Click "Next" to proceed to the following step.
!next.png!
h4. Step 5: Define Restore Storage Configuration
On the "Restore Storage Configuration" screen, choose the "Select Storage Configuration to Restore" option.
!lvm17.png!
Click "Next" to proceed to the following step.
!next.png!
h5. 5.1 Choose Partition Tables
Partition tables should be restored before restoring LVM Volume Groups. Go through all of the Partition Tables steps before moving on to the LVM Volume Groups:
* Choose Partition Tables
* Select Partition Tables
* Map Partition Tables
* Restore Partition Tables
!lvm18.png!
On the "Choose Partition Tables" screen, choose the "Select Partition Tables to Restore" to select partition tables from the Recovery Point to restore to the target host.
!lvm19.png!
Click "Next" to proceed to the following step.
!next.png!
Then choose the appropriate partition table layout(s) for the filesystems you want to restore. At least one partition table check-box must be selected.
!lvm20.png!
Click "Next" to proceed to the following step.
!next.png!
After choosing partition tables to restore, you need to map the partition tables to the disks on the target host. Map all the partition tables selected.
{note:title=Notice}The target disk must be large enough to hold the partition table, and each target disk can only be selected once.
{note}
!lvm21.png!
{info:title=Tip}
Click the plus-sign to see the details of a partition table.
!plus1.png!
The following information is available:
* Content Type
* Size
* Number Of Sectors
* Sector Size
* Serial Number
* Partitions
{info}
Click "Next" to proceed to the following step.
!next.png!
On the next screen, click on the "Restore Partition Tables" button.
!lvm23.png!
You should then receive the "Successfully Restored Partition Tables" message. Click "OK."
!part_rest.png!
Output from *fdisk* before partition table restore:
!picture3.png!
Output from *fdisk* after partition table restore (should match original):
!picture4.png!
h5. 5.2 Choose Software RAID Devices
On the "Choose Software RAID Device" screen, choose the "Select Software RAID Device to Restore" option.
!lvm091.png!
Click "Next" to proceed to the following step.
!next.png!
Then select Software RAID arrays to restore with the corresponding check-boxes.
!picture17.png!
{info:title=Tip}
Click the plus-sign to see the details of a Software RAID array.
!picture8.png!
The following information is available:
* Content Type
* Size
* RAID Level
* Chunk Size
* Layout
* Number of Devices
* Members
{info}
Click "Next" to proceed to the following step.
!next.png!
After choosing the Software RAID arrays to restore, map them.
{note:title=Notice}Mapping RAID arrays is hierarchical. Instead of mapping the actual RAID device (/dev/md0), you should map its active and spare members.
{note}
!picture18.png!
Click "Next" to proceed to the following step.
!next.png!
When all the members are mapped, click the "Restore Software RAID Devices" button to launch the restore.
!picture12.png!
When the restore completes successfully, the RAID arrays will be available for mapping the selected filesystems.
h4. Step 6: Map Filesystems
Map filesystems in the Recovery Point to software RAID devices as a restore destination.
Enter the new software RAID device as the destination (for example, /dev/md_new).
!lvm13.png!
You are provided a table that allows you to map the chosen partition tables to physical Disks on the Target Server. You can see as many lines in the table as the number of Partition Tables selected for restore. Each Partition Table must be mapped to a physical Disk on the Target Server before proceeding.
{note:title=Notice}Make sure that the partition for {color:blue}/boot{color} is big enough.
{note}
{info:title=Tip} Click the plus-sign to see the details of filesystems.
{info}
After selecting the Disks, click on "Next" to proceed to the next page.
!next.png!
h4. Step 7: Map Filesystems
Make sure the "Reboot after restore" box is unchecked.
!reboot.png!
Click "Next" to proceed to the following step.
!next.png!
h4. Step 8: Summary
On the "Summary" page, you will need to confirm the selected Bare-Metal Restore options. Each selected filesystem is listed, along with the name of the target device to which it is being mapped.
!summary.png!
Click "Restore" to start the Bare-Metal Restore task.
!18_restore.png!
The data Restore is initiated. Click "OK" in the notification pop-up.
!19_19.png!
{info:title=Tip}
The Task results can be sent via email as a Report. See [Reporting].
{info}
h4. Step 9: Bare-Metal Restore Start
The Restore process starts and can take a while. You can go to the "Task History" screen to observe the task progress. See [Access task history].
The Task History page displays the State, Alert, Type, Progress Percentage, and the Started Time Stamp of the Bare-Metal Restore process.
!Performing Bare-Metal Restore with LVM^BMR_Success_English.png!
h4. Step 9: Reboot
When the process is complete, you can reboot the Server you just restored by pressing <Ctrl><Alt><Del> or by executing the reboot command in the root shell.
{info:title=Note}
Make sure you eject the Disk from the CD-ROM drive so that the Server will boot from the hard Disk.
!centos.png!
If the Disk you used for your Bare-Metal Restore is larger than the Disk you backed up previously, the free space on the new Disk will remain free. You can create a new partition in this space.
{info}
Results of RAID array creation can be verified at the command line via the "ls" command.
Before restoring software RAID devices:
!picture14.png!
After restoring software RAID devices:
!picture15.png!
{excerpt:hidden=true}Instructions on how to run the bare-metal restore with RAID (MD). {excerpt}