I’ve spend the better part of two weeks building two TrueNAS scale servers. Each servers runs a VM (two zvols per VM - OS & MailDir) and replicates to it’s second pool on itself and also to the other server. I have encryption on in the top most dataset (not sure to call it the pool or dataset, sorry new to truenas nomenclature). So each TrueNAS sever has two keys (one for the primary pool/top dataset and one for the backup pool/top dataset) and I was attempting have the replicated data (including zvols) inherit the key from the target dataset. Can you tell me if this is actually possible?
srv1pool1/vms/ → srv1pool2/replication_vm/
srv1pool1/vms/ → srv2pool1/replication_vm/
I keep getting a new Encryption Root rather than inheriting (though it’s the same key as the source). I do not have “Encryption” box checked. I’ve been able to accomplish this via datasets without a zvol. However I can’t make this happen when I do a replication task via the GUI. I have been able to accomplish this from the command line but surely I am doing something incorrectly. But the real problem is that when I “unlock” the zvol or the replicated parent dataset it unmounts the parent dataset. What I am missing here.
Thank you,
bstaggs
This was ChatGPT take:
