Red Hat ENTERPRISE LINUX 5 - LOGICAL VOLUME MANAGER ADMINISTRATION Manual page 77

Hide thumbs Also See for ENTERPRISE LINUX 5 - LOGICAL VOLUME MANAGER ADMINISTRATION:
Table of Contents

Advertisement

[root@doc-07 log]# lvs vg001/mirrorlv
LV
VG
Convert
mirrorlv vg001
[root@doc-07 log]# lvs vg001/mirrorlv
LV
VG
Convert
mirrorlv vg001
[root@doc-07 ~]#
LV
VG
Convert
mirrorlv vg001
The completion of the mirror is noted in the system log:
May 10 14:52:52 doc-07 [19402]: Monitoring mirror device vg001-mirrorlv
for events
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
Copy%
mirrorlv
mirrorlv_mlog 100.00
[mirrorlv_mimage_0] vg001
[mirrorlv_mimage_1] vg001
[mirrorlv_mlog]
For release RHEL 5.2 and later, 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 dispays 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
Attr
LSize Origin Snap%
mwi-a- 3.91G
Attr
LSize Origin Snap%
mwi-a- 3.91G
lvs vg001/mirrorlv
Attr
LSize Origin Snap%
mwi-a- 3.91G
VG
Convert Devices
vg001
mirrorlv_mimage_0(0),mirrorlv_mimage_1(0)
/dev/xvdb1(1)
/dev/xvdb2(1)
vg001
/dev/xvdc1(0)
Creating a Mirrored LVM Logical Volume in a Cluster
Move Log
Move Log
Move Log
Attr
LSize
Origin Snap%
mwi-a-
3.91G
iwi-ao
3.91G
iwi-ao
3.91G
lwi-ao
4.00M
Copy%
vg001_mlog
47.00
Copy%
vg001_mlog
91.00
Copy%
vg001_mlog
100.00
Move Log
65

Advertisement

Table of Contents
loading

Table of Contents