VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)
Reorganizing the Contents of Disk Groups
130 VERITAS Volume Manager Administrator’s Guide
Splitting Disk Groups
To remove a self-contained set of VxVM objects from an imported source disk group to a
new target disk group, use the following command:
# vxdg [-o expand] [-o override|verify] split sourcedg targetdg \
object ...
For a description of the -o expand, -o override, and -o verify options, see “Moving
Objects Between Disk Groups” on page 128.
See “Splitting Disk Groups” on page 265 for more information on splitting shared disk
groups in clusters.
For example, the following output from vxprint shows the contents of disk group
rootdg:
# vxprint
Disk group: rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg rootdg rootdg - - - - - -
dm disk01 c0t1d0 - 17678493 - - - -
dm disk02 c1t97d0 - 17678493 - - - -
dm disk03 c1t112d0 - 17678493 - - - -
dm disk04 c1t114d0 - 17678493 - - - -
dm disk05 c1t96d0 - 17678493 - - - -
dm disk06 c1t98d0 - 17678493 - - - -
dm disk07 c1t99d0 - 17678493 - - - -
dm disk08 c1t100d0 - 17678493 - - - -
v vol1 fsgen ENABLED 2048 - ACTIVE - -
pl vol1-01 vol1 ENABLED 3591 - ACTIVE - -
sd disk01-01 vol1-01 ENABLED 3591 0 - - -
pl vol1-02 vol1 ENABLED 3591 - ACTIVE - -
sd disk05-01 vol1-02 ENABLED 3591 0 - - -
The following command removesdisks disk07 and disk08 fromrootdg to forma new
disk group, dg1:
# vxdg -o expand split rootdg dg1 disk07 disk08
The moved volumes are initially disabled following the split. Use the following
commands to recover and restart the volumes in the new target disk group:
# vxrecover -g targetdg -m [volume ...]
# vxvol -g targetdg startall