Importing pool failes

terenga

Cadet
Joined
Apr 15, 2021
Messages
3
I am having trouble importing a pool from Truenas Core in Truenas Scale 21.02-ALPHA.1

I am running Truenas Scale as VM on vSphere with passthrough of SAS2008 based controllers.

The error message I get is:
[ENOENT] Pool 2491833529097242126 not found.

At commandline "zpool import 2491833529097242126" works fine.

Another pool from the same Truenas Core machine imported without issues.

Full error message:
Error: concurrent.futures.process._RemoteTraceback:
"""
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 94, 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 1003, in nf
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 388, in import_pool
self.logger.error(
File "libzfs.pyx", line 391, in libzfs.ZFS.__exit__
File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 379, in import_pool
raise CallError(f'Pool {name_or_guid} not found.', errno.ENOENT)
middlewared.service_exception.CallError: [ENOENT] Pool 2491833529097242126 not found.
"""

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 378, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 414, in __run_body
rv = await self.method(*([self] + args))
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 999, in nf
return await f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/pool.py", line 1420, in import_pool
await self.middleware.call('zfs.pool.import_pool', pool['guid'], {
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1266, in call
return await self._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1231, in _call
return await self._call_worker(name, *prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1237, in _call_worker
return await self.run_in_proc(main_worker, name, args, job)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1164, 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 1138, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
middlewared.service_exception.CallError: [ENOENT] Pool 2491833529097242126 not found.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
At commandline "zpool import 2491833529097242126" works fine.
And have you exported it after that before using the GUI to try again?

Can you import it by name?

Do you see the pool in good status with zpool import ?
 

terenga

Cadet
Joined
Apr 15, 2021
Messages
3
In the GUI there is no option for choosing import by name or guid, but the name is shown. At the command line import by name works as well.

If I don't export the pool after importing at the command line it is not show at all in the GUI.

zpool import shows the pool
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
zpool import shows the pool
With any errors?

Maybe you should try an import with a rename to see if that can clear it.

zpool import currentname newname

zpool export newname

import newname from GUI

Pay attention to avoid special characters in pool names.
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Additionally a ticket on jira.ixsystems.com would be appreciated so some of the iX engineers can also take a look at the issue to see if there's some issue to resolve in the scale codebase :)
 

terenga

Cadet
Joined
Apr 15, 2021
Messages
3
No errors show with zpool import

status: Some supported features are not enabled on the pool.
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit 'zpool upgrade'.

Import and export with a new name does not help, based on the error message it looks like GUI is using id for import and not the name.

I will create a Jira ticket
 
Top