To delete a protection group on all clusters, run the geopg delete command on each cluster where the protection group exists.
Before deleting a protection group, ensure that the following conditions are met.
The protection group exists locally.
The protection group is offline on the local cluster.
To keep the application resource groups online while deleting a protection group, you must remove the application resource groups from the protection group.
Log in to a node on the cluster where you want to delete the protection group, for example, cluster-paris.
The cluster-paris is the primary cluster. See Example Sun Cluster Geographic Edition Cluster Configuration in Sun Cluster Geographic Edition System Administration Guide for a sample cluster configuration.
You must be assigned the Geo Management RBAC rights profile to complete this procedure. For more information about RBAC, see Sun Cluster Geographic Edition Software and RBAC in Sun Cluster Geographic Edition System Administration Guide.
Delete the protection group.
This command deletes the configuration of the protection group from the local cluster. The command also removes the lightweight resource group and the replication resource group for each device group in the protection group.
# geopg delete protectiongroupname
Specifies the name of the protection group.
If the deletion is unsuccessful, the Configuration status is set to Error. Fix the cause of the error and rerun the geopg delete command.
This example deletes a protection group from both partner clusters.
# rlogin cluster-paris -l root cluster-paris# geopg delete avspg # rlogin cluster-newyork -l root cluster-newyork# geopg delete avspg
This example keeps online two application resource groups (apprg1 and apprg2) while deleting the protection group that they share, avspg.
Remove the application resource groups from the protection group, then delete the protection group.
# geopg remove-resource-group apprg1,apprg2 avspg # geopg stop -e global avspg # geopg delete avspg