4.3.10.4 DELETE DISKGROUP

This command deletes an existing Oracle ASM disk group.

Syntax

DELETE DISKGROUP 
WHERE
   { ID=diskgroup_id |
     CLUSTERNUMBER=cluster_number DISKGROUPNAME=diskgroup_name |
     CLUSTERNAME=cluster_name DISKGROUPNAME=diskgroup_name |
     CLUSTERID=cluster_id DISKGROUPNAME=diskgroup_name }

Arguments

The following arguments are available in the WHERE clause:

  • ID : Specifies the es.xml ID for the disk group

  • CLUSTERNUMBER : Specifies the cluster number in the es.xml, starting at 1

  • CLUSTERNAME : Specifies the name of the cluster

  • CLUSTERID : Specifies the es.xml ID of the cluster

  • DISKGROUPNAME : Specifies the name of the disk group

Example 4-22 Deleting a Disk Group

The following example shows an OEDACLI session that uses the DELETE DISKGROUP command along with typical output at each step.

oedacli> delete diskgroup where id=10dff870-b824-cdb7-0542-8a03a88e9653
oedacli> save action
oedacli> merge actions
 processMerge
 processMergeActions
 Merging Action : delete diskgroup where id=10dff870-b824-cdb7-0542-8a03a88e9653
 Merging DELETE DISKGROUP
 Action Validated and Merged OK
oedacli> deploy actions
 Deploying Action ID : 4 delete diskgroup where id=10dff870-b824-cdb7-0542-8a03a88e9653
 Deploying DELETE DISKGROUP
 Dropping ASM Disk Group DATAC1
 ASM Disk Group DATAC1  does not exist..
 Grid Disks for Disk Group DATAC1 exist on cells dbm01celadm07.example.com
 Grid Disks for Disk Group DATAC1 exist on cells dbm01celadm08.example.com
 Grid Disks for Disk Group DATAC1 exist on cells dbm01celadm09.example.com
 Dropping Grid Disks on [dbm01celadm07.example.com, dbm01celadm08.example.com, dbm01celadm09.example.com]
 Deleting quorum devices...
 Completed dropping ASM Disk Group DATAC1
 Done...
 Done