moving disks vs backup-restore

Waschbüsch

Renowned Member
Dec 15, 2014
93
8
73
Munich
I have VMs with disk images either on ceph or on lvm.

When restoring from a backup to ceph, I benefit from:
space reduction due to 4K zero blocks
as unused / empty blocks will not be allocated on ceph.

So far so good.

Now, I wanted to move a disk image from lvm (NOT lvm-thin!) to ceph.
And in order to optimize this, I first zeroed out all empty space (about 40%) from within the VM.

The funny thing is that, if I move the disk, the whole disk image is copied / allocated.
If I first create a backup and restore it to the ceph backend, only used / non-zero blocks are allocated.
The problem being, that I can move without downtime, but not backup-restore without downtime.

Is there a away to enable this optimization (space reduction due to 4K zero blocks) also when moving disks?

Martin
 

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!