QMRestore Expands Sparse File - Issue

R

rsznol

Guest
hi:

I backed up my KVM VMs using VZDUMP.
This was successful.
The VM disk size is 100GB . But the sparse size was just over 6 GBs.
The backup TAR file is also about 6GB in size.

But when I run the QMRestore command, the sparse image is expanded back to 100GB in size.
I do not want to expand out the sparse file. I would like the restore to retain the original sparse size of 6GB as was original prior to the restore.

I do not see any options for the QMRestore specifically for this.

Can you tell me what can be done to retain the original small sparse size?

Thanks
 
as suggested by dietmar,
Code:
ls (-a, -la, whatever)
will always display the theoretical/maximum size of a sparse file.
to see the actual size of a sparse file you can use
Code:
du [-h]
 
Oh, just noticed that sparse files does not work with LZO compression. We removed that in order to get better performances.

So you need to wait for 2.3 - the issue is fixed in that release.
 

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!