zfs:filesystems:set_properties_for_a_filesystem
This is an old revision of the document!
Table of Contents
ZFS - Filesystems - Set Properties for a Filesystem
Many Properties can be set.
Compression
sudo zfs set compression=on testpool/projects
Deduplication
ZFS dedup will discard blocks that are identical to existing blocks and will instead use a reference to the existing block.
- This saves space on the device but comes at a large cost to memory.
- The dedup in-memory table uses ~320 bytes per block.
- The greater the table is in size, the slower write performance becomes.
sudo zfs set dedup=on testpool/projects
NOTE: There are pros and cons to deduping.
- Generally, Deduplication is almost never worth the performance penalty.
Copies / Ditto Blocks
Ditto blocks create more redundant copies of data to copy, just for more added redundancy.
- With a storage pool of just one device, ditto blocks are spread across the device, trying to place the blocks at least 1/8 of the disk apart.
- With multiple devices in a pool, ZFS tries to spread ditto blocks across separate VDEVs.
- 1 to 3 copies can be can be set.
sudo zfs set copies=3 testpool/projects
NOTE: This sets 3 copies on testpool/projects.
Quota
sudo zfs set quota=10G testpool/projects
NOTE: This sets a maximum quota of 10 gigabytes.
zfs/filesystems/set_properties_for_a_filesystem.1634131658.txt.gz · Last modified: 2021/10/13 13:27 by peter