atomique90
Dabbler
- Joined
- Jul 13, 2018
- Messages
- 10
Hello guys,
maybe one of you has an idea for my big problem: I encrypted my disks but cant decrypt them. I saved my geli.key but FreeNAS doesnt accept it.
What I did:
Error in the shell:
What I didn't / maybe my mistake here:
I checked the documentation and its mentioned there, that I have to disconnect and export the pool before moving to a new FreeNAS system. The problem is, that I have formatted the USB-Stick from the first FreeNAS instance. I changed to the new system, because I got some weird errors during boot that stopped after reinstalling FreeNAS onto a new SSD. Could this be a problem?
The system:
- FreeNAS 11.2 U6
- 2 Disks mirrored and encrypted
Is it possible to decrypt the pool? Is the format of my geli.key wrong maybe? I have just copied it to a file (windows notepad) - maybe thats the problem. Please let me know if you need further information.
Note: I also posted this issue on reddit, but I think its better placed in here. Please dont wonder if you see this twice!
Thank you guys for any help!
Atomique
maybe one of you has an idea for my big problem: I encrypted my disks but cant decrypt them. I saved my geli.key but FreeNAS doesnt accept it.
What I did:
- Encrypted the pool
- Saved my geli.key (copied the content to my passwordsafe)
- Moved the disks to a fresh install (I dont have access to the old environment anymore)
- Tried to import it via GUI and Shell with geli.key (no passphrase, I just have this geli.key)
Code:
Error: Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 333, in run await self.future File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 366, in __run_body rv = await self.middleware.run_in_thread(self.method, *([self] + args)) File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1004, in run_in_thread return await self.loop.run_in_executor(executor, functools.partial(method, *args, **kwargs)) File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 668, in nf return f(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/disk.py", line 253, in decrypt raise CallError(f'The following devices failed to attach: {", ".join(failed)}') middlewared.service_exception.CallError: [EFAULT] The following devices failed to attach: gptid/ae24d1a8-03b9-11ea-9421-001b21bd9510, gptid/ade387e0-03b9-11ea-9421-001b21bd9510
Error in the shell:
Code:
root@freenas[/tmp]# geli attach -p -k /tmp/geli.key /dev/gptid/ae24d1a8-03b9-11ea-9421-001b21bd9510 geli: Wrong key for gptid/ae24d1a8-03b9-11ea-9421-001b21bd9510.
What I didn't / maybe my mistake here:
I checked the documentation and its mentioned there, that I have to disconnect and export the pool before moving to a new FreeNAS system. The problem is, that I have formatted the USB-Stick from the first FreeNAS instance. I changed to the new system, because I got some weird errors during boot that stopped after reinstalling FreeNAS onto a new SSD. Could this be a problem?
The system:
- FreeNAS 11.2 U6
- 2 Disks mirrored and encrypted
Is it possible to decrypt the pool? Is the format of my geli.key wrong maybe? I have just copied it to a file (windows notepad) - maybe thats the problem. Please let me know if you need further information.
Note: I also posted this issue on reddit, but I think its better placed in here. Please dont wonder if you see this twice!
Thank you guys for any help!
Atomique
Last edited: