Increasing disk image size TO a specific amount

withervoice

New Member
Feb 17, 2014
9
0
1
I'm still assimilating a disparate and slightly messy system from my predecessor, as well as keeping abreast with new acquisitions... but one task I've been asked to do is standardize the sizes of disk images for our clients.

This being the case, I'd dearly love to be able to increase disk images not BY a certain amount, but TO a certain size. Say, rather than trying to increase sizes by a given amount of GB to get to, for instance, 64GB... or, more annoyingly, FRACTIONS THEREOF (to get from 59728MB to 64GB, for instance), a function that simply resizes the disk image directly TO the specified size. Is this something that's already in there? Or will I need to make a script for it myself?

If it's NOT available, I guess this constitutes a feature request, as well.
 
You can't do that from the web gui but

https://pve.proxmox.com/wiki/Qm_manual
or "man qm"

where it says
==========================================
qm resize <vmid> <disk> <size> [OPTIONS]
Extend volume size.
....
<size> \+?\d+(\.\d+)?[KMGT]?
The new size. With the '+' sign the value is added to the
actual size of the volume and without it, the value is taken
as an absolute one. Shrinking disk size is not supported
==========================================

helps you in any way?

Marco
 

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!