Editing a Snapshot Retention Policy (CLI)
Use the following procedure to edit a snapshot retention policy for a filesystem, LUN, or project. Snapshot retention policies are included in both manual snapshots and in automatic snapshot schedules.
After an automatic snapshot with a retention hold has been generated, it is not possible to delete or modify its schedule until all snapshots with a retention hold have expired.
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 a manual snapshot to a stricter hold type (
off
tounlocked
):retainSnap
-
Modify a manual snapshot to a less strict hold type (
unlocked
tooff
):releaseSnapRetention
-
Modify an automatic snapshot schedule:
scheduleSnap
-
Modify the retention hold value for an automatic snapshot:
releaseSnapRetention
For information on editing authorizations for a role, see Editing Authorizations for a Role (CLI). To delete an automatic snapshot schedule, see Removing a Snapshot Schedule (CLI).