Resize VM disk on Ceph

Firm

Renowned Member
Oct 27, 2015
40
1
73
Hi,

Some notes:
1. Resizing from Proxmox UI failed with message 'VM 102 qmp command failed - VM 102 qmp command 'block_resize' failed - Could not resize: Invalid argument'
2. Successfully resized image on ceph with 'qemu-img resize -f rbd rbd:rbd/vm-102-disk-1 48G'
3. But Proxmox UI and VM still show 32GB
4. Updated /etc/pve/nodes/qemu-server/<host>/102.conf - changed 'size=32G' to 'size=48G' - it fixed UI
5. Rescanning disks in VM does nothing
6. Rebooting VM does nothing
7. Shutting down VM and booting it fixed the issue, vda became shown as 48G
8. Deleted and recreated partition, then rebooting and resizing fs succeeded.

How can I force Proxmox to inform VM that disk size has changed?
 

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!