Selecting logical volumes and MD devices in command line

Let’s assume that the system has four physical disks: Disk 1, Disk 2, Disk 3 and Disk 4.

  • A RAID-1 volume is configured on two basic volumes: sdb1, sdd1
  • A logical volume is configured on two basic volumes: sdb2, sdd2
  • Disk 1 includes Acronis Secure Zone, which normally is not backed up.

A list of a volumes can be obtained with the following command:

  trueimagecmd --list  
  
  Num  Partition            Flags       Start      Size       Type
---- -------------------- ----------- ---------- ---------- -----------
Disk 1 (sda):
1-1 sda1 Pri,Act 63 208813 Ext2
1-2 sda2 Pri 417690 12289725 ReiserFS
1-3 sda3 Pri 24997140 1052257 Linux Swap
Unallocated 27101655 2698920 Unallocated
1-4 Acronis Secure Zone Pri 32499495 522112 FAT32
Unallocated 33543720 5356 Unallocated
Disk 2 (sdb):
2-1 sdb1 Pri 62 124969 Ext2
2-2 sdb2 Pri 250001 125000 None
Unallocated 500001 8138607 Unallocated
Disk 3 (sdc):
Table 0 Table
Unallocated 1 1048575 Unallocated
Disk 4 (sdd):
4-1 sdd1 Pri 62 124969 Ext2
4-2 sdd2 Pri 250001 125000 None
Unallocated 500001 798575 Unallocated
Dynamic & GPT Volumes:
DYN1 VolGroup00-LogVol00 245760 Ext3
Disk: 3 250385 245760
Disk: 5 250385 245760
DYN2 md0 124864 Ext2
Disk: 5 62 249728
Disk: 3 62 249728

The logical volume, DYN1, occupies basic volumes 2-2 and 4-2. The RAID-1 volume, DYN2, occupies basic volumes 2-1 and 4-1.

To back up the logical DYN1 volume, run the following command (here, the name of the backup is assumed to be /home/backup.tib):

  trueimagecmd --partition:dyn1 --filename:/home/backup.tib --create  

To back up the RAID-1 volume DYN2, run the following command:

  trueimagecmd --partition:dyn2 --filename:/home/backup.tib --create  

To back up all three hard disks with volumes, select the volumes 1-1, 1-2, 1-3, DYN1 and DYN2:

  trueimagecmd --partition:1-1,1-2,1-3,dyn1,dyn2 --filename:/home/backup.tib --create  

If you select Disk 3, volume 2-1 or volume 2-2, the program will create a raw (sector-by-sector) backup.

Selecting logical volumes and MD devices in command line