Unable to replace hard drive

Status
Not open for further replies.

gokhotit

Cadet
Joined
Jan 6, 2018
Messages
2
Hello all,

I have a serious problem going on with FreeNAS 11.1. I have a dying hard drive that I am trying to replace. However, whenever I try to offline the hard drive it gives the no valid replica error:
Code:
Environment:

Software Version: FreeNAS-11.1-RELEASE (dc7d195f4)
Request Method: POST
Request URL: http://192.168.1.5/storage/zpool-Media/disk/offline/gptid/70541891-e6cf-11e7-8c7e-002564fcc135/


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 disk_offline
  641.		 notifier().zfs_offline_disk(volume, label)
File "./freenasUI/middleware/notifier.py" in zfs_offline_disk
  1065.			 raise MiddlewareError('Disk offline failed: "%s"' % error)

Exception Type: MiddlewareError at /storage/zpool-Media/disk/offline/gptid/70541891-e6cf-11e7-8c7e-002564fcc135/
Exception Value: [MiddlewareError: Disk offline failed: "cannot offline gptid/70541891-e6cf-11e7-8c7e-002564fcc135: no valid replicas, "]

Ok fine, I will then detach the pool,erase, swap the drive, rebuild and start over. I have good backups not a problem.

NO, not going to happen. I get a device busy error
Code:
Environment:

Software Version: FreeNAS-11.1-RELEASE (dc7d195f4)
Request Method: POST
Request URL: http://192.168.1.5/storage/detach/1/


Traceback:
File "./freenasUI/middleware/notifier.py" in __rmdir_mountpoint
  2740.					 os.rmdir(path)
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 volume_detach
  714.					 cascade=form.cleaned_data.get('cascade', True))
File "./freenasUI/storage/models.py" in delete
  390.				 systemdataset=systemdataset,
File "./freenasUI/storage/models.py" in _delete
  369.			 n.volume_destroy(self)
File "./freenasUI/middleware/notifier.py" in volume_destroy
  1203.		 self.__rmdir_mountpoint(vol_mountpath)
File "./freenasUI/middleware/notifier.py" in __rmdir_mountpoint
  2743.									   % (path, str(ose), ))

Exception Type: MiddlewareError at /storage/detach/1/
Exception Value: [MiddlewareError: Failed to remove mountpoint /mnt/Media: [Errno 16] Device busy: '/mnt/Media']

The files are no longer accessible over the network, and I still have to replace this dying hard drive. Anyone know what is going on? What can I do?

Thank you in advance for any and all help with this matter.
 
Last edited by a moderator:

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
However, whenever I try to offline the hard drive it gives the no valid replica error:
Sounds like you need to post the output of zpool status.
 

gokhotit

Cadet
Joined
Jan 6, 2018
Messages
2
Wound up wiping the entire thing and starting over. Wiped Freenas to factory settings, replaced drive, rebuilt everything back up, and I am now good as new.
 
Status
Not open for further replies.
Top