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

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

Advertisement

The following command creates the physical volumes which will be used for the mirror.
[root@link-08 ~]# pvcreate /dev/sd[abcdefgh][12]
Physical volume "/dev/sda1" successfully created
Physical volume "/dev/sda2" successfully created
Physical volume "/dev/sdb1" successfully created
Physical volume "/dev/sdb2" successfully created
Physical volume "/dev/sdc1" successfully created
Physical volume "/dev/sdc2" successfully created
Physical volume "/dev/sdd1" successfully created
Physical volume "/dev/sdd2" successfully created
Physical volume "/dev/sde1" successfully created
Physical volume "/dev/sde2" successfully created
Physical volume "/dev/sdf1" successfully created
Physical volume "/dev/sdf2" successfully created
Physical volume "/dev/sdg1" successfully created
Physical volume "/dev/sdg2" successfully created
Physical volume "/dev/sdh1" successfully created
Physical volume "/dev/sdh2" successfully created
The following commands creates the volume group vg and the mirrored volume groupfs.
[root@link-08 ~]# vgcreate vg /dev/sd[abcdefgh][12]
Volume group "vg" successfully created
[root@link-08 ~]# lvcreate -L 750M -n groupfs -m 1 vg /dev/sda1 /dev/sdb1 /
dev/sdc1
Rounding up size to full physical extent 752.00 MB
Logical volume "groupfs" created
You can use the lvs command to verify the layout of the mirrored volume and the underlying devices
for the mirror leg and the mirror log. Note that in the first example the mirror is not yet completely
synced; you should wait until the Copy% field displays 100.00 before continuing.
[root@link-08 ~]# lvs -a -o +devices
LV
Copy% Devices
groupfs
21.28 groupfs_mimage_0(0),groupfs_mimage_1(0)
[groupfs_mimage_0] vg
/dev/sda1(0)
[groupfs_mimage_1] vg
/dev/sdb1(0)
[groupfs_mlog]
/dev/sdc1(0)
[root@link-08 ~]# lvs -a -o +devices
LV
Copy%
Devices
VG
Attr
LSize
vg
mwi-a- 752.00M
iwi-ao 752.00M
iwi-ao 752.00M
vg
lwi-ao
4.00M
VG
Attr
LSize
Recovering from LVM Mirror Failure
Origin Snap%
Move Log
Origin Snap%
Move Log
groupfs_mlog
69

Advertisement

Table of Contents
loading

Table of Contents