Thin provisioned VM backup size

werenzo

Active Member
May 21, 2018
6
1
43
46
Hello to the community,

I was following this thread to find the solution to the problem, but I got different behaviour.

My guest VM is using 13GB on /dev/sda1, here's the configuration

Code:
bootdisk: scsi0
cores: 1
ide2: none,media=cdrom
lock: backup
memory: 4096
name: pippo001
net0: virtio=86:58:CD:B3:A8:29,bridge=vmbr05
net1: virtio=56:F2:DA:7E:EF:B1,bridge=vmbr01
numa: 0
onboot: 1
ostype: l26
scsi0: local-lvm:vm-100-disk-1,discard=on,size=35G
scsihw: virtio-scsi-pci
smbios1: uuid=584228ae-9794-4506-a44b-3c79723fe484
sockets: 4

I did already fstrim, but the size of the backup is around 30GB, here's the backup command with options

Code:
vzdump 110 --mailnotification always --quiet 1 --storage backup --mode snapshot --compress lzo

I would expect the size of the backup should be 13GB or less, could you help me please?

Thank you
 
Hello,

probably I did some mistake when setting up discard option.
I've made further test and verified that backup size decreased after doing fstrim properly.

This thread can be considered solved ;)
 

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!