Veritas Volume Manager 5.0 Administrator's Guide (September 2006)
197Creating and administering disk groups
Disabling a disk group
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 c0t1d0 - 17678493 - - - -
dm rootdg02 c1t97d0 - 17678493 - - - -
dm rootdg03 c1t112d0 - 1767849 3 - - - -
dm rootdg04 c1t114d0 - 17678493 - - - -
dm mydg05 c1t96d0 - 17678493 - - - -
dm rootdg06 c1t98d0 - 17678493 - - - -
dm rootdg07 c1t99d0 - 17678493 - - - -
dm rootdg08 c1t100d0 - 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 - - -
Disabling a disk group
To disable a disk group, unmount and stop any volumes in the disk group, and then use the
following command to deport it:
# vxdg deport diskgroup
Deporting a disk group does not actually remove the disk group. It disables use of the disk
group by the system. Disks in a deported disk group can be reused, reinitialized, added to
other disk groups, or imported for use on other systems. Use the vxdg import command
to re-enable access to the disk group.
Destroying a disk group
The vxdg command provides a destroy option that removes a disk group from the
system and frees the disks in that disk group for reinitialization:
# vxdg destroy diskgroup
Caution: This command destroys all data on the disks.
When a disk group is destroyed, the disks that are released can be re-used in other disk
groups.
Recovering a destroyed disk group
If a disk group has been accidentally destroyed, you can recover it, provided that the disks
that were in the disk group have not been modified or reused elsewhere.