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 09:48] – niziak | linux:fs:zfs [2021/05/10 20:42] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ZFS ====== | ====== ZFS ====== | ||
- | ===== Creating | + | [[https:// |
+ | |||
+ | [[https:// | ||
+ | |||
+ | 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. | ||
+ | * whole data pool space is shared between | ||
+ | * compression | ||
+ | * 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: | ||
+ | POOL created on encrypted LUKS block device. | ||
< | < | ||
+ | POOL | ||
+ | |-- /filer (quota) | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | | ||
+ | |-- /home (compression, | ||
+ | +-- /var (quota) | ||
+ | +- log (compression) | ||
+ | </ | ||
+ | |||
+ | ===== ZFS implementations ===== | ||
+ | |||
+ | ZFS-Fuse 0.7 is using old pool version 23, where [[http:// | ||
+ | [[http:// | ||
+ | |||
+ | |||
+ | |||
+ | ===== Creating ZFS dataset ===== | ||
+ | |||
+ | <code bash> | ||
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 13: | Line 54: | ||
</ | </ | ||
- | < | + | < |
# zpool status | # zpool status | ||
pool: INBOX | pool: INBOX | ||
Line 32: | Line 73: | ||
Dataset " | Dataset " | ||
- | < | + | < |
# zfs list | # zfs list | ||
NAME USED AVAIL REFER MOUNTPOINT | NAME USED AVAIL REFER MOUNTPOINT | ||
Line 156: | Line 197: | ||
|-- | |-- | ||
|squashfs | |squashfs | ||
- | |||
Line 163: | Line 203: | ||
- | ====== References: ====== | + | |
+ | <code bash> | ||
+ | zfs get compressratio | ||
+ | </ | ||
+ | |||
+ | ===== References: ===== | ||
+ | [[http:// | ||
+ | [[https:// | ||
[[http:// | [[http:// |