Veritas Volume Manager 5.1 SP1 Administrator"s Guide (5900-1506, April 2011)

Assume that mydg01 failed and the subdisks were relocated and that you want to
move the hot-relocated subdisks to mydg05 where some subdisks already reside.
You can use the force option to move the hot-relocated subdisks to mydg05, but
not to the exact offsets:
# vxunreloc -g mydg -f -n mydg05 mydg01
Examining which subdisks were hot-relocated from a disk
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 mydg01 failed and
a subdisk named mydg01-01 was moved to mydg02, and then mydg02 experienced
disk failure, all of the subdisks residing on it, including the one which was
hot-relocated to it, will be moved again. When mydg02 was replaced, a vxunreloc
operation for mydg02 will do nothing to the hot-relocated subdisk mydg01-01.
However, a replacement of mydg01 followed by a vxunreloc operation, moves
mydg01-01 back to mydg01 if vxunreloc is run immediately after the replacement.
After the disk that experienced the failure is fixed or replaced, vxunreloc 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 vxunreloc, the information is erased. The original
disk-media name and the original offset are saved in the subdisk records. To print
all of the subdisks that were hot-relocated from mydg01 in the mydg disk group,
use the following command:
# vxprint -g mydg -se 'sd_orig_dmname="mydg01"'
Restarting vxunreloc after errors
vxunreloc moves subdisks in three phases:
vxunreloc creates as many subdisks on the specified destination disk as there
are subdisks to be unrelocated. The string UNRELOC is placed in the comment
field of each subdisk record.
Creating the subdisk is an all-or-nothing operation. If vxunreloc cannot create
all the subdisks successfully, none are created, and vxunreloc exits.
vxunreloc moves the data from each subdisk to the corresponding newly
created subdisk on the destination disk.
When all subdisk data moves have been completed successfully, vxunreloc
sets the comment field to the null string for each subdisk on the destination
disk whose comment field is currently set to UNRELOC.
421Administering hot-relocation
Moving relocated subdisks