ZFS best way to migrate?

Hi all,

Just wondering if anyone knows the best way to address this issue

currently

I have a system with a single zpool configured with geli, as the boot device...

I need to build out another server with a different drive configuration ..
1 boot with os and geli on zroot
1 the original pool from the old system, encrypted with geli and the os
1 new pool with a seperate set of new vdevs

I was thinking, its easy to install to a new boot device.. likewise build the new pool .. but what's the best way to import the original encrypted zpool (not as a boot device), but have it require the password on bootup.. either via a startup script .. or however the installer normally sets up an encrypted boot pool.

ie:
on boot... ask for the boot device pw
then ask for the second and third pools pw ...
then boot

Ideally I would prefer to keep the data in the original pool in tact and encrypted ..

thanks
 
At first glance I don't see a real problem. I suppose Your boot pools will ask for the password somewhere from the loader (I don't use these). Then configure the geli on that old pool to have the -b flag and not the -g flag, then it should try the boot password on it, recognize that one doesn't work, and ask for the valid one right before going multiuser. At least I would expect that to work.
 
Back
Top