Table of ContentsView in Frames

Preserving older SnapVault Snapshot copies on SnapVault secondary volumes

Data ONTAP 7.3.2 and later enable you to preserve the older SnapVault Snapshot copies on the SnapVault secondary volumes. The preserved SnapVault Snapshot copies are not deleted automatically even if the maximum limit for a specified schedule is reached. If required, delete them manually.

About this task

Step

  1. You can prevent automatic deletion of SnapVault Snapshot copies at the backup schedule level or at the global level in a storage system.
    If you want to... Then enter the following command...
    Prevent automatic deletion of the SnapVault Snapshot copies at the backup schedule level snapvault snap sched -x -o preserve=on,warn=warn_count vol_name snap_name n@mon-fri@0-23
    • -x—specifies the transfer of new data from all primary paths before creating the SnapVault Snapshot copy.
    • -o—sets user-configurable options for this SnapVault Snapshot copy schedule.
    • preserve—can take one of the following values.
      • on—Creates and preserves the SnapVault archive Snapshot copies until the retention limit is reached. Thereafter, SnapVault does not create archive Snapshot copies.
      • off—Automatically deletes the oldest archived SnapVault Snapshot copy to create a new Snapshot copy when the number of Snapshot copies reaches the configured limit in the SnapVault schedule.
      • default—The preserve setting depends on the global snapvault.preservesnap setting.
    • warn—sends out the warning EMS and SNMP alerts when the remaining number of SnapVault scheduled Snapshot copies for a target reaches the warn_count limit set. This option can have a value from 0 to n - 1.
    • n@mon-fri@0-23 is the number of SnapVault Snapshot copies to preserve along with the list of hours or days and is the schedule to trigger the SnapVault target snapshot creation.
    Note: During an upgrade from an earlier Data ONTAP release, the preserve option at the individual backup schedule level is set to default and warn to 0. During a revert operation, all the unknown options are ignored and cleaned up from the registry.
    For information about snapvault sched command options, see the na_snapvault(1) man page.
    Prevent auto deletion of SnapVault Snapshot copies at the global level in a system options snapvault.preservesnap on

    on—After reaching the retention limit, SnapVault does not automatically delete the oldest SnapVault Snapshot copies to make space available for new SnapVault Snapshot copies. Instead, SnapVault aborts the creation of new SnapVault Snapshot copies. SnapVault executes according to this global option setting when the preserve option is not specified or is set to default for a given SnapVault schedule.

    offSnapVault executes according to the option set at the level of backup schedule.
    Note: A backup schedule-level setting of the preserve option takes precedence over the global snapvault.preservesnap setting.

Preserving SnapVault Snapshot copies on the SnapVault secondary system

For example, you want to create and preserve up to 250 SnapVault Snapshot copies and display a warning message when the number of SnapVault Snapshot copies reaches 240. Because the system does not backup any more SnapVault Snapshot copies once the configured limit for the specified schedule is reached, the warning message is required. The following command enables you to preserve 250 SnapVault Snapshot copies and issue the warning message when the number of SnapVault Snapshot copies reaches 240:

snapvault snap sched -x -o preserve=on,warn=10 vol1 sv_nightly 250@-