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

To use vxdiskadm to designate a disk as a hot-relocation spare
1
Select Mark a disk as a spare for a disk group from the vxdiskadm
main menu.
2
At the following prompt, enter a disk media name (such as mydg01):
Enter disk name [<disk>,list,q,?] mydg01
The following notice is displayed when the disk has been marked as spare:
VxVM NOTICE V-5-2-219 Marking of mydg01 in mydg as a spare disk
is complete.
3
At the following prompt, indicate whether you want to add more disks as
spares (y) or return to the vxdiskadm main menu (n):
Mark another disk as a spare? [y,n,q,?] (default: n)
Any VM disk in this disk group can now use this disk as a spare in the event
of a failure. If a disk fails, hot-relocation should automatically occur (if
possible). You should be notified of the failure and relocation through
electronic mail. After successful relocation, you may want to replace the failed
disk.
Removing a disk from use as a hot-relocation spare
While a disk is designated as a spare, the space on that disk is not used for the
creation of VxVM objects within its disk group. If necessary, you can free a spare
disk for general use by removing it from the pool of hot-relocation disks.
To remove a spare from the hot-relocation pool, use the following command:
# vxedit [-g diskgroup] set spare=off diskname
where diskname is the disk media name.
For example, to make mydg01 available for normal use in the disk group, mydg, use
the following command:
# vxedit -g mydg set spare=off mydg01
Administering hot-relocation
Removing a disk from use as a hot-relocation spare
440