Configuring Automatic Snapshot Retention on a Target (CLI)
Use this procedure to set a different number of retained automatic snapshots on the replication target than what was set on the source appliance. Before performing this procedure, you must set a replication action on a project or share, and schedule automatic snapshots.
When performing this task, modify the replication action and the snapshot schedule from the appropriate project or share. If the replication action and snapshot schedule are set at different levels, edit the replication action at the same level where the schedule is configured, as shown in the following table:
Action | Snapshot Schedule | Modify automatic snapshot retention on: |
---|---|---|
Project level |
Project level |
Action configured at the project level. |
Share level |
Share level |
Action configured at the share level. |
Project level |
Share level |
Action visible at the share level. (Project-level action inherited by share.) |
Share level |
Project level |
Action configured at the share level. |
See Replication Automatic Snapshot Management for more information.
Before You Begin
Before configuring automatic snapshot retention on a target, you must first do the following:
-
Create a replication action on a project or share: Creating a Replication Action (CLI).
-
Create an automatic snapshot schedule for the project or share: Scheduling Snapshots (CLI).
To use the snapshot retention hold feature, apply deferred update "Support for Snapshot Retention." For information about deferred updates, see Deferred Updates in Oracle ZFS Storage Appliance Customer Service Manual, Release OS8.8.x.
The following user role authorizations are required to make changes to a retention policy:
-
Modify an automatic snapshot schedule:
scheduleSnap
-
Modify the retention hold value from
off
tolocked
:scheduleLockedSnap
-
Modify the retention hold value from
locked
tooff
:releaseSnapRetention