how to discard a large VM disk

leeyoo

New Member
Sep 28, 2023
4
1
1
once i create the virtual hard disk didn't choose discard
now i feel it will take too larg vollume for me
any command can reduce/ discard the raw file size?
method in this page https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files
difficult to follow since VM disks already use 95% of my real HDD volume

and... can i use ZFS for ISO imag?
 
Last edited:
for zvol
can use
Code:
zfs get volsize
to check hows size taking
change pve VM hardware--Hardisk discard on
then, set large size zvol
Code:
zfs set refreservation=none ZFS/vm-101-disk-1
take a snapshot
Code:
zfs snapshot ZFS/vm-101-disk-1@rec
you may see the vol changed from fix size to dynamic size

will make your vm disk become dynamic
 
Last edited: