Search This Blog

Sunday, April 6, 2014

Destroying a Disk Group

Destroying a Disk Group

  • Means that the disk group no longer exists
  • Returns all disks to the free disk pool
  • Is the only method for freeing the last disk in a disk group.

VEA:

 Actions-> Destroyed Disk Group

CLI:

Syntax: vxdg destroy diskgroup
Example: To destroy the disk group olddg and place its disks in the free disk pool:

# vxdg destroy testdg

test4dev# vxdg list
NAME         STATE           ID
testdg       enabled,cds          1209460427.14.test2dev

Reimport a destroyed disk group:

(Because only the dg_name is in that moment destroyed, no the dgid)
#vxdg –f import ----. ---- <host>

Note: after the import, you will be able to start disabled volume with:
#vxrecover –g <dg_name> -sb

test4dev# vxdg -f import 1209460427.14.test2dev

test4dev# vxrecover -g testdg -sb

test4dev# vxdg list
NAME         STATE           ID
testdg       enabled,cds          1209460427.14.test2dev

test4dev# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
IBM_VSCSI0_1 auto:LVM        -            -            LVM
TagmaStore-USP0_1 auto:cdsdisk    disk01       testdg       online

TagmaStore-USP1_0 auto:cdsdisk    disk02       testdg       online

No comments:

Post a Comment