
Recovering from LVM Mirror Failure
63
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 VG Attr LSize Origin Snap% Move Log
Copy% Devices
groupfs vg mwi-a- 752.00M groupfs_mlog
21.28 groupfs_mimage_0(0),groupfs_mimage_1(0)
[groupfs_mimage_0] vg iwi-ao 752.00M
/dev/sda1(0)
[groupfs_mimage_1] vg iwi-ao 752.00M
/dev/sdb1(0)
[groupfs_mlog] vg lwi-ao 4.00M
/dev/sdc1(0)
[root@link-08 ~]#
lvs -a -o +devices
LV VG Attr LSize Origin Snap% Move Log
Copy% Devices
Содержание CLUSTER SUITE 4.7 - CLUSTER LVM ADMINISTRATORS
Страница 1: ...Red Hat Cluster Suite 4 7 Cluster Logical Volume Manager LVM Administrator s Guide ...
Страница 6: ...vi ...
Страница 12: ...xii ...
Страница 24: ...12 ...
Страница 62: ...50 ...
Страница 72: ...60 ...
Страница 82: ...70 ...
Страница 84: ...72 ...
Страница 86: ...74 ...
Страница 96: ...84 ...
Страница 103: ...91 Appendix E Revision History Revision History Revision 1 0 ...
Страница 104: ...92 ...
Страница 108: ...96 ...