VERITAS Volume Manager 4.1 Administrator's Guide

Administering Hot-Relocation
Moving and Unrelocating Subdisks
Chapter 9346
vxunreloc allows you to restore the system back to the configuration
that existed before the disk failure. vxunreloc allows you to move the
hot-relocated subdisks back onto a disk that was replaced due to a
failure.
When vxunreloc is invoked, you must specify the disk media name
where the hot-relocated subdisks originally resided. When vxunreloc
moves the subdisks, it moves them to the original offsets. If you try to
unrelocate to a disk that is smaller than the original disk that
failed,vxunreloc does nothing except return an error.
vxunreloc provides an option to move the subdisks to a different disk
from where they were originally relocated. It also provides an option to
unrelocate subdisks to a different offset as long as the destination disk is
large enough to accommodate all the subdisks.
If vxunreloc cannot replace the subdisks back to the same original
offsets, a force option is available that allows you to move the subdisks to
a specified disk without using the original offsets. Refer to the vxunreloc
(1M) manual page for more information.
The following examples demonstrate the use of vxunreloc.
Moving hot-relocated subdisks back to their original disk
Assume that disk01 failed and all the subdisks were relocated. After
disk01 is replaced, vxunreloc can be used to move all the hot-relocated
subdisks back to disk01.
# vxunreloc -g newdg disk01
Moving hot-relocated subdisks to a different disk
The vxunreloc utility provides the -n option to move the subdisks to a
different disk from where they were originally relocated.
Assume that disk01 failed, and that all of the subdisks that resided on it
were hot-relocated to other disks. vxunreloc provides an option to move
the subdisks to a different disk from where they were originally
relocated. After the disk is repaired, it is added back to the disk group
using a different name, e.g, disk05. If you want to move all the
hot-relocated subdisks back to the new disk, the following command can
be used:
# vxunreloc -g newdg -n disk05 disk01