HP-UX HB v13.00 Ch-13 - LVM

HP-UX Handbook Rev 13.00 Page 93 (of 110)
Chapter 13 LVM
October 29, 2013
# vgcfgbackup /dev/vgxx
vgremove
1.PROBLEM VGREMOVE: COULDN’T REMOVE VOLUME GROUP /dev/vgXX
When vgremove is used on a volume group that conatins an alternate link
without first doing a vgreduce, the volume group is left in an unusable state.
The vgremove gives an error:
vgremove: Couldn't remove the entry "/dev/vg*" from "/etc/lvmtab".
vgremove: Couldn't remove volume group "/dev/vg*"
RESOLUTION
When vgremove is used on a volume group that conatins an alternate link without
first doing a vgreduce, the volume group is left in an unusable state. The
vgremove gives an error:
vgremove: Couldn't remove the entry "/dev/vg*" from "/etc/lvmtab".
vgremove: Couldn't remove volume group "/dev/vg*"
It appears the vgremove didn't remove the volume group.
vgdisplay on the volume group returns the following:
/usr/sbin/vgdisplay [-v] [vg_name ...]
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg*"
vgchange on the volume group returns the following:
/usr/sbin/vgchange -a y /dev/vg*
vgchange: Warning: Couldn't attach to the volume group physical volume
"/dev/dsk/c*":Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c*":
The specified path does not correspond to physical volume attached to
this volume group.
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/vg*":
Quorum not present, or some physical volume(s) are missing.