VERITAS Volume Manager 3.1 Administrator's Guide

Volume Manager Operations
Common Volume Manager Commands
Chapter 3 141
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 command provides the -n option to move the subdisks to
a different disk from where they were originally relocated. For example,
when disk01 fails, all the subdisks that reside on it are 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.
The vxunreloc command moves the hot-relocated subdisks to the
original offsets. However, if some subdisks occupy part or all of the area
on the destination disk, the vxunreloc command fails. If vxunreloc
command failure occurs, select one of the following two options:
move the existing subdisks elsewhere, and then re-run the
vxunreloc command
use the -f option provided by the vxunreloc command to move the
subdisks to the destination disk, but allow the vxunreloc command
to locate space on the disk. As long as the destination disk is large
enough for the subdisk storage region to accommodate all subdisks,
all hot-relocated subdisks are “unrelocated” without using the
original offsets.
A subdisk that is hot-relocated more than once due to multiple disk
failures can still be unrelocatedback to its original location. For example,
if disk01 fails, a subdisk named disk01-01 is moved to disk02. If
disk02 then fails, all subdisks that reside on it, including the subdisk
that was hot-relocated to it, are moved again. When disk02 is replaced,
an unrelocate operation for disk02 does not affect hot-relocated subdisk
disk01-01. However, a replacement of disk01, followed by the
unrelocate operation, moves disk01-01 back to disk01 when the