Table of ContentsView in Frames

Preserving Snapshot copies for SnapVault relationships after reaching retention limit

After the Snapshot copy retention limit defined by a SnapMirror policy for a SnapVault relationship is reached, the oldest Snapshot copy is automatically deleted to create space before transferring a new Snapshot copy. You can configure or modify the policy rule to preserve all Snapshot copies.

About this task

You can configure or modify the policy rule to preserve all Snapshot copies when you create the SnapMirror policy rule, or you can modify a previously created SnapMirror policy. Configuring or modifying the policy rule to preserve Snapshot copies causes incremental updates to the SnapVault secondary to fail after Snapshot copies reach the retention count.

Steps

  1. Configure or modify the policy rule to preserve Snapshot copies by using the snapmirror policy add-rule command or the snapmirror policy modify-rule command with the -preserve parameter.
    Example
    The following example configures the XDPDefault policy rule to preserve the 40 sm_created Snapshot copies that you want to retain.
    cluster1::> snapmirror policy add-rule -vserver vs1 -policy XDPDefault 
    -snapmirror-label sm_created -keep 40 -preserve true
    
    Example
    The following example modifies the XDPDefault policy rule to preserve the 40 sm_created Snapshot copies that you want to retain.
    cluster1::> snapmirror policy modify-rule -vserver vs1 -policy XDPDefault 
    -snapmirror-label sm_created -preserve true
    
  2. Optionally, check the policy rules to ensure that you enabled the -preserve parameter by using the snapmirror policy show command with the -instance parameter:
    Example
    cluster1::> snapmirror policy show -instance
    
                       Vserver: vs1
        SnapMirror Policy Name: XDPDefault
                  Policy Owner: cluster-admin
                   Tries Limit: 8
             Transfer Priority: normal
     Ignore accesstime Enabled: false
       Transfer Restartability: always
                       Comment: Default policy for XDP relationship with daily and weekly rules.
         Total Number of Rules: 3
                    Total Keep: 139
                         Rules: Snapmirror-label                 Keep Preserve Warn
                                -------------------------------- ---- -------- ----
                                daily                               7 false       0
                                weekly                             52 false       0
                                sm_created                         40 true        0