Table of Contents

Manage SnapMirror-SnapVault Cascade Relationship workflow

The Manage SnapMirror-SnapVault Cascade Relationship workflow enables you to manage the schedules and transfer updates of your existing SnapMirror-SnapVault cascade relationships.

A SnapMirror-SnapVault cascade deployment, which is supported on FlexVol volumes, consists of a chain of relationships in which a volume is replicated to a destination volume, and then the destination volume becomes the primary for a SnapVault backup on a tertiary volume. This deployment adds a SnapVault backup, which fulfills more strict protection requirements.

The following image illustrates a SnapMirror-SnapVault cascade chain:


The image depicts a SnapMirror-SnapVault cascade chain.

Consider a setup that has a primary (cluster A, the SnapMirror source), a secondary (cluster B, the SnapMirror destination), and a tertiary cluster (cluster C, the SnapVault destination). This workflow automates the management of schedules and update transfers of the existing SnapMirror-SnapVault cascade relationship by performing the following activities:

The following sections provide details about the workflow and how to execute the workflow:

Prerequisites for executing the Manage SnapMirror-SnapVault Cascade Relationship workflow

You must ensure that certain requirements are met before executing the Manage SnapMirror-SnapVault Cascade Relationship workflow. You must be a cluster administrator for executing this workflow.

  • Your system must be running clustered Data ONTAP.
    Note: This workflow is qualified to work with Data ONTAP 8.2.
  • OnCommand Workflow Automation (WFA) 3.0 or later must be installed.
  • You must have added OnCommand Unified Manager 6.2 or later as a data source in WFA and obtained the latest Unified Manager data.
  • The primary cluster must be enabled with SnapMirror license, the secondary cluster must be enabled with both SnapMirror and SnapVault licenses, and the tertiary cluster must be enabled with SnapVault license.
  • The primary cluster must be peered with secondary cluster, and the secondary cluster must be peered with tertiary cluster.
  • The Storage Virtual Machines (SVMs) of the primary and secondary clusters must be peered, and the SVMs of the secondary and tertiary clusters must be peered.
  • A SnapMirror relationship must be established and initialized between the primary and secondary clusters.
  • A SnapVault relationship must be created and initialized between the secondary and tertiary clusters.
  • User-defined SnapMirror policy and rules must be configured in the tertiary cluster.
  • The schedules for the transfer of Snapshot copies from the primary cluster to the secondary cluster and then from the secondary cluster to the tertiary cluster must be configured.
  • The Microsoft Windows Task Scheduler must be configured so that the schedule provided in the workflow package matches the tertiary cluster schedule.
  • The secondary SnapMirror cluster must be added as a data source of type Clustered Data ONTAP - Snapshot, in WFA to acquire Snapshot copies information from the Mirror cluster.
  • .

What happens when you execute the Manage SnapMirror-SnapVault Cascade Relationship workflow

The Manage SnapMirror-SnapVault Cascade Relationship workflow enables you to manage the schedules and transfer updates of your existing SnapMirror-SnapVault cascade relationships. The workflow enables you to configure the SnapMirror source and destination, the SnapVault destination, and SnapMirror policy details.

The following illustration displays the tasks involved in executing the workflow:


The image displays the tasks performed in the Manage SnapMirror-SnapVault Cascade relationship workflow.

Executing the Manage SnapMirror-SnapVault Cascade Relationship workflow

The Manage SnapMirror-SnapVault Cascade Relationship workflow enables you to manage the schedules and transfer updates of your existing SnapMirror-SnapVault cascade relationships.

Before you begin

  • The workflow pack must be downloaded from the Storage Automation Store.
  • You must have reviewed the prerequisites for executing the workflow.

About this task

You should have the following input parameters available for executing the workflow:

  • SnapMirror source details such as source cluster name, Storage Virtual Machine (SVM) name, and volume name.
  • SnapMirror destination details such as destination cluster name, SVM name, and volume name.
  • SnapVault destination details such as destination cluster name, SVM name, volume name, and SnapVault policy name.

Steps

  1. Log in to WFA by providing the necessary credentials.
  2. Click Portal > Data Protection > Manage SnapMirror-SnapVault Cascade Relationship.
    Tip: You can use the filter () to locate the workflow.
  3. Click the Execute () icon.
    The Execute Workflow 'Manage SnapMirror-SnapVault Cascade Relationship' dialog box is displayed.
  4. Provide the SnapMirror source details such as the name or IP address of the primary cluster, name of the source SVM, and name of the source volume.
  5. Provide the SnapMirror destination details such as the name or IP address of the secondary cluster, name of the destination SVM, and name of the destination volume.
  6. Provide the SnapVault destination details such as the name or IP address of the tertiary cluster, name of the destination SVM, and name of the destination volume that is part of the SnapMirror relationship.
  7. Specify the name of the SnapMirror policy associated with the volume in the SnapVault relationship.
  8. Optional: Click Preview to validate your workflow before executing it.
  9. Click Execute.
    You can also schedule the workflow for execution at a later date and time by selecting the Choose Date and Time for Execution check box.

Configuring the Microsoft Windows Task Scheduler

You must configure your Windows task Scheduler to match the schedule of the tertiary cluster. You can do so by using the PowerShell script provided along with the workflow.

Before you begin

  • You must have imported and run the Manage_SnapMirrror_SnapVault_Cascade_Relationship.ps1 script.

    You can access the script file from here.

  • You must have the following input parameters available:
    • Time (one time, daily, weekly, or monthly) of executing the script
    • IP address of the WFA server
    • The txt file that contains the encrypted WFA credentials
    • IP addresses of the primary, secondary, and tertiary clusters
    • Names of the primary, secondary, and tertiary volumes
    • Names of the primary, secondary, and tertiary SVMs
    • SnapVault policy name

About this task

This configuration task is applicable to a single SnapMirror-SnapVault cascade relationship. However, for another cascade relationship with different volumes, you should repeat the steps to configure the Task Scheduler.

Steps

  1. Open the Microsoft Windows Task Scheduler by clicking Start > Run > Task Scheduler.
  2. In the Actions tab, click Create Task.
  3. In the Create Task dialog box, under the General tab, provide an appropriate name for your scheduler.
  4. Click Triggers > New.
  5. In the New Trigger dialog box, provide details such as the time of executing the script, task delay time, task repetition time, when to stop the task, and the task expiry time, and then click OK.
  6. Click Actions, and then click New.
  7. In the New Action dialog box, click Browse and locate your PowerShell script, and then click OK.
  8. In the Add arguments field, provide the following space-separated arguments, and then click OK: powershell Manage_SnapMirror_SnapVault_Cascade_Relationship.ps1 -WfaServerIP <WFA_server_IP address> -WfaServerUserName <WFA_Server_User_name> -WfaServerEncryptedPassword <file_containing_encrypted_WFA_Server_password.txt> Manage SnapVault SnapMirror Cascade Relationship -PrimaryCluster <cluster_IP_address> -SecondaryCluster <cluster_IP_address> -TertiaryCluster <cluster_IP_address> -PrimaryVolume <primary_volume_name> -SecondaryVolume <secondary_volume_name> -TertiaryVolume <tertiary_volume_name> -PrimarySVM <primary_SVM_name> -SecondarySVM <secondary_SVM_name> -TertiarySVM <tertiary_SVM_name> -SnapVaultPolicyName <SnapVault_policy_name>
    To encrypt the WFA server password, your plain text password must first be converted into a secure string using the Powershell ConvertTo-SecureString cmdlet, and then the string must be converted into an encrypted string using the PowerShell ConvertFrom-SecureString cmdlet with no key option.
  9. In the Create Task dialog box, click OK.