ZFS snapshots

dean.viens

Dabbler
Joined
Feb 23, 2023
Messages
32
Hello all,
i use a few pools that will typically be static and never change. in this case does it make sense to have any snapshots? or keep it at <80% full?
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Snapshots or not, you should keep your pool utilization to less than 80%.
Snapshots, by itself, does not take any space. It's only when the dataset changes that it starts taking up space.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Snapshots can be useful for accidental file deletions, ransomware and failed file migration / cleanups. As Whattteva said, they take very little space until their is a change in the parent dataset.


In some exceptionally rare cases, like media pools or other static data, you can get close to 100% utilization. This comes with the potential for issues. Their are ways to mitigate the resultant problems.

Like make a dataset with 10MB reservation, but keep it empty. This is in case you fill the pool up completely, you can remove the reservation and suddenly have enough space to clean up.

Or, when dealing with media files, you put the files on this media pool in largest to smallest order. This can help keep fragmentation down, and allow ZFS to find space easier towards the full mark. But, remember doing so, the last files can be more fragmented, thus slower to access. This might not mater for simple DVD or Music files, which would be smaller than Bluray / HD video files.
 
Top