Force Majeure
Dabbler
- Joined
- Oct 10, 2022
- Messages
- 10
I need some of your collective wisdom...
I have an archive pool that went bad. Degraded. Stuck at 47% resilvering for 5 days. Many faulted drives. I have a backup of the data, so I want to scrap this pool and start from scratch.
Problem is that the pool would not disconnect. TrueNAS would say it was busy.
So I pulled all the drives from the shelf and did a hard reset on the server. Now the pool shows as OFFLINE rather than DEGRADED.
But it still won't disconnect when told to do so from the GUI.
Here is the error readout:
Zpool clear does nothing. Says the pool is not there to clear (which is true).
I'm out of ideas at this point. Do I need to re-install TrueNAS? Because I don't see another way out of this. Or is there a CLI command that can nuke a misbehaving pool like this?
Thanks
I have an archive pool that went bad. Degraded. Stuck at 47% resilvering for 5 days. Many faulted drives. I have a backup of the data, so I want to scrap this pool and start from scratch.
Problem is that the pool would not disconnect. TrueNAS would say it was busy.
So I pulled all the drives from the shelf and did a hard reset on the server. Now the pool shows as OFFLINE rather than DEGRADED.
But it still won't disconnect when told to do so from the GUI.
Here is the error readout:
Error: 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 975, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py", line 1598, in export
disks = [i async for i in await self.middleware.call('pool.get_disks', oid)]
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py", line 1598, in <listcomp>
disks = [i async for i in await self.middleware.call('pool.get_disks', oid)]
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py", line 1047, in get_disks
if disk_name := await self.middleware.call('disk.label_to_disk', prov, False, cache):
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1279, in call
return await self._call(
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1247, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1152, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/disk_info_freebsd.py", line 123, in label_to_disk
dev = self.label_to_dev(label, geom_scan, cache) or label
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/disk_info_freebsd.py", line 104, in label_to_dev
if label.endswith('.nop'):
AttributeError: 'dict' object has no attribute 'endswith'
Zpool clear does nothing. Says the pool is not there to clear (which is true).
I'm out of ideas at this point. Do I need to re-install TrueNAS? Because I don't see another way out of this. Or is there a CLI command that can nuke a misbehaving pool like this?
Thanks