Error add volume on FN 11.1 U6

Status
Not open for further replies.

Agung

Cadet
Joined
Oct 3, 2018
Messages
4
Is there a bug when manual add volume from volume manager on FN 11.1 U6 ?
Error something like this :
Request Method: POST

Request URL: http://192.168.101.x:yyyy/storage/volumemanager-zfs/

Software Version: FreeNAS-11.1-U6 (caffd76fa)

Exception Type: MiddlewareError

Exception Value:
[MiddlewareError: Unable to GPT format the disk "ada0": gpart: geom 'ada0': File exists
]

Exception Location: ./freenasUI/middleware/notifier.py in __gpt_labeldisk, line 359

Server time: Mon, 8 Oct 2018 18:45:05 +0700
Environment:

Software Version: FreeNAS-11.1-U6 (caffd76fa)
Request Method: POST
Request URL: http://192.168.101.x:xxxx/storage/volumemanager-zfs/


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 volumemanager_zfs
268. form.done(request, events)
File "./freenasUI/storage/forms.py" in done
724. notifier().create_volume(volume, groups=grouped, init_rand=init_rand)
File "./freenasUI/middleware/notifier.py" in create_volume
752. vdevs = self.__prepare_zfs_vdev(vgrp['disks'], vdev_swapsize, encrypt, volume)
File "./freenasUI/middleware/notifier.py" in __prepare_zfs_vdev
687. swapsize=swapsize)
File "./freenasUI/middleware/notifier.py" in __gpt_labeldisk
359. raise MiddlewareError(f'Unable to GPT format the disk "{devname}": {error}')

Exception Type: MiddlewareError at /storage/volumemanager-zfs/
Exception Value: [MiddlewareError: Unable to GPT format the disk "ada0": gpart: geom 'ada0': File exists
]


Request information
GET

No GET data

POST

Variable
Value

volume_name 'vol1'

volume_disks 'ada0'

dedup 'off'

__form_id 'dijit_form_Form_2'

FILES

No FILES data

COOKIES

Variable
Value

csrftoken '********'

fntreeSaveStateCookie 'root%2Croot%2F87%2F94%2Croot%2F54%2Croot%2F87%2Croot%2F54%2F55%2Croot%2F54%2F55%2F56%2F57%2Croot%2F85%2F95%2Croot%2F1%2F7%2Croot%2F60%2F61%2Croot%2F1%2F8%2Croot%2F63%2F64%2Croot%2F63%2F64%2F65%2Croot%2F60%2Croot%2F62%2F63%2Croot%2F62%2F63%2F64%2Croot%2F131%2F141%2Croot%2F63%2Croot%2F63%2F64%2F65%2F74%2Croot%2F136%2Croot%2F136%2F146%2Croot%2F68%2Croot%2F1%2F11%2Croot%2F1%2F10%2Croot%2F1%2F6%2Croot%2F57%2Croot%2F57%2F58%2Croot%2F106%2Croot%2F106%2F116%2Croot%2F57%2F58%2F59%2F60%2Croot%2F84%2Croot%2F84%2F94%2Croot%2F52%2F53%2Croot%2F101%2Croot%2F101%2F111%2Croot%2F117%2Croot%2F117%2F127%2Croot%2F60%2F61%2F62%2Croot%2F60%2F61%2F62%2F63%2Croot%2F52%2F53%2F54%2Croot%2F1%2F5%2Croot%2F59%2F60%2F61%2Croot%2F59%2F60%2F61%2F62%2Croot%2F59%2F60%2F61%2F66%2Croot%2F59%2F60%2F61%2F70%2Croot%2F59%2F60%2F61%2F74%2Croot%2F59%2F60%2F61%2F78%2Croot%2F1%2F9%2Croot%2F1%2F12%2Croot%2F66%2F67%2F68%2Croot%2F1%2F13%2Croot%2F68%2F69%2Croot%2F1%2F14%2Croot%2F70%2F71%2Croot%2F70%2F71%2F72%2Croot%2F70%2F71%2F72%2F97%2Croot%2F70%2F71%2F72%2F93%2Croot%2F1%2F2%2Croot%2F40%2F47%2Croot%2F156%2F168%2Croot%2F149%2Croot%2F62%2Croot%2F1'

sessionid '3gud8mg3c49jt13npu7z14u6912q1hkd'

META

Variable Value
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
So, you should not have getting such a nasty error, the fact that the error is not gracefully handled is certainly a bug.

My idea: It seems maybe the drive you're using was used previously for something? If so, use some tool to COMPLETELY WIPE OUT any partitions/partition tables on the drive, and try it again. See if the problem goes away.

Either way, we can file a bug ticket to have it looked at, but let's try that first.
 
Status
Not open for further replies.
Top