Pool and Disk error when onlining a disk [EZFS_NOCAP] cannot relabel '/dev/disk/by-partuuid': unable to read disk capacity

Snow

Patron
Joined
Aug 1, 2014
Messages
309
I just redid some hardware and had some pool issues, I offlined a disk and now I received this error.
This happens when I try to online the disk. Now the pool shows degraded. Any idea on how to fix this?
I am running TrueNAS-SCALE-22.02.4. Any help to get the disk back would be great was just about to do the rest of a huge upgrade.
adding 45 disks ✔, ddr4 ecc ✔, Threadripper ✔, Liquid cooled server ✔, adding 2 45 disk jbods ✔.

Code:
Error: concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 260, in __zfs_vdev_operation
    op(target, *args)
  File "libzfs.pyx", line 411, in libzfs.ZFS.__exit__
  File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 260, in __zfs_vdev_operation
    op(target, *args)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 324, in <lambda>
    self.__zfs_vdev_operation(name, label, lambda target, *args: target.online(*args), expand)
  File "libzfs.pyx", line 2211, in libzfs.ZFSVdev.online
libzfs.ZFSException: cannot relabel '/dev/disk/by-partuuid/6909035c-325e-11e9-89c0-002590e65d4e': unable to read disk capacity

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 1276, in nf
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 324, in online
    self.__zfs_vdev_operation(name, label, lambda target, *args: target.online(*args), expand)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/zfs.py", line 262, in __zfs_vdev_operation
    raise CallError(str(e), e.code)
middlewared.service_exception.CallError: [EZFS_NOCAP] cannot relabel '/dev/disk/by-partuuid/6909035c-325e-11e9-89c0-002590e65d4e': unable to read disk capacity
"""

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

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 177, in call_method
    result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
  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/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 1166, in online
    await self.middleware.call('zfs.pool.online', pool['name'], found[1]['guid'])
  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 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: [EZFS_NOCAP] cannot relabel '/dev/disk/by-partuuid/6909035c-325e-11e9-89c0-002590e65d4e': unable to read disk capacity
 
Last edited:

Snow

Patron
Joined
Aug 1, 2014
Messages
309
Upgrading to bluefish fixed the problem.
 
Top