I had this same problem some months ago over nixos with root zfs and the 'best answer i got' was it can't be done with openzfs and i should planned this and i agree but the point is not that i shouded plan this instead is i didn't, now how can i do that?.
i founded this guide over vultr about how to resize a zfs but actually only works for expanding the filesystem and if you try to shrink the zfs partition happends that gdisk says device bussy and if you try to shrink from liveusb it does it but the problem is that happens the same that happend me a time ago all the zfs metadata keeps on the unsed spaced as if i cutted the partition and let all the important zfs data aver that, the solution for this us reexpand the partition to its original size as if it wasn't shrinked on first time.
but how can i reduce the partition?
really i need install windows on a 100g partition i mean i know windows but i need it and is not negociable regrettably
i founded this guide over vultr about how to resize a zfs but actually only works for expanding the filesystem and if you try to shrink the zfs partition happends that gdisk says device bussy and if you try to shrink from liveusb it does it but the problem is that happens the same that happend me a time ago all the zfs metadata keeps on the unsed spaced as if i cutted the partition and let all the important zfs data aver that, the solution for this us reexpand the partition to its original size as if it wasn't shrinked on first time.
but how can i reduce the partition?
really i need install windows on a 100g partition i mean i know windows but i need it and is not negociable regrettably