Hello, I've made an encrypted data disk on consumer-grade hardware like this:
I've pulled the plug, booted, attached GELI partition and zpool was blank. After some pointless fiddling (export, import, scrub) data reappeared.
Is this setup supposed to survive power failures? Should freebsd-ufs be used as a base partition or maybe UFS instead of ZFS?
Thank you!
Code:
gpart create -s gpt ada0
gpart add -t freebsd-zfs -a 4k -l box0 ada0
geli init -s 4k gpt/box0
geli attach gpt/box0
zpool create box gpt/box0.eli
zfs create box/work
touch /box/work/TEST
...
I've pulled the plug, booted, attached GELI partition and zpool was blank. After some pointless fiddling (export, import, scrub) data reappeared.
Is this setup supposed to survive power failures? Should freebsd-ufs be used as a base partition or maybe UFS instead of ZFS?
Thank you!