Page MenuHomeDevCentral

Setup ZFS snapshots for home volumes
ClosedPublic

Authored by dereckson on Mar 24 2023, 00:46.
Tags
None
Referenced Files
F2851959: D2906.diff
Thu, Apr 25, 23:58
F2850226: D2906.id7404.diff
Thu, Apr 25, 12:01
Unknown Object (File)
Wed, Apr 24, 11:25
Unknown Object (File)
Mon, Apr 22, 03:48
Unknown Object (File)
Sun, Apr 21, 20:21
Unknown Object (File)
Sun, Apr 21, 12:17
Unknown Object (File)
Fri, Apr 19, 20:55
Unknown Object (File)
Thu, Apr 18, 14:51
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 Not Applicable
Unit
Tests Not Applicable

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.