What needs to be done to create a second encrypted ZFS pool during installation that unlocks during boot?

Currently my server uses a single ZFS pool made up of a batch of 7200rpm disks in raidz2. I'm planning to rebuild the server using a new pair of SSDs as a mirrored pair to hold the OS and my jails, and use all the spinning disks as a second pool in raidz2 to hold bulk data. Before I do it on the real server I've been testing the installation process in a VM with multiple virtual disks but I've been unable to make it work. What I've done is go through the installation process for just the two SSDs, then after the guided install going into the shell and formatting the additional disks with geli and creating a zfs pool on them. Unfortunately after rebooting it doesn't work the way I want. The OS boots like it should but there's no attempt to unlock the disks for the secondary pool. I can manually unlock them and import the pool and it works fine, but I'm not sure what I'm missing to have all this done during startup, preferably only with entering a single password (all eli disks for both pools use the same password).

What do I need to do during the installation process to make this happen?

Update: adding " geli_devices=/dev/xyz1 /dev/xyz2" and so forth to rc.conf for all the devices in the second pool does work at least insofar as it makes the second pool available upon boot, but it prompts me for the password for each device which I would prefer to avoid (though I suppose I can live with it if I absolutely must). If there's a way to make it only prompt once (meaning a grand total of two password prompts for each reboot), that would be an acceptable solution too.
 
Back
Top