So I shrinked my zfs partition inside qcow2 VM and then shrinked actual qcow2 file with qemu-img.
The qcow2 file went from 32 GB to 10GB, but the free space on host ZFS partition is exactly the same
I have not made any mistake, this ZFS partition is mounted in /var/lib/vz and the qcow2 file for my VM is inside this folder: /var/lib/vz/images/103
After running qemu-img the old qcow2 was of course deleted
I DO NOT have zfs compression enabled, however it feels to me like the empty space inside qcow2 file somehow did not take any space on host ZFS, how is that possible? I see this behaviour for the first time
zfs get compression data
NAME PROPERTY VALUE SOURCE
data compression off local
The qcow2 file went from 32 GB to 10GB, but the free space on host ZFS partition is exactly the same
I have not made any mistake, this ZFS partition is mounted in /var/lib/vz and the qcow2 file for my VM is inside this folder: /var/lib/vz/images/103
After running qemu-img the old qcow2 was of course deleted
I DO NOT have zfs compression enabled, however it feels to me like the empty space inside qcow2 file somehow did not take any space on host ZFS, how is that possible? I see this behaviour for the first time
zfs get compression data
NAME PROPERTY VALUE SOURCE
data compression off local