SOLVED Accidentally migrated to FreeNAS 12

Junicast

Patron
Joined
Mar 6, 2015
Messages
206
I had lying around a FreeNAS 12 flash drive which I tested a couple of weeks ago.
Today I migrated over my encrypted FreeNAS 11.2U6 over to it. Accidentally.

Well it worked though and now I have a mounted volume with all my storage.
On command line I ran
Code:
zpool upgrade mypoolname
and now I'm stuck with it of course.
So I cannot go back to FreeNAS 11.2U6 until I copy over my whole data to another pool, right?

I won't do that, at least not now. So I was thinking, OK, just go with stock FreeBSD 12 which would be ok for me.
Now I'm trying to backup encryption keys which doesn't work on GUI. Well it's in Alpha IIRC so can't expect help from there. When I hit pools in the GUI it just keeps spinning.
What baffles me though is that when I hit
Code:
zfs get encryption mypoolname/someshare
on cli it says encryption is off. Well if that's right it won't be a problem to migrate the volume over to FreeBSD 12 but honestly I don't know how this can be possible. Can I rely on what the OS is telling me?

Code:
zpool status
gives me
Code:
  pool: fileserver

 state: ONLINE

  scan: resilvered 2.42T in 0 days 23:35:31 with 0 errors on Sun Sep 29 01:47:05 2019

config:


    NAME                                          STATE     READ WRITE CKSUM

    fileserver                                    ONLINE       0     0     0

      raidz2-0                                    ONLINE       0     0     0

        3c38d05a-2ac4-11e7-97e2-001b21c1a8c0.eli  ONLINE       0     0     0

        1e54548e-9534-11e9-b085-001b21c1a8c0.eli  ONLINE       0     0     0

        6a727f00-94df-11e9-a437-001b21c1a8c0.eli  ONLINE       0     0     0

        eea5072d-e1cf-11e9-afae-001b21c1a8c0.eli  ONLINE       0     0     0

        4076a268-2ac4-11e7-97e2-001b21c1a8c0.eli  ONLINE       0     0     0

So it's still encrypted, right?
This is what's shown in middleward.log:
Code:
[2019/09/29 06:28:33] (ERROR) middlewared.call_hook():996 - Failed to run hook pool.post_import_pool:<function pool_post_import at 0x81875ce60>(*({'id': 1, 'name': 'fileserver', 'guid': '1342367459553237654
6', 'encrypt': 2, 'encryptkey': '279a8278-69cf-4724-a186-45fcc0652573', 'path': '/mnt/fileserver', 'status': 'OFFLINE', 'scan': None, 'topology': None, 'healthy': False, 'status_detail': None, 'is_decrypted
': True, 'encryptkey_path': '/data/geli/279a8278-69cf-4724-a186-45fcc0652573.key'},), **{})
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 991, in call_hook
    await fut
  File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/sysdataset.py", line 396, in pool_post_import
    await middleware.call('systemdataset.setup')
  File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1152, in call
    app=app, pipes=pipes, job_on_progress_cb=job_on_progress_cb, io_thread=True,
  File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1094, in _call
    return await methodobj(*args)
  File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 954, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/sysdataset.py", line 204, in setup
    raise CallError(job.error)
middlewared.service_exception.CallError: [EFAULT] [EINVAL] sysdataset_update.pool: Pool "fileserver" has an encryption passphrase set. The system dataset cannot be placed on this pool.
 
Last edited:

Junicast

Patron
Joined
Mar 6, 2015
Messages
206
I've decided to copy over my data to temporary storage and then copy it back again.
This is just too dangerous. I hope there won't be a power outage in between :smile:
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
on cli it says encryption is off.
That's ZFS encryption, which isn't what FreeNAS uses (or at least has used through the 11.2 series)--FreeNAS uses FreeBSD's GELI encryption, and yes, your pool is still encrypted.
 

Junicast

Patron
Joined
Mar 6, 2015
Messages
206
OMG thank you. I did not even know there were different options for encryption.
I am nearly finished copying my files back to a new volume. No failing drives so far :smile:
 
Top