Steps to backup/restore Linux Servers that have LVM volumes using Veritas System Recovery Linux Edition (VSR-L).

Article: 100010747
Last Published: 2013-12-19
Ratings: 0 0
Product(s): System Recovery

Problem

Backing up and restoring LVM disk using System Recovery for Linux.

Solution

Backup
======
1. Backup Boot Partition
Use the command listed below to backup Boot Partition
symsr -b /dev/hda1 -d /device

2. Backup Root Partition
Root Partition (Which is on LVM)
---------------------------------
LVM Details given as an example:

Physical Volume - /dev/hda2
Logical Volume Group - /dev/VolGroup00
Logical volume name - /dev/VolGroup00/LogVol00
LVM actual location
/dev/mapper/VolGroup00-Logvol00

3. To backup the LVM use the command listed below
symsr -b /dev/mapper/VolGroup00-Logvol00 -d /device
 

Restore
=======
1. Boot the machine using Veritas Recovery Disk for Linux.

2. Configure /dev/hda in two partitions /dev/hda1 (boot) and /dev/hda2 (root with LVM)

3. Restore the boot partition using the command below
symsr -r /device/v2i -active -d/dev/hda1

4. Then create LVM on /dev/hda2 using the lvm tags as shown below.
pvcreate /dev/hda2
vgcreate VolGroup00 /dev/hda2
lvcreate -n LogVol00 /dev/VolGroup00 /dev/hda2 -L (SiZE)

 Note: In case of creation of 50GB,
 lvcreate -n LogVol00 /dev/VolGroup00 /dev/hda2 -L 50G  

5. To check if volumes are created use the commands
lvdisplay
pvdisplay

6. Now run restore using the the following command
symsr -r /device/v2i -d /dev/mapper/VolGroup00-Logvol00

7. Reboot the system.

NOTE: For Red Hat 5.x based recovery disks, you must start any LVM based command with 'lvm'. For example:

lvm pvcreate /dev/sda

lvm pvdisplay

 

Applies To

Veritas System Recovery

Linux

Was this content helpful?