Page MenuHomeDevCentral

Setup ZFS snapshots for home volumes
ClosedPublic

Authored by dereckson on Mar 24 2023, 00:46.
Tags
None
Referenced Files
F3906750: D2906.diff
Wed, Dec 18, 05:49
F3906748: D2906.id.diff
Wed, Dec 18, 05:49
Unknown Object (File)
Tue, Dec 17, 05:25
Unknown Object (File)
Mon, Dec 16, 05:43
Unknown Object (File)
Sun, Dec 15, 03:20
Unknown Object (File)
Thu, Dec 12, 21:47
Unknown Object (File)
Thu, Dec 12, 10:01
Unknown Object (File)
Wed, Dec 11, 18:10
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.