Thin provisioned VM backup size

werenzo

Active Member
May 21, 2018
6
1
43
48
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 ;)