zfs get all <pool>/<path>/<to vm disk>
?volsize
parameter of the zvol to the new size. Also check if the reservation
property is set to some value and if it changed automatically as well.zfs set volsize=<size>G <pool>/<vm disk>
I didn't understand the commandMaking a disk smaller is always risky. Make sure to have a backup of the VM before you make the next steps.
Since this disk is located on a ZFS pool, what is the output ofzfs get all <pool>/<path>/<to vm disk>
?
In general, you want to change thevolsize
parameter of the zvol to the new size. Also check if thereservation
property is set to some value and if it changed automatically as well.
zfs set volsize=<size>G <pool>/<vm disk>
zfs get allMost likely it will be <pool>/<vm disk> but ZFS can have nested datasets which would then lead to a deeper hierarchy.
Fine! Everything works. Thank.You will have to set the volsize propery to the newer, smaller value.
zfs set volsize=<size>G store1/vm-100-disk-0
I recommend set it 1 or 2 GB larger just to avoid any accounting differences causing problems. If you then start the VM again, it should see the disk being smaller
We use essential cookies to make this site work, and optional cookies to enhance your experience.