cancel
Showing results for 
Search instead for 
Did you mean: 

How to destroy a DG?

eu22106
Level 4

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

1 ACCEPTED SOLUTION

Accepted Solutions

mikebounds
Level 6
Partner Accredited

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

View solution in original post

6 REPLIES 6

mikebounds
Level 6
Partner Accredited

You can use:

vxdisksetup -i -f diskname

This will reinitialise disk and "-f" forces a disk to be initialized even if it is a member of a deported disk group (see https://sort.symantec.com/public/documents/sfha/5.1sp1/solaris/manualpages/html/man/volume_manager/h...)

Mike

eu22106
Level 4

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?

mikebounds
Level 6
Partner Accredited

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

eu22106
Level 4

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)

mikebounds
Level 6
Partner Accredited

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

eu22106
Level 4

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.