Page MenuHomeDevCentral

Setup ZFS snapshots for home volumes
ClosedPublic

Authored by dereckson on Mar 24 2023, 00:46.
Tags
None
Referenced Files
F3748153: D2906.id7406.diff
Sat, Nov 16, 06:54
F3747881: D2906.id7406.diff
Sat, Nov 16, 05:23
F3746772: D2906.id.diff
Fri, Nov 15, 23:07
F3745765: D2906.id.diff
Fri, Nov 15, 16:50
Unknown Object (File)
Fri, Nov 15, 11:14
Unknown Object (File)
Thu, Nov 14, 03:57
Unknown Object (File)
Wed, Nov 13, 03:56
Unknown Object (File)
Wed, Nov 13, 03:56
Subscribers
None

Details

Summary

This allows to go back in time to recover or compare files.

Especially useful on devservers, it can be useful too on other servers,
and allow an unified setup for FreeBSD machines.

Fixes T1312.

Test Plan

Tested on WindRiver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
zfs-snapshots
Build Status
Buildable 4584
Build 4852: arc lint + arc unit

Event Timeline

dereckson created this revision.
dereckson retitled this revision from Setup ZFS snapshots for home volumes This allows to go back in time to recover or compare files. Especially useful on devservers, it can be useful too on other servers, and allow an unified setup for FreeBSD machines. to Setup ZFS snapshots for home volumes.Mar 24 2023, 00:47
dereckson edited the summary of this revision. (Show Details)
dereckson added inline comments.
roles/core/storage/snapshots.sls
11

zfstools-0.3.6_2 OpenSolaris-compatible auto snapshotting for ZFS

This revision is now accepted and ready to land.Mar 24 2023, 00:54

ZFS property no-op on WindRiver, so the state is idempotent:

$ salt windriver state.sls_id arcology/usr/home/dereckson roles/core/users test=True
windriver:
----------
          ID: arcology/usr/home/dereckson
    Function: zfs.filesystem_present
      Result: True
     Comment: filesystem arcology/usr/home/dereckson is uptodate
     Started: 00:56:40.765443
    Duration: 39.537 ms
     Changes:

Summary for windriver
------------
Succeeded: 1
Failed:    0
------------
Total states run:     1
Total run time:  39.537 ms
This revision was automatically updated to reflect the committed changes.