Installation guide

Chapter 5. LVM Configuration Examples
68
May 10 14:55:00 doc-07 lvm[19402]: vg001-mirrorlv is now in-sync
8. You can use the lvs with the -o +devices options to display the configuration of the mirror,
including which devices make up the mirror legs. You can see that the logical volume in this
example is composed of two linear images and one log.
[root@doc-07 ~]# lvs -a -o +devices
LV VG Attr LSize Origin Snap% Move Log Copy%
Convert Devices
mirrorlv vg001 mwi-a- 3.91G mirrorlv_mlog 100.00
mirrorlv_mimage_0(0),mirrorlv_mimage_1(0)
[mirrorlv_mimage_0] vg001 iwi-ao 3.91G
/dev/xvdb1(1)
[mirrorlv_mimage_1] vg001 iwi-ao 3.91G
/dev/xvdb2(1)
[mirrorlv_mlog] vg001 lwi-ao 4.00M
/dev/xvdc1(0)
You can use the seg_pe_ranges option of the lvs to display the data layout. You can use this
option to verify that your layout is properly redundant. The output of this command displays PE
ranges in the same format that the lvcreate and lvresize commands take as input.
[root@doc-07 ~]# lvs -a -o +seg_pe_ranges --segments
PE Ranges
mirrorlv_mimage_0:0-999 mirrorlv_mimage_1:0-999
/dev/xvdb1:1-1000
/dev/xvdb2:1-1000
/dev/xvdc1:0-0
Note
For information on recovering from the failure of one of the legs of an LVM mirrored volume, see
Section 6.3, “Recovering from LVM Mirror Failure”.