Recover/Rebuild pool FreeNAS

TrueMan

Cadet
Joined
Dec 8, 2021
Messages
4
I am trying to recover the pools on a FreeNAS 11.3 server. Unfortunately my project has had to sit idle for the last 12mo while away and I am trying to reeducate myself and pick up where I left off.
I have 3 HHDs in a ZFS pool. I'm not 100% sure but I believe during the last attempt I deleted the pool to recover it.. if this is even possible. Is there a process or utility that can help rebuild recover a pool?
I do not want to loose the data on my server. Let me know what additional information I can/should provide to help in this operation. Any help would be greatly appreciated. Thank you in advance.
 

Attachments

  • Screen Shot 2021-12-08 at 1.22.07 PM.png
    Screen Shot 2021-12-08 at 1.22.07 PM.png
    43.1 KB · Views: 201
  • Screen Shot 2021-12-08 at 1.21.45 PM.png
    Screen Shot 2021-12-08 at 1.21.45 PM.png
    52.2 KB · Views: 221

TrueMan

Cadet
Joined
Dec 8, 2021
Messages
4
I am trying to rebuild pool "T123"

I receive the following error message in 'jails'

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/jail.py", line 915, in get_activated_pool
pool = ioc.IOCage(skip_jails=True, reset_cache=True).get('', pool=True)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/iocage.py", line 95, in __init__
self.pool = PoolAndDataset().get_pool()
File "/usr/local/lib/python3.7/site-packages/iocage_lib/iocage.py", line 66, in get_pool
return ioc_json.IOCJson().json_get_value("pool")
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 1353, in __init__
super().__init__(location, checking_datasets, silent, callback)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 429, in __init__
self.pool, self.iocroot = self.get_pool_and_iocroot()
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 553, in get_pool_and_iocroot
pool = get_pool()
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 476, in get_pool
raise RuntimeError(f'{pools}\nYou have {len(matches)} pools'
RuntimeError: B1
T123
You have 2 poolsmarked active for iocage usage.
Run "iocage activate ZPOOL" on the preferred pool.


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 130, in call_method
io_thread=False)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1098, in _call
return await run_method(methodobj, *args)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1022, in _run_in_conn_threadpool
return await self.run_in_executor(self.__ws_threadpool, method, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1010, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 965, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/jail.py", line 917, in get_activated_pool
raise CallError(f'Error occurred getting activated pool: {e}')
middlewared.service_exception.CallError: [EFAULT] Error occurred getting activated pool: B1
T123
You have 2 poolsmarked active for iocage usage.
Run "iocage activate ZPOOL" on the preferred pool.
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
You have 2 poolsmarked active for iocage usage.
Run "iocage activate ZPOOL" on the preferred pool.
Do what it says !
You must choose which pool is active for iocage.
Run the command on cli substituting the pool name you select for ZPOOL
 
Top