Hey,
I followed this guide, and I currently have the following:
2x 1 TB encrypted with GELI with a ZFS mirror file system on top of it.
Those two HDD's are detected as ada0 and ada1. And the OS boots from ada0p3 and ada1p3. All works fine.
However, when I wanted to add another eight 3 TB HDD's to my server to create a RAID-Z2 with, it refused to boot. The issue being that other HDD's got detected earlier and claiming ada0/ada1. GELI asked me for the pass phrase for ada2p3 and ada3p3, (which were the 1 TB disks). But it refused to accept it / the system did nothing.
After rearranging the SATA cables I managed to get the system to detect the two 1 TB's as ada0/ada1 again, because one of the SATA controllers was getting detected first. And GELI accepted my pass phrase again and the system booted fine.
But this isn't really a very convenient thing to do, having to rearrange the position of HDD's when you add other HDD's/controllers to ensure your GELI devices are still detected in the order you first installed them in.
In the /boot/loader.conf you have to specify which key file GELI should use for which device name and since the device name is different, GELI won't use the right key file and therefore fails to decrypt the device. Would it be possible to specify which device GELI should decrypt by using GEOM labels so the order in which the devices are detected is irrelevant because the GEOM labels are bound do the disk and not the order in which it is detected?
I spoke to the author of the tutorial I followed and he said the following:
Would it be possible to get the GEOM label modules to load before the GELI modules are loaded so that this would be possible? Or is there another way to do this that is easier?
Thank you for your time.
Regards,
Sukosevato
I followed this guide, and I currently have the following:
2x 1 TB encrypted with GELI with a ZFS mirror file system on top of it.
Those two HDD's are detected as ada0 and ada1. And the OS boots from ada0p3 and ada1p3. All works fine.
However, when I wanted to add another eight 3 TB HDD's to my server to create a RAID-Z2 with, it refused to boot. The issue being that other HDD's got detected earlier and claiming ada0/ada1. GELI asked me for the pass phrase for ada2p3 and ada3p3, (which were the 1 TB disks). But it refused to accept it / the system did nothing.
After rearranging the SATA cables I managed to get the system to detect the two 1 TB's as ada0/ada1 again, because one of the SATA controllers was getting detected first. And GELI accepted my pass phrase again and the system booted fine.
But this isn't really a very convenient thing to do, having to rearrange the position of HDD's when you add other HDD's/controllers to ensure your GELI devices are still detected in the order you first installed them in.
In the /boot/loader.conf you have to specify which key file GELI should use for which device name and since the device name is different, GELI won't use the right key file and therefore fails to decrypt the device. Would it be possible to specify which device GELI should decrypt by using GEOM labels so the order in which the devices are detected is irrelevant because the GEOM labels are bound do the disk and not the order in which it is detected?
I spoke to the author of the tutorial I followed and he said the following:
"You can label up disks using geom_label - but this isn't present during
the boot loader/kernel loading process... so it's no use for a boot
disk. It's just something we have to work around to boot from encrypted
drives :-("
Would it be possible to get the GEOM label modules to load before the GELI modules are loaded so that this would be possible? Or is there another way to do this that is easier?
Thank you for your time.
Regards,
Sukosevato