Hi.
One of the drives in my pool failed, after shutdown I've disconnected this drive, but then TrueNAS wasn't able to boot (it hanged when console log said that the pool was suspended) What worked in the end, is to disconnect all the drives and then export/disconnect the pool. However, I now have a new problem where I cannot import pool, the operations failes with "permission denied"
This is an issue very similar to what is described here - https://www.truenas.com/community/threads/cannot-import-pool-permission-denied.92881/
It seems that the root cause is that drive identifiers has changed and importing the pool tries to import using old disk id that is now used by another drive. The workaround in this thread was to modify the pool from another OS. Surely this is not intended behavior and there should be a way to handle this via TrueNAS ?
One of the drives in my pool failed, after shutdown I've disconnected this drive, but then TrueNAS wasn't able to boot (it hanged when console log said that the pool was suspended) What worked in the end, is to disconnect all the drives and then export/disconnect the pool. However, I now have a new problem where I cannot import pool, the operations failes with "permission denied"
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/process.py", line 243, 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 979, 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 392, 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 1151, in libzfs.ZFS.import_pool
File "libzfs.pyx", line 1179, in libzfs.ZFS.__import_pool
libzfs.ZFSException: permission denied
This is an issue very similar to what is described here - https://www.truenas.com/community/threads/cannot-import-pool-permission-denied.92881/
It seems that the root cause is that drive identifiers has changed and importing the pool tries to import using old disk id that is now used by another drive. The workaround in this thread was to modify the pool from another OS. Surely this is not intended behavior and there should be a way to handle this via TrueNAS ?