Use this when scheduling storage snapshots with retention and pruning.
Snapshot Automation · Storage Automation
Snapshot automation creates snapshots on a schedule with retention, such as zfs-auto-snapshot, sanoid or array schedules, and prunes old ones so they do not fill the pool.
1. Snapshot automation: schedules, retention, pruning, application consistency.
2. Policy tools (sanoid, snapper, array schedules).
3. Monitor counts and space.
4. Not backups alone.
5. Test restores.
schedule → snapshot → retention prune
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- No pruning, filling the pool.
- Treating snapshots on the same pool as backups.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Schedule snapshots with retention.
- Prune old snapshots.
- Snapshots alone are not backups.
zfs snapshot <ds>@auto-$(date +%F)— createsanoid --cron— policy-based snapshots- Retention/pruning — cleanup
ReferenceWhy it matters1 section · depth on demand
What it is
Snapshot automation creates and prunes snapshots on a schedule with clear retention.
ReferenceHow it works1 section · depth on demand
How it works
Snapshot tools (sanoid, zfs-auto-snapshot, LVM/vendor schedulers) create snapshots on schedules and prune by retention rules such as 24 hourly, 7 daily, 4 weekly.
ReferenceImportant terms & boundaries1 section · depth on demand
Example
zfs snapshot tank/app@auto-$(date +%F_%H%M)
zfs list -t snapshot -o name,used -s creation | tail
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Storage Automation > Snapshot Automation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.ansible.com/ansible/latest/collections/community/general/lvol_module.html · confidence 94%