@faust7th You can try to unlock them manually from console but be
very careful doing so! (Stop any SMB/NFS services for safety reasons)
You will need the encryption hey and GPTIDs. The key i assume you have. For the GPTIDs check output of
glabel status
which will gives you mapping against (a)daXp
2. You always need <whatever>
p2 (unless you've ripped off the swap). If you still don't know which disks are the encrypted ones you can check your
backup config (assuming you have one from before upgrade). Just
sqlite3 /path/to/cfgbackup.db
then call this SQL:
Code:
SELECT storage_volume.vol_name, storage_encrypteddisk.encrypted_provider from storage_volume JOIN storage_encrypteddisk ON storage_volume.id = storage_encrypteddisk.encrypted_volume_id;
It will gives you pool name and GPTID of the related devices.
Now that you have both pieces you can try following:
Code:
geli attach -k /path/to/encryptionkey.key /dev/gptid/0faaxxxxxx-xxxxx-xxx-xxxx-xxxxxxxxxxxxx
geli attach -k /path/to/encryptionkey.key /dev/gptid/0fbbxxxxxx-xxxxx-xxx-xxxx-xxxxxxxxxxxxx
repeat for each encrypted volume. It will ask for passphrase for each unlock unless you're using recovery key.
If you manage to unlock all of the volumes you can then try to import
Code:
zpool import
zpool import poolname
Since you're bypassing the GUI/middleware the mount-point would be most probably broken so you can fix it like this:
Code:
zfs set mountpoint=/mnt/poolname poolname
zfs mount -a
Please note that this is NOT permament solution of your problem. It is more like emergency way how to get to your data and copy them elsewhere from console. If you now start messing with the pool/volume from within GUI (which is not aware that the pool is unlocked/mounted) it can have unexpected or even destructible consequences. You've been warned.
Once you're done with data backup you can try to
zpool export poolname
, restart the NAS and try to import it from within the GUI. Or you can just destroy the whole pool, re-create it from scratch and copy the data back.
Side-Note: If the manual unlock failed then you will get appropriate error message. Either your key/passphrase is invalid or the data on the disks got corrupted/overwritten. In case the geli metadata got corrupted and you have backup of these you might be able to restore them. Yet this is something unusual so i will not post details there as one rushed mistake would lock you out of your data forever...