Problem adding disk after it was destroyed in GUI

Status
Not open for further replies.

larsahl

Cadet
Joined
Aug 12, 2018
Messages
2
Hi,

I was using the GUI manager to destroy one disk.
And then I want to add it back and create it to the system again but got this fail message:
I guess it is due to the partition table still exist, but I have not manage to destroy the table in the console.
Was trying by using gpart destroy ada1 -F, but got the message gpart: Device busy.
Does anyone know what to do? Guess I have to clear the partation table and then the GUI is able to add it back to the freenas system.

Traceback
Request Method: POST

Request URL: http://192.168.1.3/storage/volumemanager/

Software Version: FreeNAS-11.1-U5 (8e2a858a1)

Exception Type: MiddlewareError

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

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

Server time: Sun, 12 Aug 2018 20:44:04 +0200


Environment:

Software Version: FreeNAS-11.1-U5 (8e2a858a1)
Request Method: POST
Request URL: http://192.168.1.3/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
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
148. if form.is_valid() and form.save():
File "./freenasUI/storage/forms.py" in save
309. raise e
File "./freenasUI/storage/forms.py" in save
298. 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/
Exception Value: [MiddlewareError: Unable to GPT format the disk "ada1": gpart: geom 'ada1': File exists
]
 

larsahl

Cadet
Joined
Aug 12, 2018
Messages
2
I manage to use a Ubuntu USB stick and remove the partition tables from the disk completely. Then I could create a new volume in the volume manager. However in the prompt I can read the following message which maybe gives some headache or maybe not:
GEOM: ada1: the primary GPT table is corrupt or invalid
GEOM: ada1: using the secondary instead - recovery strongly advised.
GEOM_ELI: Device ada1p1.eli created.
GEOM_ELI: Encryption: AES-XTS 128
GEOM_ELI: Crypto: software

I wounder what they mean with the primary GPT table is corrupt or invalid. And if I should do something about that.
And in that case what do to?
 
Status
Not open for further replies.
Top