VERITAS Volume Manager 3.2 for HP-UX Release Notes
VERITAS Volume Manager 3.2 for HP-UX Release Notes
Preparing to Install the VERITAS Volume Manager for HP-UX on a System with LVM Volume Groups
Chapter 1 43
CAUTION You will lose access to any data on these disks by doing these steps.
a. Use lvremove to remove any LVM volumes using the disk. For example:
# umount /lvmvol
# lvremove /dev/vg01/lvmvol
b. Use vgreduce to remove the disk from any LVM volume groups to which it
belongs. For example:
# vgreduce /dev/vg01 /dev/dsk/c0t6d0
c. If the disk to be removed is the last disk in the volume group, use vgremove to
remove the volume group. For example
# vgremove /dev/vg01
d. Use pvremove to erase the LVM disk headers. For example:
# pvremove /dev/rdsk/c0t6d0
e. pvremove will not remove disk headers which indicate a volume group
membership for the disk. If the disk fails pvremove for this reason, you should
first make certain that the group membership information is stale. Do this by
using pvdisplay:
# pvdisplay /dev/rdsk/c0t6d0
f. If pvdisplay finds no valid group information associated with the disk, you can
overwrite the LVM headers using pvcreate:
# pvcreate /dev/rdsk/c0t6d0
CAUTION If /dev/rdsk/c0t6d0 is an alternate path to a disk that does not appear in the
lvmtab file for this system, or is a disk that is in use on another
system, but not imported onto this system, then do not pvcreate
-f the disk. Doing so will destroy the LVM headers. You can use
pvcreate without the -f option safely, as it will only succeed if
the disk is not listed in lvmtab and the LVM headers indicate it is
not a member of any volume group. (That is, it has been
pvcreated but not been an argument for vgcreate or vgextend.)
g. After running pvcreate, then use pvremove to erase all vestiges of LVM disk