After a re-install of a corrupted FreeNas, On importing the volumes on the same system and reloading my configuration file learned that I first have to detach the volumes ensuring that the check box's are unchecked then auto import the volumes. (if I don't detach the volumes FreeNas complains of the volumes existing when I try to auto import. Note: you can still import and mount them but no /data/geli folder or key files are created. I need these key files for an auto decryption script) By detaching first and then auto importing, It then decrypts and mounts the volumes also creating the /data/geli folder and keys. On rebooting the /data/geli/ folder and key files are there which in my case are used for auto decrypting.
So:
freenas9.1.1_guide.pdf section 6.3 Auto importing a volume page 107
Quote: If you plan to physically install ZFS formatted disks from another system, be sure to export the drives on that system to prevent an "in use by another machine" error during the import.
It should read something like this: If you plan to physically install ZFS formatted disks from another system or a new install on an existing system with an old configuration file,be sure to export/detach the drives on that system to prevent an "in use by another machine" error or "you have an existing volume" error (I can't remember the actual message)during the import.
This could have saved me a few hours.
So:
freenas9.1.1_guide.pdf section 6.3 Auto importing a volume page 107
Quote: If you plan to physically install ZFS formatted disks from another system, be sure to export the drives on that system to prevent an "in use by another machine" error during the import.
It should read something like this: If you plan to physically install ZFS formatted disks from another system or a new install on an existing system with an old configuration file,be sure to export/detach the drives on that system to prevent an "in use by another machine" error or "you have an existing volume" error (I can't remember the actual message)during the import.
This could have saved me a few hours.