Shrink RAW disk

Esben Viborg

Member
Oct 12, 2017
22
0
6
39
Hi

When i had to increase a disk in one of my VMs i accidentally hit '0' twice, so instead of increasing the disk with 40gb, I increased it with 400gb :S

Is it possible to shrink a RAW in size?
 
Hi,
it is possible although comes with some risks! If you already increased the file system and/or added new partitions on the disk you might loose data.
Only if you know what you are doing you can reduce the size with qemu-img. See the section for resize in the `man qemu-img` man page.
 

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!