Skip to main content
Version: 3.6

Manage a Disaster Recovery Pair

This topic explains how to create, update, and delete a disaster recovery (DR) pair by using the OpenShift console.

important

Only one DR pair can exist between the same source and destination clusters for a specific backup location. For example, if a pair already exists between cluster A and cluster B, you cannot create another A-to-B pair. However, you can create pairs between A and C or A and D.

Prerequisites

Ensure that your environment meets the prerequisites for ACM-based DR.

Create a DR pair

To create a DR pair, complete the following steps:

  1. Sign in to the OpenShift web console.
  2. Switch to the multicluster management view (All Clusters on OpenShift 4.18 and 4.19, or Fleet management on 4.20 and later), and from the left navigation pane, select the Portworx option.
  3. Select Disaster Recovery Pairs.
    The system displays the Disaster Recovery Pairs page that lists all existing DR pairs.
  4. Click Create Disaster Recovery Pair.
    The system displays the Create a Disaster Recovery Pair window.
  5. In the Basic Information page of the Create a Disaster Recovery Pair window, do the following:
    1. In the Disaster Recovery Pair Name field, enter a name for the DR pair.
    2. In the Disaster Recovery Type section, select Asynchronous.
    3. In the Pair Type section, select Unidirectional or Bidirectional.
    4. Click Next.
  6. In the Select Clusters page that opens, do the following:
    1. From the Primary Cluster (Source) dropdown, select the source cluster.
      The Cluster capacity section displays the cluster's total and available capacity.
    2. From the Disaster Recovery Cluster (Destination) dropdown, select the destination cluster.
      The Cluster capacity section displays the cluster's total and available capacity.
    3. Click Next.
  7. In the Backup Location page that opens, do the following:
    1. From the Type dropdown, select the type of the backup location.
      The available options are AWS S3, Azure Storage, Google Cloud Storage, and NFS.
    2. Based on the type of the backup location, enter the following information:
    1. In the Storage Location section, enter the following information to configure the AWS S3 bucket that stores backup data:
      • Bucket Name: Enter the name of the bucket where Portworx stores data.
      • Region: Enter the region where the bucket resides.
      • Endpoint: Enter the S3-compatible endpoint URL.
        For example, https://s3.amazonaws.com. For non-AWS providers, enter the endpoint provided by the storage vendor.
    2. In the Authentication section, configure the authentication settings:
      • Use IAM role for authentication: Toggle the option to enable or disable IAM authentication.
        When enabled, Portworx uses the IAM role associated with the cluster or nodes instead of access keys.
        note

        If IAM role authentication is enabled, Portworx uses the assigned IAM permissions to access the bucket. Ensure that the IAM role has the required permissions for backup and snapshot operations.

      • Access Key: Enter the access key for the storage account when IAM authentication is disabled.
      • Secret Key: Enter the secret access key associated with the access key.
    3. In the Advanced Settings section, configure the optional storage and encryption parameters:
      • Encryption Key: Enter the encryption key used to encrypt data stored in the bucket, if required by your environment.
      • S3 Storage Class: Specify the storage class to use for uploaded objects.
        Examples include STANDARD, STANDARD_IA, ONEZONE_IA, or storage classes supported by your S3-compatible provider.
      • Server-side Encryption: From the dropdown menu, select the server-side encryption method to apply to objects stored in the bucket.
      • SSL: Enables encrypted communication between Portworx and the storage endpoint. Disable this option only if the endpoint does not support SSL/TLS.
    1. Click Next.
  8. In the Review page that opens, do the following:
    1. Review the DR pair configuration details.
    2. Click Create Disaster Recovery Pair.
      The system creates the DR pair and displays the Disaster Recovery Pairs page that lists the DR pair.

After the DR pair is created, you can create a protection group to begin replicating namespaces between the paired clusters.

important

When you create a DR pair, the Portworx MultiCluster Operator automatically discovers the endpoints where the Portworx API is reachable on the source and destination clusters. If the clusters cannot connect to each other directly, this automatic discovery does not succeed. In this case, override the endpoint discovery by adding the following annotations to the DisasterRecoveryPair resource. These annotations specify the endpoints where the Portworx API is reachable, along with the authentication token for each cluster.

AnnotationDescription
multicluster.purestorage.com/source-endpointSpecifies the endpoint where the Portworx API is reachable on the source cluster.
multicluster.purestorage.com/destination-endpointSpecifies the endpoint where the Portworx API is reachable on the destination cluster.
multicluster.purestorage.com/source-tokenSpecifies the authentication token for the Portworx API on the source cluster.
multicluster.purestorage.com/destination-tokenSpecifies the authentication token for the Portworx API on the destination cluster.

The following example shows these annotations on a DisasterRecoveryPair resource:

metadata:
annotations:
multicluster.purestorage.com/source-endpoint: "<source-portworx-api-endpoint>"
multicluster.purestorage.com/destination-endpoint: "<destination-portworx-api-endpoint>"
multicluster.purestorage.com/source-token: "<source-portworx-api-token>"
multicluster.purestorage.com/destination-token: "<destination-portworx-api-token>"

When you set these annotations, the operator uses the specified endpoints and tokens instead of the automatically discovered values.

note

If you remove all the connectivity override annotations from the DisasterRecoveryPair, the operator does not reconcile the underlying ClusterPair resources, and the clusters continue to use the previously configured endpoints and tokens. To change the connectivity configuration, update the annotation values instead of removing them.

Update a DR pair

To update a DR pair, complete the following steps:

note

You can update only the account key and the associated secret used to authenticate with the backup location.

  1. Sign in to the OpenShift web console.
  2. Switch to the multicluster management view, and from the left navigation pane, select the Portworx option.
  3. Select Disaster Recovery Pairs.
    The system displays the Disaster Recovery Pairs page that lists all existing DR pairs.
  4. From the DR pair that you want to update, click the vertical ellipsis menu and select Edit.
  5. On the Edit Disaster Recovery Pair page that opens, update the account key and click Update Disaster Recovery Pair.
    The system updates the DR pair.

Delete a DR pair

To delete a DR pair, complete the following steps:

note

You cannot delete a DR pair if one or more protection groups use it.

  1. Sign in to the OpenShift web console.
  2. Switch to the multicluster management view, and from the left navigation pane, select the Portworx option.
  3. Select Disaster Recovery Pairs.
    The system displays the Disaster Recovery Pairs page that lists all existing DR pairs.
  4. Click the vertical ellipsis menu associated with the DR pair to delete, and select Remove Disaster Recovery Pair.
  5. Confirm the deletion by clicking Remove Disaster Recovery Pair.
    The system deletes the DR pair.
In this topic: