Reduce partition

rafafell

Renowned Member
Sep 24, 2016
64
2
73
38
I reduced a partition of a virtual machine by the liveCD using Gparted -540GB (apparently OK)

How do I reduce these -540GB on proxmox? Just edit the "/etc/pve/qem-server/10X.conf"?


I tried using the command below, but it did not work:
https://pve.proxmox.com/wiki/Resize_disks

qm resize <vmid> <disk> <size>
qm resize 10X virtio0 -540G
 
Hi,

qm resize will only expend your disk.

How you shrink a disk depend on the the Storage where the Disk is located.
 
The virtual disk is in a storage directory (real HD added to proxmox). How should I proceed?
 
you can shrink raw and qcow2 files it with qemu-img.
 
  • Like
Reactions: rafafell