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
See "Moving objects between disk groups" on page 213.
Note
You cannot specify rootdg
as the source disk group for a join
operation.
For example, the following output from vxprint
shows the contents of the disk group rootdg
and mydg
:
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dm rootdg01 sda - 17678493 - - - -
dm rootdg02 sdb - 17678493 - - - -
dm rootdg03 sdc - 17678493 - - - -
dm rootdg04 sdd - 17678493 - - - -
dm rootdg07 sdg - 17678493 - - - -
dm rootdg08 sdh - 17678493 - - - -
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dm mydg05 sde - 17678493 - - - -
dm mydg06 sdf - 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
:
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 ...]
The output from vxprint
after the join shows that disk group mydg
has been removed:
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dm mydg01 sda - 17678493 - - - -
dm rootdg02 sdb - 17678493 - - - -
dm rootdg03 sdc - 17678493 - - - -
dm rootdg04 sdd - 17678493 - - - -
dm mydg05 sde - 17678493 - - - -
dm rootdg06 sdf - 17678493 - - - -
dm rootdg07 sdg - 17678493 - - - -
dm rootdg08 sdh - 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 - - -
See "Joining shared disk groups" on page 428.