Speicherplatz verbrauch stimmt nach Garbage Collection nicht

The_Think3r

Member
Sep 12, 2020
3
0
6
44
Ich wunderte mich über den Speicherplatz verbrauch auf dem PBS.

Ich habe jetzt bei allen VM und Container alles bis auf 1 Backup gelöscht.
Dann habe ich die Garbage Collection drüber laufen lassen.
Nun sollte ja die Größe maximal die Summe aller Backups sein. Durch die Deduplizierung sollte das deutlich weniger sein.
Egal gehen wir mal von der Maximalen Größe erstmal aus.

Bash:
proxmox-backup-client garbage-collect --repository "root@pam@127.0.0.1:pbspool" | tail -10
Ergebniss:
Code:
processed 99% (202234 chunks)
Removed garbage: 0 B
Removed chunks: 0
Pending removals: 290.635 GiB (in 162345 chunks)
Original data usage: 233.589 GiB
On-Disk usage: 79.658 GiB (34.10%)
On-Disk chunks: 41958
Deduplication factor: 2.93
Average chunk size: 1.944 MiB
TASK OK


Bash:
proxmox-backup-client snapshot list --repository "root@pam@127.0.0.1:pbspool" --output-format json | jq -r '.[] | .size' |  paste -sd+ | bc -l | awk '{print $1/1024/1024/1024}'
Ergebniss:
Code:
233.589GB

Wenn ich mir jetzt aber die Plattenverbrauch anschaue.
Bash:
df -h | grep '/mnt/datastore'
Ergebniss:
Code:
/dev/sdb              448G  372G   75G  84% /mnt/datastore/pbspool

Okay. Nun kommt vielleicht einer auf die Idee da sind andere Dateien noch auf der Platte abgelegt worden.

Bash:
du -cksh /mnt/datastore/pbspool/.chunks
Ergebniss:
Code:
371G    /mnt/datastore/pbspool/.chunks
371G    total

Also Sorry. Für sieht das sehr stark danach aus, dass die Garbage collection nicht richtig aufräumt und da noch alte Chunks rumliegen müssen.
 

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!