rmmdiskgrp

You can use the rmmdiskgrp command to delete a managed disk group. Care should be taken when using this command.

Syntax

Read syntax diagramSkip visual syntax diagram>>- svctask -- -- rmmdiskgrp -- --+----------+-- --------------->
                                  '- -force -'

>--+- mdisk_group_id ---+--------------------------------------><
   '- mdisk_group_name -'

Parameters

-force
Optionally specifies the force flag to force the deletion. If the -force flag is specified, all virtual disks and virtual disk-to-host mappings are deleted. All managed disks in the group are removed and the group itself is deleted.
mdisk_group_id | mdisk_group_name
Specifies the ID or name of the managed disk group to delete.

Description

This command destroys the specified managed disk group. The force flag is required if there are virtual disks created from this group or if there are managed disks in the group. Otherwise, the command will fail.

Deleting a managed disk group is essentially like destroying a cluster or part of a cluster. The managed disk group is the central point of control of virtualization. Virtual disks are created using extents available in the group, and the mapping between virtual disk extents and managed disk extents is controlled on a group basis. Therefore, deleting a group deletes this mapping, which cannot be subsequently restored.

Attention: Attention: This command partially completes asynchronously. All virtual disks, host mappings, and copy services are deleted before the command returns. The managed disk group delete then completes asynchronously.
Attention: Attention: Before you issue the command, ensure that you really want to destroy all mapping information. Data held on virtual disks cannot be recovered after the managed disk group has been destroyed.

In detail, if you specify the force flag, the following actions take place:

  1. If there are virtual disks still using extents in this group, any mappings between that disk and any host objects are deleted.
  2. If there are managed disks in the group, all disks are deleted from the group. They are returned to the unmanaged state.
  3. The group is deleted.
Attention: Attention: If you delete all the managed disk groups in your cluster using the force flag, you will be returned to the state you were in just after you added nodes to the cluster. All data held on virtual disks will be lost and unrecoverable.

Possible failures

Examples

An invocation example

svctask rmmdiskgrp -force Group3