Problem with resized Disk, revert Changes

Lenu

Member
Jan 14, 2019
8
0
6
32
Hi, today i wanted to give 50GB more Space over Proxmox GUI to a Qcow2 VM.
I had 250 and entered 300Gb by mistake. (German translation in my opinion of that Input Field Label was not so good)
Now my Proxmox VM shows me 550GB ... The Node has only 450GB NVMe SSD.
i didn't changed anything yet, at VM Shell. Just want to know how to revert that in order to set the Hardrive to 300GB in Total to proceed with

Code:
# lvextend --resizefs -l +100%FREE /dev/cloudlinux/root ...........

and so on ......

System: Proxmox Virtual Environment 5.4-6
VM:
Bildschirmfoto 2019-12-14 um 11.08.24.jpg

kindly request help.
 
i would first make a backup of your vm (in case something goes wrong),
then try to reduce the size of the disk with 'qemu-img' (when the vm is off)
 
  • Like
Reactions: Lenu
i would first make a backup of your vm (in case something goes wrong),
then try to reduce the size of the disk with 'qemu-img' (when the vm is off)

Do you have any detailed Instructions for that? Reducing Image?
at the moment still its just resized over Proxmox, nothing more. I didn't changed the VM / Linux space inside of VM. So i guess i don't need to change anything on VM Level?
I only find docs for resizing for MORE space, but nothing to reduce in case of mistake.
How long would such task take?
I need to run those commands in the main Node of VM right?
 
Last edited:
Do you have any detailed Instructions for that? Reducing Image?
at the moment still its just resized over Proxmox, nothing more. I didn't changed the VM / Linux space inside of VM. So i guess i don't need to change anything on VM Level?
no should not be necessary

I only find docs for resizing for MORE space, but nothing to reduce in case of mistake.
check the man page of qemu-img via 'man qemu-img'

as i said before, make sure you have a backup of your data just in case

I need to run those commands in the main Node of VM right?
you need to resize it on a node which has access to the disk, when the vm is OFF
do not try to reduce it while the vm is running
 
  • Like
Reactions: Lenu

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!