Skip to main content
SnapCenter Plug-in for VMware vSphere 6.0

Create backup policies for VMs and datastores

Contributors netapp-jani

You must create backup policies before you use the SnapCenter Plug-in for VMware vSphere to back up VMs and datastores.

Before you begin
  • You must have read the prerequisites.

  • You must have secondary storage relationships configured.

    • If you are replicating Snapshots to a mirror or vault secondary storage, the relationships must be configured and the SnapCenter administrator must have assigned the storage VMs to you for both the source and destination volumes.

    • To successfully transfer Snapshots to secondary storage for Version-FlexibleMirror relationships on a NFS or VMFS datastore, make sure that the SnapMirror policy type is Asynchronous Mirror and that the "all_source_snapshots" option is checked.

    • When the number of Snapshots on the secondary storage (mirror-vault) reaches the maximum limit, the activity to register backup and apply retention in the backup operation fails with the following error: This Snapshot is currently used as a reference Snapshot by one or more SnapMirror relationships. Deleting the Snapshot can cause future SnapMirror operations to fail.

      To correct this issue, configure the SnapMirror retention policy for secondary storage to avoid reaching the maximum limit of Snapshots.

      For information about how administrators assign resources to users, refer to SnapCenter information on using role-based access control.

  • If you want VM-consistent backups, you must have VMware tools installed and running. VMware tools is needed to quiesce VMs. VM-consistent backups are not supported for vVol VMs.

  • SnapMirror active sync enables business services to continue operating even through a complete site failure, supporting applications to fail over transparently using a secondary copy.

    Note SnapMirror active sync is supported only for VMFS Datastores.

    To protect a VMFS datastore on a SnapMirror active sync deployment, as SnapCenter administrator you need to:

    • Configure clusters and mediator as described in the technical report: TR-4878: SnapMirror active sync (formerly SMBC).

    • Add the volume associated with the VMFS datastore to the consistency group and create a data protection relationship using AutomatedFailOver or AutomatedFailOverDuplex protection policy between two ONTAP storage systems. AutomatedFailOverDuplex policy is supported from ONTAP 9.15.1 release onwards.

      Note In fan-out configuration, consistency group is not supported for tertiary site.
About this task

Most of the fields on these wizard pages are self-explanatory. The following information describes some of the fields for which you might require guidance.

Steps
  1. In the left navigator pane of the SCV plug-in, click Policies.

  2. On the Policies page, select Create to start the wizard.

  3. On the New Backup Policy page, select the vCenter Server that will use the policy, and then enter the policy name and a description.

    • Linked mode

      In linked mode, each vCenter has a separate virtual appliance. Therefore, you can use duplicate names across vCenters. However, you must create the policy in the same vCenter as the resource group.

    • Unsupported characters

      Do not use the following special characters in VM, datastore, cluster, policy, backup, or resource group names: % & * $ # @ ! \ / : * ? " < > - | ; ' , .

      An underscore character (_) is allowed.

  4. Specify the frequency settings.

    The policy specifies the backup frequency only. The specific protection schedule for backing up is defined in the resource group. Therefore, two or more resource groups can share the same policy and backup frequency but have different backup schedules.

  5. Select Locking Period checkbox to enable Snapshot locking. You can select the Snapshot locking period as Days/Months/Years.

  6. Specify the retention settings.

    Important You should set the retention count to 2 backups or higher if you plan to enable SnapVault replication. If you set the retention count to 1 backup to keep, the retention operation can fail. This is because the first Snapshot is the reference Snapshot for the SnapVault relationship until the newer Snapshot is replicated to the target.
    Note The maximum retention value is 1018 backups for resources on ONTAP 9.4 or later, and 254 backups for resources on ONTAP 9.3 or earlier. Backups will fail if retention is set to a value higher than what the underlying ONTAP version supports. This is also true for spanning datastores. If a spanning datastore includes resources on both ONTAP 9.3 and earlier and on ONTAP 9.4 and later, make sure you set the retention value below 254.
  7. In the Replication fields, specify the type of replication to secondary storage, as shown in the following table:

    For this field… Do this…

    Update SnapMirror after backup

    Select this option to create mirror copies of backup sets on another volume that has a SnapMirror relationship to the primary backup volume.
    If a volume is configured with a mirror-vault relationship, you must select only the Update SnapVault after backup option if you want backups copied to the mirror-vault destinations.

    Note This option is supported for datastores in FlexGroup volumes in SnapCenter Plug-in for VMware vSphere 4.5 and later.
    Note To protect VMFS datastore on SnapMirror active sync deployment, you need to complete the prerequisites mentioned in the Before you begin section and enable Update SnapMirror after backup.

    Update SnapVault after backup

    Select this option to perform disk-to-disk backup replication on another volume that has a SnapVault relationship to the primary backup volume.

    Important If a volume is configured with a mirror-vault relationship, you must select only this option if you want backups copied to the mirror-vault destinations.
    Note This option is supported for datastores in FlexGroup volumes in SnapCenter Plug-in for VMware vSphere 4.5 and later.

    Snapshot label

    Enter an optional, custom label to be added to SnapVault and SnapMirror Snapshots created with this policy.
    The Snapshot label helps to distinguish Snapshots created with this policy from other Snapshots on the secondary storage system.

    Note A maximum of 31 characters is allowed for Snapshot labels.
  8. Optional: In the Advanced fields, select the fields that are needed. The Advanced field details are listed in the following table.

    For this field… Do this…

    VM consistency

    Check this box to quiesce the VMs and create a VMware snapshot each time the backup job runs.

    This option is not supported for vVols. For vVol VMs, only crash-consistent backups are performed.

    Important You must have VMware tools running on the VM to perform VM consistent backups. If VMware tools is not running, a crash-consistent backup is performed instead.
    Note When you check the VM consistency box, backup operations might take longer and require more storage space. In this scenario, the VMs are first quiesced, then VMware performs a VM consistent snapshot, then SnapCenter performs its backup operation, and then VM operations are resumed.
    VM guest memory is not included in VM consistency Snapshots.

    Include datastores with
    independent disks

    Check this box to include in the backup any datastores with independent disks that contain temporary data.

    Scripts

    Enter the fully qualified path of the prescript or postscript that you want the SnapCenter Plug-in for VMware vSphere to run before or after backup operations. For example, you can run a script to update SNMP traps, automate alerts, and send logs. The script path is validated at the time the script is executed.

    Note Prescripts and postscripts must be located on the virtual appliance VM.
    To enter multiple scripts, press Enter after each script path to list
    each script on a separate line. The character ";" is not allowed.
  9. Click Add.

    You can verify that the policy is created and review the policy configuration by selecting the policy in the Policies page.