Go to main content

Oracle® Solaris Cluster Data Replication Guide for ZFS Snapshots

Exit Print View

Updated: October 2018
 
 

Deleting Oracle Solaris ZFS Snapshot Protection Group From a Partner Cluster

This section describes the procedure to delete the protection group from a partner cluster.

How to Remove a Oracle Solaris ZFS Snapshot Protection Group From a Partner Cluster


Note -  You can also accomplish this procedure by using the Oracle Solaris Cluster Manager browser interface. First you must remove affinity and dependency from the replication logical hostname resource group and resource in case of zone cluster, as described below. Then click Partnerships, click the partnership name, click the protection group name, in the Data Replication Components section highlight the replication component name, and click Remove. After this is done, remove the Oracle Solaris Cluster private strings as described below in case either partner is a zone cluster. For more information about Oracle Solaris Cluster Manager, see Chapter 12, Using the Oracle Solaris Cluster Manager Browser Interface in Administering an Oracle Solaris Cluster 4.4 Configuration.

Before You Begin

Ensure that the following conditions are met:

  1. Assume the root role or assume a role that is assigned the Geo Management RBAC rights profile.

    For more information about RBAC, see Securing Disaster Recovery Framework Software in Installing and Configuring the Disaster Recovery Framework for Oracle Solaris Cluster 4.4.


    Note -  If you use a role with Geo Management RBAC rights, ensure that the /var/cluster/geo ACLs are correct on each node of both partner clusters. If necessary, assume the root role on the cluster node and set the correct ACLs.
    # 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.


  2. If local partner is a zone cluster, for each replication component in the protection group remove the resource group affinity and resource dependency from logical hostname resource group and resource that is hosting the replication hostname in the global zone. 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-srcpool1-infr-rg paris-lh-rg 
    $  clrs set -p Resource_dependencies_offline_restart-=paris:pg1-srcpool1-stor-rs paris-lh-rs
    
  3. Remove the protection group from local cluster.

    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.

  4. If either partner is a zone cluster, you can remove the Oracle Solaris Cluster private string for each replication component in the global zone of local partner that was created to store the SSH passphrase used by the replication setup.

    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
  5. (Optional) If the only SUNW.HAStoragePlus resource managing the zpool is in the application resource group, then you may delete the zpool's device group in the global zone of a zone cluster partner. 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.