meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
zfs [2015/03/24 10:05] – niziak | linux:fs:zfs [2020/04/19 14:25] – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ZFS ====== | ====== ZFS ====== | ||
+ | |||
+ | [[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. | + | |
- | - whole data pool space is shared between dataset (no fixed partition size problem). Size of data set can be limited using quota | + | |
- | - compression | + | |
- | - block level deduplication (not usable for emails with attachment, where attachment are shifted to different offset) | + | |
Proposed use case: | 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 ===== | ===== 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 21: | Line 45: | ||
</ | </ | ||
- | < | + | < |
# zpool status | # zpool status | ||
pool: INBOX | pool: INBOX | ||
Line 40: | Line 64: | ||
Dataset " | Dataset " | ||
- | < | + | < |
# zfs list | # zfs list | ||
NAME USED AVAIL REFER MOUNTPOINT | NAME USED AVAIL REFER MOUNTPOINT | ||
Line 164: | Line 188: | ||
|-- | |-- | ||
|squashfs | |squashfs | ||
- | |||
Line 171: | Line 194: | ||
- | ====== References: ====== | + | |
+ | <code bash> | ||
+ | zfs get compressratio | ||
+ | </ | ||
+ | |||
+ | ===== References: ===== | ||
+ | [[http:// | ||
+ | [[https:// | ||
[[http:// | [[http:// |