VERITAS Volume Manager 3.1 Administrator's Guide
Recovery
Detecting and Replacing Failed Disks
Chapter 8352
vxunreloc, the information is erased. The original dm name and the
original offset are saved in the subdisk records. To print all of the
subdisks that were hot-relocated from disk01 in the rootdg disk group,
use the following command:
# vxprint -g rootdg -se 'sd_orig_dmname="disk01"'
To move all the subdisks that were hot-relocated from disk01 back to the
original disk, type:
# vxunreloc -g rootdg disk01
The vxunreloc utility provides the -n option to move the subdisks to a
different disk from where they were originally relocated. For example,
when disk01 failed, all the subdisks that resided on it were
hot-relocated to other disks. After the disk is repaired, it is added back to
the disk group using a different name, for example, disk05. To move all
the hot-relocated subdisks to the new disk, use the following command:
# vxunreloc -g rootdg -n disk05 disk01
The destination disk should have at least as much storage capacity as
was in use on the original disk. If there is not enough space, the
unrelocate operation fails and none of the subdisks are moved.
When the vxunreloc utility moves the hot-relocated subdisks, it moves
them to the original offsets. However, if some subdisks occupy part or all
of the area on the destination disk, the vxunreloc utility fails. If the
vxunreloc utility fails, perform one of the following procedures:
• move the existing subdisks somewhere else, and then re-run the
vxunreloc utility
• use the -f option provided by the vxunreloc utility to move the
subdisks to the destination disk, but allow the vxunreloc utility to
find the space on the disk.
As long as the destination disk is large enough so that the region of the
disk for storing subdisks can accommodate all subdisks, all the
hot-relocated subdisks are “unrelocated” without using the original
offsets.
A subdisk that has been hot-relocated more than once due to multiple
disk failures can still be unrelocated back to its original location. For
example, if disk01 fails, a subdisk named disk01-01 is moved to
disk02.If disk02 then experiences disk failure, all the subdisks
residing on disk02, including the one that was hot-relocated to it, are
moved again. When disk02 is replaced, an unrelocate operation for