VERITAS Volume Manager 3.5 Administrator's Guide (September 2004)
Administering Hot-Relocation
Marking a Disk as a Hot-Relocation Spare
Chapter 9322
Marking a Disk as a Hot-Relocation Spare
Hot-relocation allows the system to react automatically to I/O failure by
relocating redundant subdisks to other disks. Hot-relocation then
restores the affected VxVM objects and data. If a disk has already been
designated as a spare in the disk group, the subdisks from the failed disk
are relocated to the spare disk. Otherwise, any suitable free space in the
disk group is used.
To designate a disk as a hot-relocation spare, enter the following
command:
# vxedit set spare=on diskname
For example, to designate disk01 as a spare, enter the following
command:
# vxedit set spare=on disk01
You can use the vxdisk list command to confirm that this disk is now a
spare; disk01 should be listed with a spare flag.
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 automatically occurs (if
possible). You are notified 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:
Step 1. Select menu item 11(Mark a disk as a spare for a disk group) from the
vxdiskadm main menu.
Step 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