Auto import zfs volume from previous version fails

Status
Not open for further replies.

Blink

Cadet
Joined
Oct 7, 2014
Messages
3
Hello fellow FreeNASers,

I'm having some trouble trying to auto import an unencrypted raidZ1 volume though the GUI on FreeNAS 9.2.1.8 that was created by a previous version. I'm not sure which previous version exactly, my USB stick died after a reboot. I can however mount it on the CLI with zpool import -R /mnt volume_name and see the data.

I did a search on the forum but didn't find anything that seemed to fit my situation.

Here is a screenshot after the auto import fails (which takes several minutes before failing):

v2UQ359.png


And the Traceback text:
Code:
Environment:

Software Version: FreeNAS-9.2.1.8-RELEASE-x64 (e625626)
Request Method: POST
Request URL: http://1.1.1.2/storage/auto-import/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  107.                     response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
  158.         return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  22.                 return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py" in view
  69.             return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/formtools/wizard/views.py" in dispatch
  236.         response = super(WizardView, self).dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
  87.         return handler(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/formtools/wizard/views.py" in post
  297.                 return self.render_done(form, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/formtools/wizard/views.py" in render_done
  350.         done_response = self.done(final_form_list, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/storage/forms.py" in done
  1080.         notifier().restart("system_datasets")
File "/usr/local/www/freenasUI/../freenasUI/middleware/notifier.py" in restart
  363.         self._simplecmd("restart", what)
File "/usr/local/www/freenasUI/../freenasUI/middleware/notifier.py" in _simplecmd
  239.         f()
File "/usr/local/www/freenasUI/../freenasUI/middleware/notifier.py" in _restart_system_datasets
  4908.         systemdataset = self.system_dataset_create()
File "/usr/local/www/freenasUI/../freenasUI/middleware/notifier.py" in system_dataset_create
  5031.                 os.chmod('/mnt/%s' % dataset, 0755)

Exception Type: OSError at /storage/auto-import/
Exception Value: [Errno 2] No such file or directory: '/mnt/iscsi_volume/.system'


zpool import output:
Code:
[root@freenas] ~# zpool import
   pool: iscsi_volume
     id: 5582542519214794060
  state: ONLINE
status: The pool is formatted using a legacy on-disk version.
action: The pool can be imported using its name or numeric identifier, though
        some features will not be available without an explicit 'zpool upgrade'.
config:

        iscsi_volume                                    ONLINE
          mirror-0                                      ONLINE
            gptid/326acf61-21d0-11e1-b03f-d48564a10b18  ONLINE
            gptid/32d59646-21d0-11e1-b03f-d48564a10b18  ONLINE
            gptid/33459bd8-21d0-11e1-b03f-d48564a10b18  ONLINE


Any help or suggestions would be greatly appreciated.

Thanks!
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Is the pool like 100% full or something?

Does a .system dataset exist on your pool?
 

Blink

Cadet
Joined
Oct 7, 2014
Messages
3
Hey cyberjock, wow thanks for the quick reply.

Yes, it is 100% full and I don't see a .system file in there.

Code:
[root@freenas] ~# df -h
Filesystem             Size    Used   Avail Capacity  Mounted on
/dev/ufs/FreeNASs1a    926M    704M    148M    83%    /
devfs                  1.0k    1.0k      0B   100%    /dev
/dev/md0               4.6M    3.3M    903k    79%    /etc
/dev/md1               823k    2.0k    756k     0%    /mnt
/dev/md2               149M     12M    124M     9%    /var
/dev/ufs/FreeNASs4      19M    661k     17M     4%    /data
iscsi_volume           455G    455G      0B   100%    /mnt/iscsi_volume
[root@freenas] ~# ls -al /mnt/iscsi_volume/
total 477379672
drwxr-xr-x  2 root  wheel             3 Dec  8  2011 ./
drwxr-xr-x  4 root  wheel           512 Oct  7 20:39 ../
-rw-r--r--  1 root  wheel  485331304448 Jul 19  2013 extent0
[root@freenas] ~#
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Well, there's your problem. Now you have two problems:

1. you need to free up disk space for the .system dataset
2. your iSCSI extent is possibly trashed.

So remember above when you said that your USB stick died after a reboot? I bet the reboot was because you filled the pool to 100% and caused the system to crash. ;)
 

Blink

Cadet
Joined
Oct 7, 2014
Messages
3
I was afraid of that. Going to try copying the extent file off over SCP and rebuilding it with a couple of larger disks. Nothing critical on there that's not backed up but would be nice to have it back as is.

Appreciate the help, thanks. :)
 
Status
Not open for further replies.
Top