HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 86 (of 110)
Chapter 13 LVM
October 29, 2013
will have to removed. In order for vgreduce -f to succeed all
logical volumes with extents on the physical volume to be reduced must
first be removed. Once the volume group is in the correct state, Cur PV =
Act PV, the logical volumes can be recreated and any lost data restored.
Use: lvremove /dev/vg_name/lvol_name
4. Forcibly reduce out the physical volume.
Use: vgreduce -f /dev/vg_name
NOTE: The above command does not require a physical volume argument. It
must be run on a active volume group.
5. If the vgreduce -f command does not work or does not give any
error and vgdisplay(1m) still shows that Cur PV and Act PV disagree
then use the following steps to vgexport and vgimport the volume group
prior to trying Step 4 again.
This procedure can be used when vgreduce fails to reduce a physical
volume that can no longer be queried by the system. If executing the
following procedure on the root volume group, usually vg00, you must first
boot into LVM maintenance mode (** For steps see below).
a. Get the /dev/vg_name/group minor number and physical volumes belonging
to the volume group.
Use: ll /dev/vg00/group to get 0x###### minor number.
vgdisplay -v /dev/vg_name to get physical volumes.
b. vgchange -a n /dev/vg_name
Skip this step if booting maintanence mode for root volume group.
c. vgexport -m /mapfile /dev/vg_name
d. mkdir /dev/vg_name
e. mknod /dev/vg_name/group c 64 0x0#0000
Re-use minor number obtained from step a.
f. vgimport -m /mapfile /dev/vg_name pv_name [pv_name ...]
NOTE: Specify all the physical volumes obtained from step a. Do not
include the physical volume that you are trying to remove or