You can't resize an existing partition that's in use on a zpool. You can enlarge it but you cannot make it smaller.
What does "in use" mean? I resized it using a Live USB stick, and gpart. Digging a lot deeper, found out it's an encyption problem... as much as I figured out, the geli key doesn't correspond to the
device file system size.
I'm guessing the geli restore file in this case is in the boot directory, even though it's usually in /var, but /var is not a separate file system in this case. So, I've tried
geli resize, geli restore, geli attach, kern.geom.debugflags
, etc., no luck. I believe I could get the
geli resize
thing to work if I knew the exact original size in bytes?
Although I already did a couple of back and forth resize operations. No move though. Could that geli metadata still be there?
It would be most helpful to know if AutoZFS partitioning behaves in a predictable manner, so I could pick up the size of my partition which is what the AutoZFS partitioner would do for, in my case, 458 GB free space, counting from the end of the disk.