I have a specific situation. On Debian there are additional 3 disks and they are Luks encrypted. After decryption these disks are configured to ZFS pool RAIDZ (Raid5). After server reboot I need to unlock these three disks one by one and after 2nd disk is unlocked ZFS pool comes online but in degraded state because 3rd disk is not reachable and it stays in that condition despite I unlock the 3rd drive also. I have to manually run command:
zpool online <pool> <device>
And after that zpool becomes okay. I would like to somehow unlock all three disks at once do bypass this situation of going ZFS pool to degraded state. I found this post: Using a single passphrase to unlock multiple encrypted disks at boot
And answered solution works perfect but the problem is that the passphrase needs to be inputted during boot and in my environment there are some servers where I don't have access to console so I would not be able to enter my passphrase on these. That's why I'm looking for a solution to unlock these drives after system boots and I can access it via SSH.