User Tools

Site Tools


zfs:filesystems:set_properties_for_a_filesystem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
zfs:filesystems:set_properties_for_a_filesystem [2021/10/13 13:31] peterzfs:filesystems:set_properties_for_a_filesystem [2021/10/13 22:09] (current) – [Deduplication] peter
Line 5: Line 5:
 ---- ----
  
-==== Compression ====+===== Compression =====
  
 <code bash> <code bash>
Line 20: Line 20:
  
 <code bash> <code bash>
-sudo zfs set compression=gzip-9 mypool+sudo zfs set compression=gzip-9 testpool
 </code> </code>
  
Line 26: Line 26:
  
 <code bash> <code bash>
-sudo zfs set compression=lz4 mypool+sudo zfs set compression=lz4 testpool
 </code> </code>
  
Line 39: Line 39:
 ---- ----
  
-==== Copies / Ditto Blocks ====+===== Copies / Ditto Blocks =====
  
 Ditto blocks create more redundant copies of data to copy, just for more added redundancy. Ditto blocks create more redundant copies of data to copy, just for more added redundancy.
Line 58: Line 58:
 ---- ----
  
-==== Deduplication ====+===== Deduplication =====
  
 ZFS dedup will discard blocks that are identical to existing blocks and will instead use a reference to the existing block. ZFS dedup will discard blocks that are identical to existing blocks and will instead use a reference to the existing block.
Line 73: Line 73:
 **NOTE:**  There are pros and cons to deduping. **NOTE:**  There are pros and cons to deduping.
  
-  * Generally, Deduplication is almost never worth the performance penalty. +  * Generally, De-duplication is almost never worth the performance penalty. 
  
 </WRAP> </WRAP>
Line 79: Line 79:
 ---- ----
  
-==== Quota ====+===== Mount Point ===== 
 + 
 +<code bash> 
 +zfs set mountpoint=/test testpool/projects 
 +df -h |grep /test 
 +</code> 
 + 
 +---- 
 + 
 +===== Quota =====
  
 <code bash> <code bash>
Line 87: Line 96:
 <WRAP info> <WRAP info>
 **NOTE:**  This sets a maximum quota of 10 gigabytes. **NOTE:**  This sets a maximum quota of 10 gigabytes.
-</WRAP> 
  
 +  * The Filesystem cannott use more than this amount.
 +
 +</WRAP>
  
 ---- ----
 +
 +===== Reservations =====
 +
 +<code bash>
 +sudo zfs set reservation=200m testpool/tmp
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  This much space is reserved for the Filesystem.
 +
 +  * It will not be available to other Filesystems.
 +  * When a Quota is defined first, a reservation cannot be higher than quota.
 +
 +</WRAP>
  
  
zfs/filesystems/set_properties_for_a_filesystem.1634131871.txt.gz · Last modified: 2021/10/13 13:31 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki