Recovering From Lvm Mirror Failure - Red Hat ENTERPRISE LINUX 5 - LOGICAL VOLUME MANAGER ADMINISTRATION Manual

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

Advertisement

Chapter 6. LVM Troubleshooting
[root@link-07 tmp]# lvs -a -o +devices
Volume group "vg" not found
Using the -P argument shows the logical volumes that have failed.
[root@link-07 tmp]# lvs -P -a -o +devices
Partial mode. Incomplete volume groups will be activated read-only.
LV
VG
Attr
linear vg
-wi-a- 20.00G
stripe vg
-wi-a- 20.00G
device(5120),/dev/sda1(0)
The following examples show the output of the pvs and lvs commands with the -P argument
specified when a leg of a mirrored logical volume has failed.
root@link-08 ~]#
Partial mode. Incomplete volume groups will be activated read-only.
VG
#PV #LV #SN Attr
corey
4
4
my_mirror_mimage_0(0),my_mirror_mimage_1(0)
corey
4
4
corey
4
4
corey
4
4
[root@link-08 ~]# lvs -a -o +devices -P
Partial mode. Incomplete volume groups will be activated read-only.
LV
Copy%
Devices
my_mirror
my_mirror_mlog
[my_mirror_mimage_0] corey iwi-ao 120.00G
unknown device(0)
[my_mirror_mimage_1] corey iwi-ao 120.00G
/dev/sdb1(0)
[my_mirror_mlog]
/dev/sdd1(0)

6.3. Recovering from LVM Mirror Failure

This section provides an example of recovering from a situation where one leg of an LVM mirrored
volume fails because the underlying device for a physical volume goes down. When a mirror leg fails,
LVM converts the mirrored volume into a linear volume, which continues to operate as before but
without the mirrored redundancy. At that point, you can add a new disk device to the system to use as
a replacement physical device and rebuild the mirror.
68
LSize
Origin Snap%
vgs -a -o +devices -P
VSize VFree Devices
0 rz-pnc 1.58T 1.34T
0 rz-pnc 1.58T 1.34T /dev/sdd1(0)
0 rz-pnc 1.58T 1.34T unknown device(0)
0 rz-pnc 1.58T 1.34T /dev/sdb1(0)
VG
Attr
corey mwi-a- 120.00G
1.95 my_mirror_mimage_0(0),my_mirror_mimage_1(0)
corey lwi-ao
Move Log Copy%
LSize
Origin Snap%
4.00M
Devices
unknown device(0)
unknown
Move Log

Advertisement

Table of Contents
loading

Table of Contents