This section describes the procedure to delete the protection group from a partner cluster.
Before You Begin
Ensure that the following conditions are met:
The protection group is defined on the local cluster.
The protection group is deactivated on the partner cluster from which you want to delete it.
You have performed the prerequisites mentioned in Prerequisites for Configuring Remote Replication Using Oracle Solaris ZFS Snapshot.
For more information about RBAC, see Securing Geographic Edition Software in Oracle Solaris Cluster 4.3 Geographic Edition Installation and Configuration Guide.
# chmod A+user:username:rwx:allow /var/cluster/geo
The /var/cluster/geo directory must have the correct access control lists (ACL) applied for compatibility between the Geo Management RBAC rights profile and Oracle Solaris ZFS snapshot software.
You would have set the affinity and dependency when creating the replication setup. Optionally you can remove the replication logical hostname resource group and resource for each replication component in the protection group.
For example, suppose the local partner paris is a zone cluster and the logical hostname resource group in global zone is paris-lh-rg, and the resource is paris-lh-rs. Type the following commands in the global zone on one node of paris to remove the resource group and resource:
$ clrs disable paris-lh-rs $ clrs delete paris-lh-rs $ clrg delete paris-lh-rg
Type the following commands in the global zone of one node of paris to only remove the affinity and dependency:
$ clrg set -p RG_affinities-=++paris:pg1-app-rg1-infr-rg paris-lh-rg $ clrs set -p Resource_dependencies_offline_restart-=paris:pg1-srcpool1-stor-rs paris-lh-rs
Type the following command in one node of the local partner cluster:
# geopg delete protection-group
where protection-group is the name of the protection group.
For example, if paris is a global cluster and the other partner newyork is a zone cluster, and a replication component is repcom1, type the following command in one node of paris to remove the private string global:repcom1:local_service_passphrase:
$ clps delete global:repcom1:local_service_passphrase
Suppose if paris is a zone cluster, and a replication component is repcom1, type the following command in the global zone on one node of paris to remove the private string paris:repcom1:local_service_passphrase.
$ clps delete paris:repcom1:local_service_passphrase
That zpool device group would have been created by the replication infrastructure when you had created the replication component that you just removed. The name of the such a zpool device group is same as the name of the zpool.
For example, type the following command in the global zone of a zone cluster partner paris to delete the device group for the zpool srcpool1:
$ cldg delete srcpool1
You are not required to perform this action as the presence of the zpool device group does not hamper any supported action on a zpool in the Oracle Solaris Cluster environment.