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

May 5, 2020
15
12
23
50
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!
 

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!