HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 80 (of 110)
Chapter 13 LVM
October 29, 2013
For reference, make a note of the volume group configuration. Save the
outputs from LVM commands: vgdisplay, lvdisplay, pvdisplay in verbose
mode.
Ensure all physical volumes configured in the volume group are online
using ioscan –P health.
Run /usr/contrib.bin.vgdsf –c <vg_name> to migrate each volume group.
Ensure that no failures are reported.
Verify the resaulting volume group configuration using LVM display
commands. Use ioscan –m dsf to validate DSF mappings.
Below the vgdsf migration script:
#!/usr/bin/ksh
DEV=$1
LAST=""
if [[ -s /etc/lvmpvg ]]; then
if /usr/bin/grep -q "$DEV" /etc/lvmpvg; then
TOKS=`/usr/bin/grep -e PVG -e "$DEV" /etc/lvmpvg|sed "s/PVG *//"| \
/usr/bin/awk '{ print $1 }'`
for TOK in $TOKS
do
if [[ $TOK = $DEV ]]; then
if [[ -n $LAST ]]; then
PVG="-g $LAST"
fi
return
fi
LAST=$TOK
done
fi
fi
}
Common Issues
There are different common issues, that appear during execution of LVM commands.
Some of them are fixed with patches, Lab requests or in later versions of HP-UX.
Nevertheless a description of some of these is not useless in problem situations: