Red Hat ENTERPRISE LINUX 4 - LVM ADMINISTRATOR Manual page 75

Cluster logical volume manager
Table of Contents

Advertisement

[root@doc-07 log]# lvs mirrorvg/mirrorlv
LV
VG
Convert
mirrorlv mirrorvg mwi-a- 3.91G
[root@doc-07 log]# lvs mirrorvg/mirrorlv
LV
VG
Convert
mirrorlv mirrorvg mwi-a- 3.91G
[root@doc-07 ~]#
LV
VG
Convert
mirrorlv mirrorvg mwi-a- 3.91G
The completion of the mirror is noted in the system log:
May 10 14:52:52 doc-07 [19402]: Monitoring mirror device mirrorvg-
mirrorlv for events
May 10 14:55:00 doc-07 lvm[19402]: mirrorvg-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] mirrorvg
[mirrorlv_mimage_1] mirrorvg
[mirrorlv_mlog]
For release RHEL 4.8 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%
Attr
LSize Origin Snap%
lvs mirrorvg/mirrorlv
Attr
LSize Origin Snap%
VG
Convert Devices
mirrorvg
mirrorlv_mimage_0(0),mirrorlv_mimage_1(0)
/dev/xvdb1(1)
/dev/xvdb2(1)
mirrorvg
/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%
mirrorlv_mlog
47.00
Copy%
mirrorlv_mlog
91.00
Copy%
mirrorlv_mlog 100.00
Move Log
63

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise linux 4

Table of Contents