SOLVED How do you delete/detach mirrored boot device?

Status
Not open for further replies.

mow4cash

Contributor
Joined
Jan 20, 2017
Messages
132
I have a mirrored boot device set up. One of the usb sticks failed so I removed it a while back. I am trying won't replace the drive but it won't let me (says it is but never does). I was able to attach another usb drive but the existing mirror is still showing. How do I delete it so I don't see it anymore? When I try to detach it from the GUI I get this error.

Code:
Environment:

Software Version: FreeNAS-11-MASTER-201710220505 (937d04e)
Request Method: POST
Request URL: http://10.68.69.2:83/system/bootenv/pool/detach/12266311868557250629/


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/system/views.py" in bootenv_pool_detach
  497.			 c.call('boot.detach', label)
File "./freenasUI/system/views.py" in bootenv_pool_detach
  497.			 c.call('boot.detach', label)
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
  397.			 raise ClientException(c.error, c.errno, c.trace, c.extra)

Exception Type: ClientException at /system/bootenv/pool/detach/12266311868557250629/
Exception Value: [EINVAL] Failed to find vdev for 12266311868557250629
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
Try zpool detach from the CLI
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
Haha. That did it, I had to use the full device id instead of da1. This should be working from the GUI?

i agree. file a bug report
 
Status
Not open for further replies.
Top