[SOLVED] Resize virtual disk that is oddly sized to a rounded size

May 5, 2020
19
14
23
51
We have an imported virtual disk from a VMware system that was oddly sized (specifically 2147525591KiB).

It appears this causes an error when performing a storage migration (storage migration failed: block job (mirror) error: drive-virtio1: 'mirror' has been cancelled). Or at least, it appears that this is likely the issue. It looks like disks must be rounded to 4MiB chunks in size?

In any case, I was hoping to be able to resize the disk in KiB, but Proxmox's interface only allows for 1GiB increments. Is there a workaround to this to allow resizing in KiB?

Our alternative solution is to create a new virtual disk and use CloneZilla to copy the virtual disk, but thought there might be a way to avoid this.
 
@sw-omit - Great ideas! I actually hadn't tried using M or K - thinking that it was limited to only GiB, and you are correct - this works fine. I feel kinda dumb for not thinking of this! :)

An example to add 512KiB to a disk:
qm disk resize <vmid> virtio1 +512K

Or - you can specify the absolute dise of a disk and it will compute the difference and add the respective amount to the disk. This is what I used!
qm disk resize <vmid> virtio1 2060G

And the storage migration works perfectly now. :)

Thanks again!