First startup in a few years - database image malformed

Status
Not open for further replies.

Noon0

Cadet
Joined
Jan 11, 2018
Messages
6
Hi All, newbie here in need of help troubleshooting.

Hardware specs: Asus P8B75, 8 GB RAM, Intel 2.9Ghz cpu, 4 x 2TB WD Green setup in I believe RAIDZ2 (might be RAID10, not sure)

A few years back I installed FreeNAS 8.3 (on USB) and created software raid for my 4x2TB drives. Everything worked fine. It's been 3-4 years since I last booted the machine. Tonight after startup, hoping to get to a command prompt to browse the filesystem or issue some commands, I'm seeing a bunch of python error messages and other errors stating "database disk image is malformed". Can anyone shed some light on what this is?

If I end up having to re-image the FreeNAS OS (maybe latest version) into the USB, will the new version detect my RAID setup? Since I'm new to this, I'm worried about damaging the RAID using the new installation.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
It won't hurt to install 11.1 to new media and work from there. Output of zpool status once you're that far, please.
 

Noon0

Cadet
Joined
Jan 11, 2018
Messages
6
It won't hurt to install 11.1 to new media and work from there. Output of zpool status once you're that far, please.

Hi Eric! I installed FreeNAS 11 onto USB, loaded up successfully connected to LAN. Opened up the web interface through a laptop, logged in, went to Shell, issued "zpool status":

------------------------------------------------------------
Code:
[root@freenas ~]# zpool status												
  pool: freenas-boot															
 state: ONLINE																
  scan: none requested														
config:																		
																			  
	   NAME		STATE	 READ WRITE CKSUM								
	   freenas-boot  ONLINE	   0	 0	 0								
		 da0p2	 ONLINE	   0	 0	 0								
																			  
errors: No known data errors	

---------------------------------------------------------------

Previously, my RAID filesystem was under /mnt/storage/ however I'm not seeing it.. do I have to do some kind of import?

---------------------------------------------------------------
Code:
[root@freenas /]# ls -l																											
total 102																														  
-rw-r--r--   2 root  wheel   887 Jan 13 10:15 .cshrc																				
-rw-r--r--   1 root  wheel   177 Jan 13 10:15 .profile																			
lrwxr-xr-x   1 root  wheel	13 Jan 13 10:15 .rnd -> /var/tmp/.rnd																
drwxr-xr-x   2 root  wheel	47 Jan 13 10:15 bin																				  
drwxr-xr-x  10 root  wheel	59 Jan 13 11:34 boot																				
drwxr-xr-x   3 root  wheel	 3 Jan 13 10:15 compat																				
drwxr-xr-x   3 root  wheel	 3 Jan 13 10:15 conf																				
-r--r--r--   1 root  wheel  6142 Jan 13 10:15 COPYRIGHT																			
drwxr-xr-x   7 www   www	  13 Jan 13 11:32 data																				
dr-xr-xr-x  11 root  wheel   512 Jan 13 11:32 dev																				  
-rw-------   1 root  wheel  4096 Jan 13 11:34 entropy																			  
drwxr-xr-x  31 root  wheel  8000 Jan 13 11:30 etc																				  
drwxr-xr-x   4 root  wheel	56 Jan 13 10:15 lib																				  
drwxr-xr-x   3 root  wheel	 4 Jan 13 10:15 libexec																			  
drwxr-xr-x   2 root  wheel	 2 Jan 13 10:18 media																				
drwxr-xr-x   2 root  wheel	64 Jan 13 10:15 mnt																				  
drwxr-xr-x   2 root  wheel	 2 Jan 13 10:18 net																				  
dr-xr-xr-x   2 root  wheel	 2 Jan 13 10:18 proc																				
drwxr-xr-x   2 root  wheel   145 Jan 13 10:15 rescue																				
drwxr-xr-x   3 root  wheel	11 Jan 13 11:35 root																				
drwxr-xr-x   2 root  wheel   132 Jan 13 10:15 sbin																				
lrwxr-xr-x   1 root  wheel	11 Jan 13 10:15 sys -> usr/src/sys																	
lrwxr-xr-x   1 root  wheel	 8 Jan 13 10:15 tmp -> /var/tmp																	  
drwxr-xr-x  14 root  wheel	14 Jan 13 10:18 usr																				  
drwxr-xr-x  29 root  wheel  1792 Jan 13 11:30 var																				  
[root@freenas /]# cd mnt; ls -l																									
total 8																															
-rw-r--r--  1 root  wheel  5 Jan 13 10:15 md_size				
 
Last edited by a moderator:

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
I'm sorry, silly me wasn't thinking that the pool wouldn't have been imported by the new install, if it even was ZFS. Show us zpool import, please.
 

Noon0

Cadet
Joined
Jan 11, 2018
Messages
6
I'm sorry, silly me wasn't thinking that the pool wouldn't have been imported by the new install, if it even was ZFS. Show us zpool import, please.

Nice, I think we found it :)
Code:
[root@freenas /]# zpool import																									
   pool: storage																													
	id: 1325941819867788966																										
  state: ONLINE																													
 status: The pool was last accessed by another system.																			
 action: The pool can be imported using its name or numeric identifier and														
	   the '-f' flag.																											
   see: http://illumos.org/msg/ZFS-8000-EY																						
 config:
	   storage										 ONLINE																	
		 raidz1-0									  ONLINE																	
		   gptid/badda706-6e48-11e2-9d88-08606e683508  ONLINE
		   gptid/bbc0299a-6e48-11e2-9d88-08606e683508  ONLINE
		   gptid/bca53b49-6e48-11e2-9d88-08606e683508  ONLINE
		   gptid/bd867f70-6e48-11e2-9d88-08606e683508  ONLINE

So now it's a matter of doing zpool import storage? Also, is that saying the pool I had created was RAIDZ1? (could have sworn it was RAIDZ2).
 
Last edited by a moderator:

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
With only three disks, it can only be RAIDZ1, RAIDZ2 requires at least four disks.
 

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
Hm... I tried to fix the formatting in that code block, and might have moved the fourth drive so it looks like it is separate. I'll fix it.
 

Noon0

Cadet
Joined
Jan 11, 2018
Messages
6
Via the GUI, I went to Import Volume, selected the only zfs from the dropdown.. the output shows as follow. (Out of space where??)

Code:
Environment:

Software Version: FreeNAS-11.1-RELEASE (dc7d195f4)
Request Method: POST
Request URL: http://192.168.0.23/storage/auto-import/


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 "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in view
  68.			 return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in dispatch
  237.		 response = super(WizardView, self).dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in dispatch
  88.		 return handler(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in post
  300.				 return self.render_done(form, **kwargs)
File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in render_done
  357.								   **kwargs)
File "./freenasUI/storage/forms.py" in done
  881.		 self.volume = notifier().volume_import(vol['label'], vol['id'], key, passphrase, enc_disks)
File "./freenasUI/middleware/notifier.py" in volume_import
  2707.		 self.restart("system_datasets")
File "./freenasUI/middleware/notifier.py" in restart
  223.			 return c.call('service.restart', what, {'onetime': onetime}, **kwargs)
File "./freenasUI/middleware/notifier.py" in restart
  223.			 return c.call('service.restart', what, {'onetime': onetime}, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
  394.			 raise ClientException(c.error, c.errno, c.trace, c.extra)

Exception Type: ClientException at /storage/auto-import/
Exception Value: [EFAULT] Failed to create dataset: out of space
 

Noon0

Cadet
Joined
Jan 11, 2018
Messages
6
All good now. After importing through the GUI (Volumes -> Import Volumes), I was not able to see the mount. I never issued any CLI commands to attempt the import because I wasn't sure which commands to use. Shutdown the NAS.. turned it on a few hours later and there it was! I'm able to see the previous RAID volume.
 
Status
Not open for further replies.
Top