Joining disk groups

To remove all VxVM objects from an imported source disk group to an imported target disk group, use the following command:

# vxdg [-o override|verify] join sourcedg targetdg

Note:

You cannot specify rootdg as the source disk group for a join operation.

The following output from vxprint shows the contents of the disk groups rootdg and mydg.

The output includes two utility fields, TUTIL0 and PUTIL0.. VxVM creates these fields to manage objects and communications between different commands and Symantec products. The TUTIL0 values are temporary; they are not maintained on reboot. The PUTIL0 values are persistent; they are maintained on reboot.

# vxprint
Disk group: rootdg
TY NAME        ASSOC       KSTATE     LENGTH     PLOFFS    STATE    TUTIL0    PUTIL0 
dg rootdg      rootdg      -          -          -         -        -         -
dm rootdg01    hdisk5      -          17678493   -         -        -         -
dm rootdg02    hdisk6      -          17678493   -         -        -         -
dm rootdg03    hdisk7      -          17678493   -         -        -         -
dm rootdg04    hdisk8      -          17678493   -         -        -         -
dm rootdg07    hdisk11     -          17678493   -         -        -         -
dm rootdg08    hdisk12     -          17678493   -         -        -         -

Disk group: mydg
TY NAME        ASSOC       KSTATE     LENGTH     PLOFFS    STATE    TUTIL0    PUTIL0 
dg mydg        mydg        -          -          -         -        -         -
dm mydg05      hdisk9      -          17678493   -         -        -         -
dm mydg06      hdisk10     -          17678493   -         -        -         -
v  vol1        fsgen       ENABLED    2048       -         ACTIVE   -         -
pl  vol1-01    vol1        ENABLED    3591       -         ACTIVE   -         -
sd mydg01-01   vol1-01     ENABLED    3591       0         -        -         -
pl vol1-02     vol1        ENABLED    3591       -         ACTIVE   -         -
sd mydg05-01   vol1-02     ENABLED    3591       0         -        -         -

The following command joins disk group mydg to rootdg:

# vxdg join mydg rootdg

The moved volumes are initially disabled following the join. Use the following commands to recover and restart the volumes in the target disk group:

# vxrecover -g targetdg -m [volume ...]
# vxvol -g targetdg startall

The output from vxprint after the join shows that disk group mydg has been removed:

# vxprint
Disk group: rootdg
TY NAME        ASSOC       KSTATE     LENGTH     PLOFFS     STATE    TUTIL0     PUTIL0 
dg rootdg      rootdg      -          -          -          -        -          -
dm mydg01      hdisk5      -          17678493   -          -        -          -
dm rootdg02    hdisk6      -          17678493   -          -        -          -
dm rootdg03    hdisk7      -          17678493   -          -        -          -
dm rootdg04    hdisk8      -          17678493   -          -        -          -
dm mydg05      hdisk9      -          17678493   -          -        -          -
dm rootdg06    hdisk10     -          17678493   -          -        -          -
dm rootdg07    hdisk11     -          17678493   -          -        -          -
dm rootdg08    hdisk12     -          17678493   -          -        -          -
v  vol1        fsgen       ENABLED    2048       -          ACTIVE   -          -
pl  vol1-01    vol1        ENABLED    3591       -          ACTIVE   -          -
sd mydg01-01   vol1-01     ENABLED    3591       0          -        -          -
pl vol1-02     vol1        ENABLED    3591       -          ACTIVE   -          -
sd mydg05-01   vol1-02     ENABLED    3591       0          -        -          -

More Information

Moving objects between disk groups

Changing subdisk attributes

Joining shared disk groups