Project

General

Profile

Bug #69483

swap was not disabled with pool destruction rendering ada1 useless

Added by Bonnie Follweiler 5 months ago. Updated 2 months ago.

Status:
Closed
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

We have been using FN04 to test with so to test FN 11.1-U7 Internal2 we did a clean install and reset up the system.
We created a mirrored pool with ada1 and ada2, detached the pool with the check to destroy the data
When trying to recreate the pool we get a traceback error:

Request Method: POST
Request URL: http://fn04.lab.ixsystems.com/storage/volumemanager/
Software Version: FreeNAS-11.1-U6.3 (35cbff5a1)
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 379
Server time: Fri, 11 Jan 2019 11:41:58 -0800

TraceBack

Environment:

Software Version: FreeNAS-11.1-U6.3 (35cbff5a1)
Request Method: POST
Request URL: http://fn04.lab.ixsystems.com/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
772. vdevs = self.
_prepare_zfs_vdev(vgrp['disks'], vdev_swapsize, encrypt, volume)
File "./freenasUI/middleware/notifier.py" in __prepare_zfs_vdev
707. swapsize=swapsize)
File "./freenasUI/middleware/notifier.py" in __gpt_labeldisk
379. 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
]

Request information
GET

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

No FILES data
COOKIES
Variable Value
_ga 'GA1.2.71593078.1541175687'
referrer 'direct'
_mkto_trk 'id:855-MUM-343&token:_mch-ixsystems.com-1543932752693-20295'
csrftoken '********'
fntreeSaveStateCookie 'root%2Croot%2F64%2Croot%2F64%2F65%2Croot%2F64%2F65%2F66%2Croot%2F64%2F65%2F66%2F67'
sessionid '06oudqne21e8ydkz75zz1fvd2pdeubro'
META
Variable

Joe Maloney wiped the entire disk with dd if=/dev/zero of=/dev/ada1 bs=4m after doing sysctl kern.geom.debugflags=0x10 and it still shows device busy when trying to do gpart destroy -F ada1

ada1 is getting used for swap and turning off swap did not fix it
(screenshots provided)

We can use the manual pool creation to create a pool as long as we don't include ada1 in our pool.

swap.jpg (43.8 KB) swap.jpg Bonnie Follweiler, 01/11/2019 11:45 AM
swap2.jpg (44.8 KB) swap2.jpg Bonnie Follweiler, 01/11/2019 11:45 AM
debug-freenas-20190111115143.tgz (118 KB) debug-freenas-20190111115143.tgz Bonnie Follweiler, 01/11/2019 11:52 AM
48493
48495

History

#1 Updated by Bonnie Follweiler 5 months ago

So just more info to assist:
The mini had two drives ada1 and ada2 that I created a pool
I destroyed the pool and then it wouldn't =create a pool and I got ta trace back. I pulled ada1 drive, looked in drives and only ada2 was listed. I was able to create a pool with it. I destroyed that pool and restarted the system. The drive now was named ada1 and I got the trace back again when trying to create the pool

#2 Updated by Bonnie Follweiler 5 months ago

  • Seen in changed from 11.1-U7 to 11.1-U6.3

#3 Avatar?id=14398&size=24x24 Updated by Kris Moore 2 months ago

  • Status changed from Unscreened to Closed

Also available in: Atom PDF