HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 61 (of 110)
Chapter 13 LVM
October 29, 2013
9. (Optional) Recreate the mirrors
If you reduced the mirrors in step 2 then recreate them.
# lvextend -m 1 /dev/vg##/lvol# /dev/dsk/c#t#d# & for 1 way mirroring, or
# lvextend -m 2 /dev/vg##/lvol# /dev/dsk/c#t#d# & for 2 way mirroring
A shell loop like this could be used to extend a bunch of lvols automatically:
# for i in lvol1 lvol2 lvol3 ... specify any LV you need to
mirror
> do
> lvextend –m 1 /dev/vg##/$i /dev/dsk/c#t#d#
> done
There are 2 new white papers available regarding LVM disk replacement:
LVM Online Disk Replacement (LVM OLR)
http://bizsupport.austin.hp.com/bc/docs/support/SupportManual/c01919406/c0191
9406.pdf
When Good Disks Go Bad: Dealing with Disk Failures Under LVM
http://bizsupport.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.
pdf
Removing a Ghost Disk using the PV Key
What is a Ghost Disk
You may come into a situation where you have to remove a PV from a VG that has
failed or not even physically connected but still recorded in the lvmtab. Such a PV is
sometimes called a “ghost disk” or “phantom disk”. You can get a ghost disk if the disk
has failed before VG activation, maybe because the system has been rebooted after
the failure.