meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
zfs [2015/03/24 10:09] – niziak | linux:fs:zfs [2021/05/10 18:42] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ZFS ====== | ====== ZFS ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
Features: | Features: | ||
- | * data pools (tanks) are abstraction aggregate block devices (simple, mirror, raidz, spares, etc) | + | |
- | * data set is created on data pool or another (parent) data set. | + | * data set is created on data pool or another (parent) data set. |
- | * whole data pool space is shared between dataset (no fixed partition size problem). Size of data set (and its descendents) can be limited using quota | + | * whole data pool space is shared between dataset (no fixed partition size problem). Size of data set (and its descendants) can be limited using quota |
- | * compression | + | * compression |
- | * block level deduplication (not usable for emails with attachment, where attachment are shifted to different offset) | + | * block level deduplication (not usable for emails with attachment, where attachment are shifted to different offset) |
+ | |||
+ | OpenZFS2.0.0 (Dec 20) [[https:// | ||
+ | * Sequential resilver (rebuild only used by data portions) | ||
+ | * Persistent L2ARC cache (survives between reboots) | ||
+ | * ZSTD | ||
+ | * Redacted replication (replicate with some data excluded) | ||
+ | * FreeBSD and Linux unification | ||
Proposed use case: | Proposed use case: | ||
- | POOL created on encypted | + | POOL created on encrypted |
< | < | ||
Line 22: | Line 34: | ||
+- log (compression) | +- log (compression) | ||
</ | </ | ||
+ | |||
+ | ===== ZFS implementations ===== | ||
+ | |||
+ | ZFS-Fuse 0.7 is using old pool version 23, where [[http:// | ||
+ | [[http:// | ||
+ | |||
+ | |||
===== Creating ZFS dataset ===== | ===== Creating ZFS dataset ===== | ||
- | < | + | < |
zpool create INBOX /dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3 | zpool create INBOX /dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3 | ||
</ | </ | ||
- | < | + | < |
# zpool list | # zpool list | ||
NAME SIZE ALLOC | NAME SIZE ALLOC | ||
Line 35: | Line 54: | ||
</ | </ | ||
- | < | + | < |
# zpool status | # zpool status | ||
pool: INBOX | pool: INBOX | ||
Line 54: | Line 73: | ||
Dataset " | Dataset " | ||
- | < | + | < |
# zfs list | # zfs list | ||
NAME USED AVAIL REFER MOUNTPOINT | NAME USED AVAIL REFER MOUNTPOINT | ||
Line 178: | Line 197: | ||
|-- | |-- | ||
|squashfs | |squashfs | ||
- | |||
Line 185: | Line 203: | ||
- | ====== References: ====== | + | |
+ | <code bash> | ||
+ | zfs get compressratio | ||
+ | </ | ||
+ | |||
+ | ===== References: ===== | ||
+ | [[http:// | ||
+ | [[https:// | ||
[[http:// | [[http:// |