SOLVED Can't import former proxmox pool into TrueNAS Scale

Johnross2007

Cadet
Joined
Jun 2, 2017
Messages
8
I previously ran proxmox on this machine, but just installed TrueNAS Scale instead (proxmox is now on a new machine). When I used the Import Pool tool, it gave me the following error: [EFAULT] Failed to update properties: ZFSException('NFS share creation failed')
I will put the full error output at the end of this message. I went to the CLI to import and it said the pool was already imported. It doesn't show in the GUI. I rebooted and it still didn't show in the GUI, but it also doesn't show in the CLI for zpool list. It only shows after the failed import. This happens for both pools.

Here it the full output:

Error: concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 973, in update_zfs_object_props
zfs_object.update_properties(properties)
File "libzfs.pyx", line 3388, in libzfs.ZFSResource.update_properties
libzfs.ZFSException: NFS share creation failed

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/concurrent/futures/process.py", line 243, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "/usr/lib/python3/dist-packages/middlewared/worker.py", line 114, in main_worker
res = MIDDLEWARE._run(*call_args)
File "/usr/lib/python3/dist-packages/middlewared/worker.py", line 45, in _run
return self._call(name, serviceobj, methodobj, args, job=job)
File "/usr/lib/python3/dist-packages/middlewared/worker.py", line 39, in _call return methodobj(*params) File "/usr/lib/python3/dist-packages/middlewared/worker.py", line 39, in _call
return methodobj(*params)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1146, in nf
res = f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1276, in nf
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 947, in do_update
self.update_zfs_object_props(properties, dataset)
File "libzfs.pyx", line 411, in libzfs.ZFS.__exit__
File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 947, in do_update
self.update_zfs_object_props(properties, dataset)
File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 975, in update_zfs_object_props
raise CallError(f'Failed to update properties: {e!r}')
middlewared.service_exception.CallError: [EFAULT] Failed to update properties: ZFSException('NFS share creation failed')
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 411, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 446, in __run_body
rv = await self.method(*([self] + args))
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1272, in nf
return await func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1140, in nf
res = await f(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/pool.py", line 1429, in import_pool
await self.middleware.call('zfs.dataset.update', pool_name, opts)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1345, in call
return await self._call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1294, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/service.py", line 931, in update
rv = await self.middleware._call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1302, in _call
return await self._call_worker(name, *prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1308, in _call_worker
return await self.run_in_proc(main_worker, name, args, job) File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1223, in run_in_proc
return await self.run_in_executor(self.__procpool, method, *args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1206, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
middlewared.service_exception.CallError: [EFAULT] Failed to update properties: ZFSException('NFS share creation failed')
 
Last edited:

Johnross2007

Cadet
Joined
Jun 2, 2017
Messages
8
I tried it in CLI and got this similar error:
root@truenas[~]# zpool import tank
Unable to create temporary file: Operation not permittedcannot share 'tank/Media: system error': NFS share creation failed
root@truenas[~]#
 

Johnross2007

Cadet
Joined
Jun 2, 2017
Messages
8
I fixed it! I figured some NFS flag was the issue, so I ran this command in CLI:

zfs set sharenfs=off tank

Then I rebooted, as the GUI seems confused after a failed import. After reboot, the GUI import function worked!!!!!

edit: I had to do this for every sub-pool (can't remember the technical term for this). For example, I also had to run it on "tank/Media." Maybe there's a way to do it recursively, but I'm not familiar enough with ZFS for that.
 
Top