Resizing disk size went wrong

sdmeijer

New Member
May 19, 2020
1
0
1
46
I wanted to increase my virtio-disk with 150G (it was 500G) through the web interface.
I typed 150 as increase size, but after pressing Enter the filesize now states 1800G! (The physical disk isn't that large.)

I didn't do anything inside the VM after this. So the only change at this moment is in Proxmox.

How can I restore this? Can I just alter the .conf file and change the size to 650G or should I do anything else?
I hope someone can help me.
 
Hi,
just changing the configuration file won't affect the real or provisioned size of the image. Because you said that the physical disk isn't that large, I assume that the disk is thinly provisioned, so there's no need to hurry, i.e. the volume group/filesystem on your host is not filled up because of it.

What is the underlying storage? If it is LVM, use lvresize. If it is a directory-based storage, use qemu-img resize. If it is your first time using these tools, I'd strongly suggest trying things out on a test image first. What you really need to be careful about is to not make the image smaller than the current filesystem on it expects. I assume you haven't changed that yet and it still expects 150G?

After doing the resize, use qm rescan --vmid <ID> with the ID of your virtual machine to update the configuration file.

EDIT: Could you also share the output of pveversion -v?
 

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!