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

Displaying Spare Disk Information
234 VERITAS Volume Manager Administrator’s Guide
Depending on the locations of the relocated subdisks, you can choose to move them
elsewhereafter hot-relocationoccurs (see Configuring Hot-Relocation toUse Only Spare
Disks” on page 238).
After a successful relocation, remove and replace the failed disk as described in
Removing and Replacing Disks” on page 76).
Displaying Spare Disk Information
Use the following command to display information about spare disks that are available
for relocation:
# vxdg spare
The following is example output:
GROUP DISK DEVICE TAG OFFSET LENGTH FLAGS
rootdg disk02 c0t2d0 c0t2d0 0 658007 s
Here disk02 is the only disk designated as a spare. The LENGTH field indicates how
much spare space is currently available on disk02 for relocation.
The following commands can also be used to display information about disks that are
currently designated as spares:
vxdisk list lists disk information and displays spare disks with a spare flag.
vxprint lists disk and other information and displays spare disks with a SPARE flag.
The list menu item on the vxdiskadm main menu lists spare disks.
Marking a Disk as a Hot-Relocation Spare
Hot-relocation allows the system to react automatically to I/O failure by relocating
redundantsubdisks toother disks.Hot-relocation then restores the affected VxVMobjects
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.