VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)

Chapter 9, Administering Hot-Relocation
Removing a Disk from Use as a Hot-Relocation Spare
235
Any VM disk inthis diskgroupcan nowuse thisdisk asa spare in the eventof afailure.If
a disk fails, hot-relocationautomatically occurs (ifpossible). You arenotified of the failure
and relocation through electronic mail. After successful relocation, you may want to
replace the failed disk.
Alternatively, you can use vxdiskadm to designate a disk as a hot-relocation spare:
1. Select menuitem 11 (Mark a disk as a spare for a disk group) from the
vxdiskadm main menu.
2. At the following prompt, enter a disk name (such as disk01):
Menu: VolumeManager/Disk/MarkSpareDisk
Use this operation to mark a disk as a spare for a disk
group.
This operation takes, as input, a disk name. This is the same
name that you gave to the disk when you added the disk to the
disk group.
Enter disk name [<disk>,list,q,?] disk01
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 set spare=off diskname
For example, to make disk01 available for normal use, use the following command:
# vxedit set spare=off disk01