Veritas Volume Manager 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)

Moving and Unrelocating Subdisks
342 VERITAS Volume Manager Administrators Guide
Moving Hot-Relocated Subdisks back to their Original Disk
Assume that mydg01 failed and all the subdisks were relocated. After mydg01 is replaced,
vxunreloc can be used to move all the hot-relocated subdisks back to mydg01.
# vxunreloc -g mydg mydg01
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 mydg01 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, mydg05. If you want to move all
the hot-relocated subdisks back to the new disk, the following command can be used:
# vxunreloc -g mydg -n mydg05 mydg01
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 will fail and none of
the subdisks will be moved.
Forcing Hot-Relocated Subdisks to Accept Different Offsets
By default, vxunreloc attempts to move hot-relocated subdisks to their original offsets.
However, vxunreloc fails if any subdisks already occupy part or all of the area on the
destination disk. In such a case, you have two choices:
Move the existing subdisks somewhere else, and then re-run vxunreloc.
Use the -f option provided by vxunreloc to move the subdisks to the destination
disk, but leave it to vxunreloc 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 will be unrelocated without
using the original offsets.
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