vm only with 33gb used disk uses 100GB with backup

telvenes

Active Member
Oct 5, 2020
32
2
28
35
I have a centos 7 server running with only 33gb used disk. but the backup is 100gb as the totalt disk size. why?
 
Do you mean the size shown in the GUI of PBS when you are in the Datastore -> {store} -> Content panel?

That shows the size of the Backup if you would restore it. Not accounting for any possible sparse allocation.

How much space the actual backup takes is hard to calculate because all backups are stored in chunks which are deduplicated. Meaning if two or more backups share exactly the same chunk, they will not store it separately but will just reference it. Once no backup references a chunk anymore, it can be removed in a garbage collection run.

The whole deduplication and usage accounting has been discussed here in the forum quite a bit already. The TL;DR is that it is a bit more complicated and more unpredictable than storing a full backup and following incremental backups because if no data changes, the only size change is in the backup's metadata which references the chunks for the backup.

The "Deduplication Factor" in the "Datastore -> {store} -> Summary panel gives you an overview of how much chunks are being used in more than one backup.
 
not sure where to se actualy size in the pbs for each vm but the other vms stops transfering when actual used size has beeen reach but one transfer to 100% of vm
 
Does not have anything to do with the pbs i think. Vm only uses 33gb of totalt 100. if i do regulary backup with proxmox the backup is 90gb. why?
 
Does not have anything to do with the pbs i think. Vm only uses 33gb of totalt 100. if i do regulary backup with proxmox the backup is 90gb. why?
One reason could be that the file system inside the VM is only referencing 33GB but there might be old data that is not in use any more but still present on the disk. If the storage and the VM config support discard / trim, you can run fstrim -a for Linux guests or Optimize-Volume -DriveLetter <YourDriveLetter> -ReTrim -Verbose for Windows.

This will tell the underlying storage which areas are not in use anymore and can be nulled. Thus, the backup should see fewer data on the VM disk.

For this to work, you have to have "Discard" enabled in the VM disks setting and the bus/type of the disk needs to be SCSIO (with VirtIO SCSI Controller) or VirtIO Block if I remember correctly.
 
scsi0: dirty-bitmap status: OK (80.7 GiB of 100.0 GiB dirty)

1611684090997.png

1611684134971.png

seems like this did not solve it. what you are saying is something i also have thought before but seems like it did not help.
 

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!