Reduce VM's disks

Frigg

Active Member
Sep 4, 2016
63
2
28
52
Hello,

I would like to reduce by 3T0 the 500 VM's hard disk size.
Based on the documentation
https://pve.proxmox.com/wiki/Resize_disks
I entered the command "qm resize 500 vitrio0 -3000G" and "qm resize 500 vm-500-disk-1 -3000g"
It doesn't work:
Unknown option: 3000g
400 unable to parse option
> how can I downsize a VM's hard disk

> how to find disk name ?
1664313019237.png
1664313038954.png

> The pool is a LVM-Thin. I don't undersand why Vm's disks are raw and not thin. I don't understand how it works reading documentation. If you could explaine...
1664313675383.png
1664313738193.png


Thanks for help
Hervé
 
LVM is block level storage. It is raw. So what you are seeing is correct.

As you can see from this page: https://pve.proxmox.com/pve-docs/qm.1.html
Code:
qm resize <vmid> <disk> <size> [OPTIONS]
Code:
Shrinking disk size is not supported.

Very few storage systems support shrinking. But you really need to start shrinking from the upper layer - file system side. Even fewer file systems support shrinking. Dont do it - you will corrupt your data.

You should create a new disk and migrate the data.



Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Thanks for your answer.
Well I've manage to do it once, but can't remember all the steps I followed.
I just remember Idetached the disk, so it gets unused.
Then created a new disk.
But can't remember how I linked the unused disk to the new disk and make it bootable
Thanks for helping
 

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!