zfs:filesystems:set_properties_for_a_filesystem
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
zfs:filesystems:set_properties_for_a_filesystem [2021/10/13 13:31] – peter | zfs: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 | + | sudo zfs set compression=gzip-9 |
</ | </ | ||
Line 26: | Line 26: | ||
<code bash> | <code bash> | ||
- | sudo zfs set compression=lz4 | + | sudo zfs set compression=lz4 |
</ | </ | ||
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: | **NOTE: | ||
- | * Generally, | + | * Generally, |
</ | </ | ||
Line 79: | Line 79: | ||
---- | ---- | ||
- | ==== Quota ==== | + | ===== Mount Point ===== |
+ | |||
+ | <code bash> | ||
+ | zfs set mountpoint=/ | ||
+ | df -h |grep /test | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Quota ===== | ||
<code bash> | <code bash> | ||
Line 87: | Line 96: | ||
<WRAP info> | <WRAP info> | ||
**NOTE: | **NOTE: | ||
- | </ | ||
+ | * The Filesystem cannott use more than this amount. | ||
+ | |||
+ | </ | ||
---- | ---- | ||
+ | |||
+ | ===== Reservations ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo zfs set reservation=200m testpool/ | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * It will not be available to other Filesystems. | ||
+ | * When a Quota is defined first, a reservation cannot be higher than quota. | ||
+ | |||
+ | </ | ||
zfs/filesystems/set_properties_for_a_filesystem.1634131871.txt.gz · Last modified: 2021/10/13 13:31 by peter