You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/prune.rst
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ Example Configuration:
50
50
regex: "^manual_.*"
51
51
52
52
.. DANGER::
53
+
53
54
You might have **existing snapshots** of filesystems affected by pruning which you want to keep, i.e. not be destroyed by zrepl.
54
55
Make sure to actually add the necessary ``regex`` keep rules on both sides, like with ``manual`` in the example above.
55
56
@@ -71,6 +72,14 @@ It only makes sense to specify this rule for the ``keep_sender``.
71
72
The reason is that, by definition, all snapshots on the receiver have already been replicated to there from the sender.
72
73
To determine whether a sender-side snapshot has already been replicated, zrepl uses the :ref:`replication cursor bookmark <replication-cursor-and-last-received-hold>` which corresponds to the most recent successfully replicated snapshot.
73
74
75
+
.. ATTENTION::
76
+
77
+
If you use ``not_replicated`` in your pruning rules, make sure to :ref:`monitor <monitoring>` replication.
78
+
If your replication gets stuck then ``not_replicated`` causes snapshots to pile uip on the sender.
79
+
ZFS and especially the ``zfs`` management command are known to degrade in performance with a lot of snapshots.
80
+
Such degradation impacts zrepl, any other scripts, and human ability to manage your zpool.
0 commit comments