RAIDZ2 replace disk problem

TombR

Dabbler
Joined
Apr 17, 2016
Messages
13
Hi All
I have a problem with REPLACEMENT disk (WD GREEN after WD RED the same capacity). Tested on linux S.M.A.R.T. is OK, no errors, cleared data by dd on linux. On disk no bad sectors (replacement disk). How to online this disk?
'zpool online main 1228652766114763662747' is no effect. From GUI too.

freenas1.jpg
freenas2.jpg
freenas3.jpg


Please help me with this situation. Please forgive me for my english.
Thanks for Yours help.
 
Last edited:
Joined
Oct 18, 2018
Messages
969
Hi @TombR.

I don't have a concrete solution for you off hand but I would suggest a few things.

First, post your system specs. Folks are more likely to be able to help you if you do. Feel free to edit your post above and include your FreeNAS Version and all all relevant hardware. It is better to be more specific.

Also, I think it is generally best to deal with the system via the UI exclusively where possible. The reason is that FreeNAS makes use of various settings and flags of ZFS and the OS that you might not be aware of. Even if the command seem to work there may be unintended side effects.

Finally, if you haven't done so, check out the User Manual for your version of FreeNAS. They manual contains documentation for how to replace a bad disk which might be sufficient to solve your problem.
 

TombR

Dabbler
Joined
Apr 17, 2016
Messages
13
When I try replace disk from UI, then get this message:

Request Method: POST
Request URL: https://192.168.0.10/storage/zpool-main/disk/replace/14486527611476362747/
Software Version: FreeNAS-11.1-U7 (b45bfcf29)
Exception Type: MiddlewareError
Exception Value: [MiddlewareError: Unable to GPT format the disk "ada2": gpart: arg0 'ada2': Invalid argument]
Exception Location: ./freenasUI/middleware/notifier.py in __gpt_labeldisk, line 380
Server time: Wt, 14 Maj 2019 17:21:03 +0200


Environment:

Software Version: FreeNAS-11.1-U7 (b45bfcf29)
Request Method: POST
Request URL: https://192.168.0.10/storage/zpool-main/disk/replace/14486527611476362747/


Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/storage/views.py" in zpool_disk_replace
785. if form.done():
File "./freenasUI/storage/forms.py" in done
2305. passphrase=passfile
File "./freenasUI/middleware/notifier.py" in zfs_replace_disk
1008. self.__gpt_labeldisk(type="freebsd-zfs", devname=to_disk, swapsize=swapsize)
File "./freenasUI/middleware/notifier.py" in __gpt_labeldisk
380. raise MiddlewareError(f'Unable to GPT format the disk "{devname}": {error}')

Exception Type: MiddlewareError at /storage/zpool-main/disk/replace/14486527611476362747/
Exception Value: [MiddlewareError: Unable to GPT format the disk "ada2": gpart: arg0 'ada2': Invalid argument
]

My configuration:
Celeron J1900/16GB DDR3 non-ECC/RAIDZ-2 8x2TB WD RED

Thanks for help.
 
Top