ONTAP: How to Make Encrypted Volumes the Default


Return of The Blog



It's been a while since the last post.  And plenty has happened since, and I will need to play catch up on a lot of items.

But let's get down to business ...

Making Encrypted Volumes the Default

Once administrators get comfortable with the idea of encryption and notice that they can enable it across the board non-disruptively, they've been asking - how can we make sure new volumes that are created are always NVE volumes?

Setting a boot argument

To enable NVE for new volumes by default, you have to set a bootarg.  But you can set that bootarg without having to reboot - but you will need the diag account.  If you're not comfortable with that, then you would have to reboot to set the boot argument at the corresponding prompt.

Assuming you're ok with briefly having access to the diag account the following command will do the trick (make sure it is set on each node) -

systemshell * -c sudo kenv -p bootarg.softwareencryption.encryptallvol=true

FAQ

  1. Is there a minimum ONTAP version required?
    1. This is available with ONTAP 9.1
  2. If there are existing unencrypted volumes when this bootarg is applied, does this convert existing plain volumes?
    1. No.  Setting this bootarg will not modify any existing volumes.
  3. Can this bootarg be applied after the array has been setup?
    1. Yes, after the bootarg is set, any new volumes created will be encrypted.  No need to reboot the systems.
  4. Does this apply to MetroCluster?
    1. Yes, make sure the bootarg is set on every node.

Comments