ZFS: Difference between revisions

imported>Sjau
imported>Mic92
note about reservations
Line 66: Line 66:


You can tweak the interval (defaults to once a week) and which pools should be scrubbed (defaults to all).
You can tweak the interval (defaults to once a week) and which pools should be scrubbed (defaults to all).
== Reservations ==
Since zfs is a copy-on-write filesystem even for deleting files disk space is needed. Therefore it should be avoided
to run out of disk space. Luckily it is possible to reserve disk space for datasets to prevent this.
To enable reservations pick any dataset of your and do:
<syntaxhighlight lang="console">
$ zfs set reservation=1G zroot # reserves enough disk space to have room for cleanups/deletion
</syntaxhighlight>
where <code>zroot</code> should be replaced by a dataset in your pool.


== How to use the auto-snapshotting service ==
== How to use the auto-snapshotting service ==