Hello,
after reading hours in forums for a solution and testing around, I hope someone can help me.
I have a RAIDZ2 with 5 SAS disks. Now one is fault and i wanted to replace it. So I got to GUI and set the fault one offline. Shut the system down and installed the new one.
Back in the GUI I pressed the replace button but got the following message:
I tried to wipe the disk but nothing helped.
One thing seems trange, that before i installed the new drive, the fault one was on da0 and now it, I installed the new drive in the same bay, it is da5.
Could that be the problem?
Thanks in advance for help!
Peter
after reading hours in forums for a solution and testing around, I hope someone can help me.
I have a RAIDZ2 with 5 SAS disks. Now one is fault and i wanted to replace it. So I got to GUI and set the fault one offline. Shut the system down and installed the new one.
Code:
NAME STATE READ WRITE CKSUM zfsZ2 DEGRADED 0 0 0 raidz2-0 DEGRADED 0 0 0 gptid/7f72428a-1deb-11e9-8fe8-0fb6b5299048 ONLINE 0 0 0 15496530577974674740 OFFLINE 0 0 0 was /dev/gptid/82e24d0f-1deb-11e9-8fe8-0fb6b5299048 gptid/86b25b24-1deb-11e9-8fe8-0fb6b5299048 ONLINE 0 0 0 gptid/8ab9e4d9-1deb-11e9-8fe8-0fb6b5299048 ONLINE 0 0 0 gptid/8e600595-1deb-11e9-8fe8-0fb6b5299048 ONLINE 0 0 0
Back in the GUI I pressed the replace button but got the following message:
Code:
Request Method: POST Request URL: http://192.168.0.103/storage/zpool-zfsZ2/disk/replace/15496530577974674740/ Software Version: FreeNAS-11.1-U7 (b45bfcf29) Exception Type: MiddlewareError Exception Value: [MiddlewareError: Unable to GPT format the disk "da5": gpart: geom 'da5': File exists ] Exception Location: ./freenasUI/middleware/notifier.py in __gpt_labeldisk, line 380 Server time: So, 19 Jul 2020 12:23:39 +0200 Traceback Environment: Software Version: FreeNAS-11.1-U7 (b45bfcf29) Request Method: POST Request URL: http://192.168.0.103/storage/zpool-zfsZ2/disk/replace/15496530577974674740/ 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-zfsZ2/disk/replace/15496530577974674740/ Exception Value: [MiddlewareError: Unable to GPT format the disk "da5": gpart: geom 'da5': File exists ] Request information GET No GET data POST Variable Value __all__ '' force 'on' replace_disk 'da5' __form_id 'form_ZFSDiskReplacementForm' FILES No FILES data COOKIES Variable Value csrftoken '********' fntreeSaveStateCookie 'root%2Croot%2F60%2F123%2Croot%2F60%2F134%2Croot%2F211%2Croot%2F60%2F61%2Croot%2F187%2Croot%2F44%2Croot%2F28%2F41%2Croot%2F28%2F38' sessionid '9sh2o34zb2j5ii1b0hus4s6pkug9smhe' META Variable Value
I tried to wipe the disk but nothing helped.
One thing seems trange, that before i installed the new drive, the fault one was on da0 and now it, I installed the new drive in the same bay, it is da5.
Could that be the problem?
Thanks in advance for help!
Peter