Veritas Volume Manager 5.0.1 Administrator's Guide, HP-UX 11i v3, First Edition, November 2009

3
If the volume is listed in the /etc/fstab file, edit this file and remove its
entry. For more information about the format of this file and how you can
modify it, see your operating system documentation.
4
Stop all activity by VxVM on the volume with the following command:
# vxvol [-g diskgroup] stop volume
5
Remove the volume using the vxassist command as follows:
# vxassist [-g diskgroup] remove volume volume
You can also use the vxedit command to remove the volume as follows:
# vxedit [-g diskgroup] [-r] [-f] rm volume
The -r option to vxedit indicates recursive removal. This command removes
all the plexes that are associated with the volume and all subdisks that are
associated with the plexes. The -f option to vxedit forces removal. If the
volume is still enabled, you must specify this option.
Moving volumes from a VM disk
Before you disable or remove a disk, you can move the data from that disk to other
disks on the system that have sufficient space.
To move volumes from a disk
1
From the vxdiskadm main menu, select Move volumes from a disk .
2
At the following prompt, enter the disk name of the disk whose volumes you
want to move, as follows:
Enter disk name [<disk>,list,q,?] mydg01
You can now optionally specify a list of disks to which the volume(s) should
be moved. At the prompt, do one of the following:
Press Enter to move the volumes onto available space in the disk group.
Specify the disks in the disk group that should be used, as follows:
:
Enter disks [<disk ...>,list]
VxVM NOTICE V-5-2-283 Requested operation is to move all
volumes from disk mydg01 in group mydg.
NOTE: This operation can take a long time to complete.
337Administering volumes
Moving volumes from a VM disk