linux:storage:zfs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:storage:zfs [2021/04/19 13:57] – [Anzeigen des Status von einem oder allen Pools] stone | linux:storage:zfs [2022/01/19 14:15] (current) – [Compression] stone | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| + | |||
| + | |||
| + | ==== ashift ==== | ||
| + | Für einen performanten Zugriff auf die Hardware muss ZFS die Größe der Sektoren der Festplatte (physical block size) kennen. \\ | ||
| + | |||
| + | Wie ermittle ich die Block Size meiner Patten? | ||
| + | < | ||
| + | lsblk -o NAME, | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Anzeigen der aktuellen ashift wertes wenn man schon einen Pool hat | ||
| + | < | ||
| + | zpool get ashift < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Ashift beim erstellen setzten | ||
| + | < | ||
| + | zpool create -o ashift=12 < | ||
| + | </ | ||
| + | |||
| + | |||
| ==== vdev (virtual device) ==== | ==== vdev (virtual device) ==== | ||
| Line 28: | Line 51: | ||
| Bezeichnet ZFS-Dateisysteme, | Bezeichnet ZFS-Dateisysteme, | ||
| - | \\ | ||
| - | **Anzeigen von Datasets und Filesystemen** | ||
| - | < | ||
| - | zfs list | ||
| - | </ | ||
| \\ | \\ | ||
| \\ | \\ | ||
| Line 216: | Line 234: | ||
| zfs-stats -a ??? | zfs-stats -a ??? | ||
| zilstat | zilstat | ||
| + | \\ | ||
| + | |||
| + | ===== Compression ===== | ||
| + | ==== Compression anzeigen ==== | ||
| + | |||
| + | < | ||
| + | zfs get compression < | ||
| + | zfs get all < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | ==== Compression setzten ==== | ||
| + | In den meisten Fällen ist lz4 die beste und schnellste Variante | ||
| + | < | ||
| + | zfs set compression=lz4 < | ||
| + | </ | ||
| + | |||
linux/storage/zfs.1618840675.txt.gz · Last modified: by stone
