- I had a VM image at /var/lib/libvirt/images/windows10.raw.
- I messed something up in the image, so I tried to restore it from a
previous snapshot by copying it:
cp -av /var/.zfs/snapshot/snap/lib/libvirt/images/windows10.raw /var/lib/libvirt/images/windows10.raw
. cp -av
adds the contents of the snapshotted file, thus growing the VM image to 400+GB before I realize.- I
rm /var/lib/libvirt/images/windows10.raw
to remove the 400G file andzfs destroy <all snaps of var with that huge file>
- I now have 27G free and ZFS doesn't seem to want to give any of the destroyed space back.
-
-
Save cole-h/2235b625400a4555795afc553408d121 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment