User:Nathanlkoch/Tutorials/TrueNASzfs to Gentoo

TrueNAS Encrypted ZFS Pool to Gentoo
This document should assist you in mounting a encrypted zfs pool from TrueNAS onto Gentoo.

For the use of this document my pools name is SpacePool

Kernel
Follow ZFS

Do the kernel bits and install zfs-kmod.

Mount to pool
Do a quick fdisk -l. It will show you all your drives and uuid information. It will also show you the name of your ZFS pool.

It's kind enough to know I have multiple disks in the set. Very nifty.

Save the key
In TrueNAS you want to store your encryption keys. The file will save to something like this "dataset_NAMEOFDATASET_keys.json". Save it somewhere to the disk. Open it and remove everything not in between the quotations. Leaving just the encryption key. I saved mine to something easy to find.

Set the key
Set the key to the proper pool.

Load the key
-a will load all available keys.

Mount the Dataset
Mount.

A simple "zfs list" will show you all configured datasets.

Mount at boot
Done.

__INDEX__