mirror boot drive setup fails

Status
Not open for further replies.
Joined
Apr 30, 2017
Messages
8
I am trying to add a second flash drive to my FreeNAS. Whenever I attempt to set the mirror it fails to attach. I have reformatted the new disk, and re-attempted to attach it via GUI but it still fails. Any suggestions would be appreciated.
Code:
Request Method: POST
Request URL: http://10.1.12.2/system/bootenv/pool/attach/?label=da0p2
Software Version: FreeNAS-11.1-U1 (f7e246b8f)
Exception Type: MiddlewareError
Exception Value:
[MiddlewareError: Command '('gpart', 'add', '-t', 'freebsd-zfs', '-i', '2', '-a', '4k', '-s', '8096534528B', 'da1')' returned non-zero exit status 1.]
Exception Location: ./freenasUI/system/forms.py in done, line 298
Server time: Wed, 7 Mar 2018 21:41:40 -0600

Environment:

Software Version: FreeNAS-11.1-U1 (f7e246b8f)
Request Method: POST
Request URL: http://10.1.12.2/system/bootenv/pool/attach/?label=da0p2


Traceback:
File "./freenasUI/system/forms.py" in done
  296.				 c.call('boot.attach', devname, {'expand': self.cleaned_data['expand']})
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
  394.			 raise ClientException(c.error, c.errno, c.trace, c.extra)
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_attach
  497.			 form.done()
File "./freenasUI/system/forms.py" in done
  298.				 raise MiddlewareError(str(e))
File "./freenasUI/system/forms.py" in done
  298.				 raise MiddlewareError(str(e))

Exception Type: MiddlewareError at /system/bootenv/pool/attach/
Exception Value: [MiddlewareError: Command '('gpart', 'add', '-t', 'freebsd-zfs', '-i', '2', '-a', '4k', '-s', '8096534528B', 'da1')' returned non-zero exit status 1.]

Request information
GET
Variable Value
label 'da0p2'
POST
Variable Value
__all__ ''
attach_disk 'da1'
__form_id 'form_BootEnvPoolAttachForm'
FILES
No FILES data

COOKIES
Variable Value
csrftoken 'GJQUWlW72crS7DV19sMX78rcXaRnKA2dEl9u69e52YXZfbyPCno3JjHDFkFeuO6b'
sessionid 't4it81uf04n88f8bin0jcgtf63zxogqf'
fntreeSaveStateCookie 'root%2Croot%2F37%2Croot%2F37%2F47%2Croot%2F194%2Croot%2F38%2F48%2Croot%2F38%2F53%2Croot%2F260%2Croot%2F74%2Croot%2F74%2F75%2Croot%2F16%2Croot%2F56%2F66%2Croot%2F76%2F82%2Croot%2F76%2F78%2Croot%2F204%2Croot%2F92%2F93%2Croot%2F277%2Croot%2F252%2Croot%2F1%2Croot%2F76%2Croot%2F92%2Croot%2F252%2F262%2Croot%2F252%2F262%2F264%2Croot%2F56'
META
Variable Value
 
Last edited by a moderator:
D

dlavigne

Guest
Try updating to U2 first to see if that resolves it as that update had some boot mirror fixes in it.
 

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
This looks like there is not enough space on the second USB stick. The problem is that the boot partitions sometimes get larger on new releases, so a USB stick of the same size as the original does not have room to hold the new boot partition and an identically-sized ZFS partition as the old boot device.

Please identify which version of FreeNAS you are using. Later ones should at least say that the device is not large enough rather than just emit an error.
 
Status
Not open for further replies.
Top