Forum Discussion

eu22106's avatar
eu22106
Level 4
14 years ago

How to destroy a DG?

We removed some disk we no longer need but made an error in that a DG lost (unrecoverable) all its diskes. As this DG is not critical and we found some other small issues we want to remove the complete DG and create a new one.

BUT. As the disks are in a deported state I am unbale to remove the DG. Is there a way around this issue?

 

Ivo

  • You could try:

    vxassist rescan

    vxclus enable -g diskgroup

    vxdg -g diskgroup -s -f import

     

    vxdg -g diskgroup destroy

    If this doesn't work, I'm out of ideas!

    Mike

  • Mike,

    Unfortunately this does not work as vxdisksetup is not recognized as an internal or ext. command. Is this also applicable on a windows server?

  • This command is for UNIX only.  For Windows, you could try the 3 different options below:

    1. Right click on disk and select "Remove disk from Dynamic Disk Group", but I am not sure if this will work on a deported diskgroup
    2. vxdg -f rmdisk diskname
    3. vxdg -g diskgroup -f import (this imports diskgroup even when some disks are missing - you could also try addining -C option id this doesn't work).  Then remove diskgroup:
      vxdg -g diskgroup destroy (there is a "-f" option if necessary)

    Mike

  • No luck there........

    1. Right click on disk and select "Remove disk from Dynamic Disk Group", but I am not sure if this will work on a deported diskgroup. ==> No option"Remove disk from Dynamic Disk Group" available as disks are disconnected.
    2. vxdg -f rmdisk diskname ==> Failed to complete the operation.
    3. vxdg -g diskgroup -f import (this imports diskgroup even when some disks are missing - you could also try addining -C option id this doesn't work).  ==> V-76-58645-583: Could not find the cluster dynamic disk group. (even with -C option)
  • You could try:

    vxassist rescan

    vxclus enable -g diskgroup

    vxdg -g diskgroup -s -f import

     

    vxdg -g diskgroup destroy

    If this doesn't work, I'm out of ideas!

    Mike

  • Mike,

    Rescan did the trick. After the rescan eveything disappeared. I was under the inpression that I still had to "uninstall" the DG but obviously I did not have to.

    Thanks.