Use the following procedure to delete a protection group from the local cluster.
If you want to delete the protection group everywhere, you must run the geopg delete command on each cluster where the protection group exists.
To keep the application resource groups online while deleting the protection group, you must remove the application resource groups from the protection group.
Before You Begin
Ensure that the following conditions are met:
The protection group you want to delete exists locally.
The protection group is offline on all clusters from which you want to delete it.
You must be assigned the Geo Management rights profile to complete this procedure. For more information, see Disaster Recovery Framework Rights Profiles in Installing and Configuring the Disaster Recovery Framework for Oracle Solaris Cluster 4.4.
the following command deletes the configuration of the protection group from the local cluster. The command also removes the replication resource group for each device group in the protection group.
# geopg delete protection-group-name
Specifies the name of the protection group
This example deletes a protection group zfssapg from both partner clusters. The protection group is offline on both partner clusters.
In this example, phys-paris-1 is a node of the primary cluster and phys-newyork-1 is a node of the secondary cluster.
# rlogin phys-paris-1 -l root phys-paris-1# geopg delete zfssapg # rlogin phys-newyork-1 -l root phys-newyork-1# geopg delete zfssapgExample 28 Deleting a Protection Group While Keeping Application Resource Groups Online
This example keeps online two application resource groups, apprg1 and apprg2, while deleting their protection group, mypg, from both partner clusters. The following commands remove the application resource groups from the protection group, then delete the protection group.
phys-paris-1# geopg remove-resource-group apprg1,apprg2 mypg phys-paris-1# geopg stop -e global mypg phys-paris-1# geopg delete mypg phys-newyork-1# geopg delete mypg
Troubleshooting
If the deletion is unsuccessful, the configuration status is set to Error. Fix the cause of the error and rerun the geopg delete command.
For Oracle Data Guard, unlike other data replication modules, the Oracle database-server resource group is not added to the protection group. Instead, a shadow Oracle database-server resource group is added to represent this resource group. You can add and remove the shadow Oracle database-server resource group to and from the protection group at any time without affecting the Oracle Data Guard data replication. Consequently, the application resource groups that are shown in this example would have no data to replicate in an Oracle Data Guard protection group. Application resource groups that might meet this criteria can be scalable web servers, where their data is static or held on some remote storage that is not controlled by this cluster.