ZFS Deduplication Statistik anzeigen

ZFS Deduplication Statistik anzeigen

 

um den aktuellen ZFS Status sich ausgeben zu lassen gibt es mehrere Möglichkeiten.

Die erste Möglichkeit ist es sich den oder die ganzen Pool´s anzeigen zu lassen.
[stextbox id=“bash“]zpool list[/stextbox]

NAME      SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
Storage  10.9T   643G  10.2T     5%  1.04x  ONLINE  /mnt

Die zweite Möglichkeit ist, wenn man in einem Pool mehrere ZFS Volumen oder ZFS Dataset angelegt hat
[stextbox id=“bash“]zfs get compressratio,refcompressratio[/stextbox]

NAME                 PROPERTY          VALUE     SOURCE
Storage              compressratio     1.14x     -
Storage              refcompressratio  1.00x     -
Storage/backup       compressratio     1.46x     -
Storage/backup       refcompressratio  1.46x     -
Storage/esxi01       compressratio     1.00x     -
Storage/esxi01       refcompressratio  1.00x     -
Storage/esxi02       compressratio     1.00x     -
Storage/esxi02       refcompressratio  1.00x     -
Storage/timemachine  compressratio     1.17x     -
Storage/timemachine  refcompressratio  1.17x     -

Leider wird hier schon die Komprimierung mit eingerechnet wenn man diese aktiviert hat.

Die dritte Möglichkeit ist es dich für den ganzen Pool ein DDT Histogramm ausgeben zu lassen.

[stextbox id=“bash“]zdb -DD Storage[/stextbox]

DDT-sha256-zap-duplicate: 111567 entries, size 995 on disk, 1135 in core
DDT-sha256-zap-unique: 4566905 entries, size 375 on disk, 244 in core

DDT histogram (aggregated over all DDTs):

bucket              allocated                       referenced
______   ______________________________   ______________________________
refcnt   blocks   LSIZE   PSIZE   DSIZE   blocks   LSIZE   PSIZE   DSIZE
------   ------   -----   -----   -----   ------   -----   -----   -----
1    4.36M    551G    460G    460G    4.36M    551G    460G    460G
2     101K   12.6G   11.3G   11.3G     212K   26.5G   23.8G   23.8G
4    6.98K    893M    682M    682M    34.0K   4.24G   3.20G   3.20G
8      898    112M   73.9M   73.9M    7.86K   1005M    679M    679M
16      155   19.4M   18.1M   18.1M    3.69K    472M    448M    448M
32      172   21.5M   20.3M   20.3M    6.50K    831M    777M    777M
64       69   8.62M   8.39M   8.39M    7.28K    932M    904M    904M
128        3    384K    137K    137K      568     71M   31.9M   31.9M
256        4    512K    390K    390K    1.49K    191M    143M    143M
512        2    256K     12K     12K    1.70K    217M   9.81M   9.81M
1K        3    384K    146K    146K    3.82K    489M    161M    161M
32K        1    128K    128K    128K    33.5K   4.19G   4.19G   4.19G
Total    4.46M    565G    472G    472G    4.66M    590G    494G    494G

dedup = 1.05, compress = 1.19, copies = 1.00, dedup * compress / copies = 1.25

Hier sieht man dann auch wie viele Blöcke mit welcher Größe referenziert werden.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

*