What is the way in Solaris to encrypt a zpool? All the documentation supporting ZFS encryption talk about using "zfs create" and specifying a dataset WITHIN a pool. I just became SA for several Solaris servers and they all have encrypted zpools, but no documentation as to how they get that way. I know its possible since these servers have their pools configured with encryption, with no datasets on them. Any ideas?
-
1How do you know the zpools are encrypted?– ewwhiteDec 26, 2014 at 22:16
-
I ran "zfs get encryption" and it shows the property as "on" for the zpool which contains no datasets.– Jon SmithDec 26, 2014 at 22:22
-
yes, this command shows the pool as unencrypted and data set encrypted. "zfs set encryption=on poolname" -> cannot set property for 'poolname': 'encryption' is readonly– 16851556Oct 22, 2020 at 10:05
Add a comment
|
1 Answer
You just need to create the pool with encryption enabled for its top dataset:
zpool create -O encryption=on ...
-
2