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.
Suppose you want to preserve 250 nightly SnapVault Snapshot copies for five years and the number of SnapVault scheduled Snapshot copies reaches 250, SnapVault automatically deletes the older Snapshot copies to make space for the new SnapVault Snapshot copy. This behavior is not what you want. You want to preserve all the SnapVault Snapshot copies and display a message to indicate that you have reached the limit of SnapVault Snapshot copies for a specified SnapVault Snapshot copy schedule.
When you enable this option, SnapVault does not delete an older SnapVault Snapshot copy to create a new SnapVault Snapshot copy when the maximum limit of the schedule is reached.
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
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. off—SnapVault 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.
|
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@-