SOLVED Error Disconnecting Pool

theaddies

Contributor
Joined
Mar 28, 2015
Messages
105
I am trying to destroy a pool so that I can rebuild it with additional disks. I have created a replication on a separate pool and plan to reconfigure the existing pool with additional drives. When I go to destroy the original pool the message I receive is "Error exporting/disconnecting pool". Is there something I could be missing? I tried to delete all the tasks associated with this pool thinking that might be the issue. It seems not to be. I appreciate the help in advance.
 

theaddies

Contributor
Joined
Mar 28, 2015
Messages
105
I went to the legacy interface and tried to delete the pool there. The error I received was
Code:
Request Method:     POST
Request URL:     http://freenas.bigdaddy/legacy/storage/detach/1/
Software Version:     FreeNAS-11.2-U3 (e140b6b8a)
Exception Type:     MiddlewareError
Exception Value:     

[MiddlewareError: jail not found]

Exception Location:     ./freenasUI/plugins/models.py in _do_delete, line 165
Server time:     Tue, 9 Apr 2019 21:34:29 -0400

And then the traceback message is:
Code:
Environment:

Software Version: FreeNAS-11.2-U3 (e140b6b8a)
Request Method: POST
Request URL: http://freenas.bigdaddy/legacy/storage/detach/1/


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 volume_detach
  740.                     cascade=form.cleaned_data.get('cascade', True))
File "./freenasUI/storage/models.py" in delete
  412.                 systemdataset=systemdataset,
File "./freenasUI/storage/models.py" in _delete
  391.             n.volume_destroy(self)
File "./freenasUI/middleware/notifier.py" in volume_destroy
  1195.         self.__destroy_zfs_volume(volume)
File "./freenasUI/middleware/notifier.py" in __destroy_zfs_volume
  951.             self.delete_plugins()
File "./freenasUI/middleware/notifier.py" in delete_plugins
  1710.             p.delete(force=force)
File "./freenasUI/plugins/models.py" in delete
  189.                 self._do_delete(force=force)
File "./freenasUI/plugins/models.py" in _do_delete
  165.             raise MiddlewareError(_("jail not found"))

Exception Type: MiddlewareError at /legacy/storage/detach/1/
Exception Value: [MiddlewareError: jail not found]
 

theaddies

Contributor
Joined
Mar 28, 2015
Messages
105
I fixed this myself and thought I would post. I am not exactly sure what worked, but it seemed as though I had an old jail from FreeNAS 9.x that I was unable to delete. I went into the old GUI and deleted the jail storage. I was then able to detach the pool.
 

Vincent Jansen

Explorer
Joined
May 16, 2014
Messages
82
I fixed this myself and thought I would post. I am not exactly sure what worked, but it seemed as though I had an old jail from FreeNAS 9.x that I was unable to delete. I went into the old GUI and deleted the jail storage. I was then able to detach the pool.
Im getting this error as well. How do you get into the old gui, I thought they removed that in truenas.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
How do you get into the old gui, I thought they removed that in truenas.
You don't.

You would use zfs destroy (or the GUI) to get rid of the warden jail dataset(s)
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
but there is no jail visible.
Which is why you can only destroy the jail datasets... probably on your pool under jails.. you can check with zfs list | grep jail
 

Vincent Jansen

Explorer
Joined
May 16, 2014
Messages
82
Screenshot 2023-07-17 at 15.57.47.png
 

Attachments

  • Screenshot 2023-07-17 at 15.57.12.png
    Screenshot 2023-07-17 at 15.57.12.png
    29.6 KB · Views: 49
  • Screenshot 2023-07-17 at 16.18.55.png
    Screenshot 2023-07-17 at 16.18.55.png
    21 KB · Views: 48

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You don't have the same problem as the OP in this thread.

You have a zombie pool.
 
Top