11.2 - can't replace disk from GUI

file_haver

Explorer
Joined
Sep 19, 2018
Messages
55
When I go to my pool status and attempt to replace a drive with an unused one, I get the following error

Command '('gpart', 'create', '-s', 'gpt', '/dev/ada0')' returned non-zero exit status 1.

In this case i'm trying to replace ada1 with ada0. How can I get around this error?
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080

file_haver

Explorer
Joined
Sep 19, 2018
Messages
55
System information per the:

Updated Forum Rules 12/5/18
https://forums.freenas.org/index.php?threads/updated-forum-rules-12-5-18.45124/

Also, did you read the manual?
http://doc.freenas.org/11/freenas.html

Thanks, i added my SATA controller and drive details to my signature.

Yes i have the manual open, i've gone through it carefully, and searched the forum, as well as attempted to do the command manually in the shell. I am actually attempting to do section 9.4.2 of the manual step by step exactly.

I also tried using gpart create -s gpt ada0 in the shell but then I get gpart: geom 'ada0': Operation not permitted

I am attempting to replace ada1 with ada0. My RAID1 is made up of ada1 and ada2. Prior to attempting to replace the drive, I followed the manual's instructions exactly on testing a new drive before utilizing it, which included wiping the drive, so ada0 is currently post-wipe with no intact partition table.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
You still have not indicated the version of FreeNAS that you are using.
If you are using version 11.2, which is new, this could be a bug worthy of a bug report.
 

file_haver

Explorer
Joined
Sep 19, 2018
Messages
55
You still have not indicated the version of FreeNAS that you are using.
If you are using version 11.2, which is new, this could be a bug worthy of a bug report.
Sorry yes, i only left the version in the thread title.
I'll make a bug report.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
Sorry yes, i only left the version in the thread title.

I'll make a bug report.
From the app on my phone, the thread title is not visible to me once I have entered the message thread. I can only see the content of the messages, not even the signature is visible.
The best course of action is to include all relevant information in the message body to ensure that the people trying to help you have the information they need.
 

dduck

Cadet
Joined
Jan 7, 2019
Messages
2
hallo,
same here.... 1 TB seagate ...
with geparted i can delete and create on this hdd without errors.

Code:
Request Method:     POST
Request URL:     http://192.168.20.20/legacy/storage/volumemanager/
Software Version:     FreeNAS-11.2-RC2 (0fe4fb6d6)
Exception Type:     ClientException
Exception Value:     

Command '('gpart', 'create', '-s', 'gpt', '/dev/ada1')' returned non-zero exit status 1.

Exception Location:     /usr/local/lib/python3.6/site-packages/middlewared/client/client.py in call, line 477
Server time:     Mo, 7 Jan 2019 20:31:58 +0100
Traceback
----------------------------------------------------------------------------------
Environment:

Software Version: FreeNAS-11.2-RC2 (0fe4fb6d6)
Request Method: POST
Request URL: http://192.168.20.20/legacy/storage/volumemanager/


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
  163.         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
  148.             if form.is_valid() and form.save():
File "./freenasUI/storage/forms.py" in save
  311.             raise e
File "./freenasUI/storage/forms.py" in save
  300.                 notifier().create_volume(volume, groups=grouped, init_rand=init_rand)
File "./freenasUI/middleware/notifier.py" in create_volume
  759.             vdevs = self.__prepare_zfs_vdev(vgrp['disks'], vdev_swapsize, encrypt, volume)
File "./freenasUI/middleware/notifier.py" in __prepare_zfs_vdev
  694.                                  swapsize=swapsize)
File "./freenasUI/middleware/notifier.py" in __gpt_labeldisk
  340.             c.call('disk.wipe', devname, 'QUICK', job=True)
File "./freenasUI/middleware/notifier.py" in __gpt_labeldisk
  340.             c.call('disk.wipe', devname, 'QUICK', job=True)
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
  477.                 raise ClientException(job['error'], trace=job['exception'])

Exception Type: ClientException at /legacy/storage/volumemanager/
Exception Value: Command '('gpart', 'create', '-s', 'gpt', '/dev/ada1')' returned non-zero exit status 1.
----------------------------------------------------------------------------------
Request information
GET

No GET data
POST
Variable     Value
__all__     ''
volume_name     'pool1'
layout-__all__     ''
layout-TOTAL_FORMS     '1'
layout-INITIAL_FORMS     '0'
layout-0-vdevtype     'stripe'
layout-0-disks     'ada1'
__form_id     'dijit_form_Form_0'
FILES

No FILES data
COOKIES
Variable     Value
fntreeSaveStateCookie     
csrftoken     
sessionid     
META
Variable     Value
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
hallo,
same here.... 1 TB seagate ...
with geparted i can delete and create on this hdd without errors.
You might want to submit a bug report. I don't see where the OP told us what his report number was, so there may not be one yet.
 

dduck

Cadet
Joined
Jan 7, 2019
Messages
2
the error message i got with the 1 TB hdd.
blocksize of the 1TB ar 512 and ext4 formatted.
i tryed again with 160 GB hdd all function are fine and no errors.
-edit
tryed again with another 1TB same brand and model ... same error.

something wrong in bios?
 
Last edited:
Top