[SOLVED] Anzeige belegter Festplattenplatz auf ZFS Pool nicht korrekt?

cwt

Active Member
May 30, 2022
460
115
43
Guten Morgen zusammen.

Ich wundere mich gerade über die Anzeige eines PVE bezüglich der usage auf einem ZFS Pool (Poolname -> Summary).

Auf dem System sind 4x PM1735 3.6TB als ZFS RAID1+0 angelegt, Quota für den Pool (Thin Provisioned Storage mit 256K blocksize) ist auf 5.1TB gesetzt. Darauf laufen 3 Windows VMs. Auch alles flott und performant.

Der PVE zeigt mir bei der usage gerade mal 5.57% an (284.80GB of 5.11TB). Allerdings belegen die unterschiedlichen Windows VMs laut Gast OS wesentlich mehr. Die Größe der jeweiligen VM Disks wird wiederum korrekt angezeigt (Poolname -> VM Disks).

Wie kalkuliert der PVE das denn in der Übersichtsseite? Oder ist das bedingt durch die Natur des ZFS?

Danke & LG

pve1.png
pve2.png
 
Guten Morgen!

Das ist ganz einfach die Natur von ZFS, da du ja thin provisioning an hast. :) In der Übersichtsseite sollte also der tatsächlich benutzte Speicher stehen. Auch wenn eine VM disk dann z.B. 644.25 GB groß werden kann wird trotzdem nicht der ganze Speicher vorreserviert - eben dank thin provisioning. Es ist also nur der minimal benötigte Speicher zu jeder Zeit alloziert.

Zusätzlich, wenn du ein bisschen stöbern möchtest, kannst du als root auf deinem host in die shell gehen und mal zfs get all | grep compress ausführen. Da solltest du dann jeweils die compressratio, compression und refcompressratio Eigenschaften sehen.

Aus man zfs-set:
compressratio
For non-snapshots, the compression ratio achieved for the used space of this dataset, expressed as a multiplier. The used property includes descendant datasets, and, for clones, does not include the space shared with the origin snapshot. For snapshots, the compressratio is the same as the refcompressratio property. Compression can be turned on by running: zfs set compression=on dataset. The default value is off.

refcompressratio
The compression ratio achieved for the referenced space of this dataset, expressed as a multiplier. See also the compressratio property.

Standardmäßig ist die Komprimierung des zpools bei der Installation von PVE an. Das hat den Vorteil, dass du einen höheren effektiven Speicherplatz hast, jedoch ohne bzw. fast keine Leistungseinbuße. Falls du ein simples Szenario ansehen willst, gibt's dazu auch einen post auf Reddit. Wegen dieser Komprimierung wirst du nochmals einen Unterschied beim belegten Speicher feststellen, je nachdem was für Daten auf deinen VMs sitzen.
 
Last edited:
zfs list -o space um die unterschiedlichen größen anzuzeigen
 
  • Like
Reactions: Max Carrara
Danke an Euch beide für die Antworten. Die compression hatte ich schlichtweg ausgeblendet, dann macht das natürlich Sinn
 
  • Like
Reactions: Max Carrara

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!