Hi,
I searched around for this on the forum, but I don't think this exact issue has been encountered and resolved yet.
I'm running TrueNAS-13.0-U6 (core), and I have a raidz2 pool.
2 of my HDD died recently, so I swapped those out today, but after swapping them out physicaly and rebooting to replace them in zfs, I started having issues when the pool wouldn't show up, saying it's offline.
When I run `zpool import` I get this :
Trying to re-import the pool in the command line with `zpool import 2160150738180114986 tank` results in the following error :
And trying to import it via the web GUI gives the following error :
As far as I can see, I should be able to import the pool in degraded state and then swap out the missing drives and re-build the array.
What do you suggest I do ?
Thanks
I searched around for this on the forum, but I don't think this exact issue has been encountered and resolved yet.
I'm running TrueNAS-13.0-U6 (core), and I have a raidz2 pool.
2 of my HDD died recently, so I swapped those out today, but after swapping them out physicaly and rebooting to replace them in zfs, I started having issues when the pool wouldn't show up, saying it's offline.
When I run `zpool import` I get this :
Code:
pool: tank
id: 2160150738180114986
state: DEGRADED
status: One or more devices are missing from the system.
action: The pool can be imported despite missing or damaged devices. The
fault tolerance of the pool may be compromised if imported.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
config:
tank DEGRADED
raidz2-0 DEGRADED
gptid/8969b3fe-de15-11ed-a631-a8a159abc2e3 ONLINE
gptid/7793d0d8-917a-11e8-8ecf-000c29c07bb1 ONLINE
gptid/78a4f2b9-917a-11e8-8ecf-000c29c07bb1 ONLINE
12966275271037246285 UNAVAIL cannot open
gptid/c6c8350a-de15-11ed-a631-a8a159abc2e3 ONLINE
ada1p2 FAULTED corrupted dataTrying to re-import the pool in the command line with `zpool import 2160150738180114986 tank` results in the following error :
Code:
cannot import 'tank' as 'tank': permission denied
Destroy and re-create the pool from
a backup source.And trying to import it via the web GUI gives the following error :
Code:
Error: concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/process.py", line 246, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/worker.py", line 111, in main_worker
res = MIDDLEWARE._run(*call_args)
File "/usr/local/lib/python3.9/site-packages/middlewared/worker.py", line 45, in _run
return self._call(name, serviceobj, methodobj, args, job=job)
File "/usr/local/lib/python3.9/site-packages/middlewared/worker.py", line 39, in _call
return methodobj(*params)
File "/usr/local/lib/python3.9/site-packages/middlewared/worker.py", line 39, in _call
return methodobj(*params)
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 985, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/zfs.py", line 352, in import_pool
self.logger.error(
File "libzfs.pyx", line 402, in libzfs.ZFS.__exit__
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/zfs.py", line 346, in import_pool
zfs.import_pool(found, new_name or found.name, options, any_host=any_host)
File "libzfs.pyx", line 1175, in libzfs.ZFS.import_pool
File "libzfs.pyx", line 1203, in libzfs.ZFS.__import_pool
libzfs.ZFSException: permission denied
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 355, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 391, in __run_body
rv = await self.method(*([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 981, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py", line 1462, in import_pool
await self.middleware.call('zfs.pool.import_pool', pool['guid'], {
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1283, in call
return await self._call(
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1248, in _call
return await self._call_worker(name, *prepared_call.args)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1254, in _call_worker
return await self.run_in_proc(main_worker, name, args, job)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1173, in run_in_proc
return await self.run_in_executor(self.__procpool, method, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1156, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
libzfs.ZFSException: ('permission denied',)As far as I can see, I should be able to import the pool in degraded state and then swap out the missing drives and re-build the array.
What do you suggest I do ?
Thanks