HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 57 (of 110)
Chapter 13 LVM
October 29, 2013
Shutdown
Power off
Replace Disk
Hot
swappable
?
Root Disk
?
Boot
normally
BCH> boot pri
ISL> hpux -lq
Mirrored
?
Synchronize
Mirrors
# vgsync vgXX
PV
attached
?
Mirrored
?
Try to close all
affected LVs
- halt applications
# fuser -kc /mnt
# umount /mnt
may hang, if disk is
unresponsive!
Gather all required information
e.g.: - What PV is to be replaced?
- Is the PV hot-swappable?
- What LVs are affected?
- What’s their layout? Are they mirrored?
- Is the PV a root disk/part of root VG?
Close all
affected LVs
e.g. kill remaining
processes, umount
# fuser -kc /mnt
# umount /mnt
no
no
yes
no
yes
no
yes
yes
no
Hot-Swap
Procedure
with
lvreduce of
mirrors
Hot-Swap
Procedure
without
lvreduce of
mirrors
A PV is considered to be
attached, if pvdisplay is
able to report a valid status
(unavailable/available) for
it. Otherwise it’s
unattached.
Restore LVM Header
Re-attach PV
# vgcfgrestore -n vgXX
/dev/rdsk/cXtXdX
# vgchange -a y vgXX
Replace Disk
then check if disk is
accessible:
# ioscan -f
Restore Header
Attach PV
# vgcfgrestore -n vgXX
/dev/rdsk/cXtXdX
# vgchange -a y vgXX
LIF/ BDRA
config. procedure
Data Recovery
e.g.:
# newfs -F vxfs /dev/vgXX/rlvolX
# mount /dev/vgXX/lvolX /mnt
restore data, e.g using frecover from tape:
# frecover -v -f /dev/rmt/1m -i /mnt
Mirrored
?
Boot
from Mirror
BCH> boot alt
ISL> hpux -lq
Ignite/UX
Recovery
Recover from a
Recovery Tape or
Ignite Server
yes
yes
no
no
yes
Root Disk
?
OLR
feature
available
?
yes
no