VERITAS Volume Manager 3.1 Administrator's Guide

Volume Manager Operations
Hot-Relocation
Chapter 3 107
want to move the hot-relocated subdisks to disk05 where some subdisks
already reside. Use the force option to move the hot-relocated subdisks to
disk05, but not to the exact offsets:
# vxunreloc -g newdg -f -n disk05 disk01
Example 4:
If a subdisk was hot-relocated more than once due to multiple disk
failures, it can still be unrelocated back to its original location. For
instance, if disk01 failed and a subdisk named disk01-01 was moved to
disk02, and then disk02 experienced disk failure, all of the subdisks
residing on it, including the one which was hot-relocated to it, will be
moved again. When disk02 is replaced, a vxunreloc operation for
disk02 does nothing to the hot-relocated subdisk disk01-01. However, a
replacement of disk01, followed by a vxunreloc operation, moves
disk01-01 back to disk01 if the vxunreloc utility is run immediately
after the replacement.
After the disk that experienced the failure is fixed or replaced, the
vxunreloc program can be used to move all the hot-relocated subdisks
back to the disk. When a subdisk is hot-relocated, its original disk media
name and the offset into the disk, are saved in the configuration
database. When a subdisk is moved back to the original disk or to a new
disk using the vxunreloc utility, 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, use the following command:
# vxunreloc -g rootdg disk01
The vxunreloc utility provides -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