I/O Error on Import

Status
Not open for further replies.

BTJ

Cadet
Joined
Aug 29, 2018
Messages
3
After a power outage, my volume won't import on boot.
I had to use a fresh install just to get it to boot to the GUI. When I re-import my old config, it stops mid-boot to a DB> prompt.

zpool import
Code:
	id: 12881666984181511294
  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:

	Volume1										 ONLINE
	  raidz1-0									  ONLINE
		gptid/2c768e52-0c28-11e7-94d3-3085a9ee45b4  ONLINE
		gptid/a3fe838c-3f34-11e7-a2d9-3085a9ee45b4  ONLINE
		gptid/1ae02e97-c0e4-11e6-a3e2-3085a9ee45b4  ONLINE
		gptid/4cff6522-067b-11e7-94d3-3085a9ee45b4  ONLINE
		gptid/0ef523f5-ea8e-11e6-9baa-3085a9ee45b4  ONLINE


zpool import Volume1
Code:
cannot import 'Volume1': pool may be in use from other system, it was last accessed by  (hostid: 0x5dabc964) on Fri Aug 17 07:00:16 2018
use '-f' to import anyway


zpool import -f Volume1 and zpool import -F -f Volume1
Starts importing, hits an error and reboots. I see a "restart on panic" in the log during boot.

zpool status
Code:
  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


camcontrol devlist
Code:
<ST10000VN0004-1ZD101 SC60>		at scbus0 target 0 lun 0 (pass0,ada0)
<ST10000VN0004-1ZD101 SC60>		at scbus1 target 0 lun 0 (pass1,ada1)
<ST10000VN0004-1ZD101 SC60>		at scbus2 target 0 lun 0 (pass2,ada2)
<ST10000VN0004-1ZD101 SC60>		at scbus3 target 0 lun 0 (pass3,ada3)
<ST10000VN0004-1ZD101 SC60>		at scbus4 target 0 lun 0 (pass4,ada4)
<SanDisk Cruzer Fit 1.27>		  at scbus6 target 0 lun 0 (pass5,da0)


I'm not sure what to try next. I would appreciate any help.
 
Last edited:

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
I don't know what to tell you sir. Evidently, you did not have a UPS backing up the system, so presumably the power outage hit you mid-transaction on your pool, or perhaps concomitant with the outage was a voltage spike. I'll socialize your post around to a few other guys and see if some advanced voodoo can help---you may have to roll-back transactions or something.

@m0nkey_ @Ericloewe @kdragon75

You may also consider coming into the irc channel (#freenas on freenode) for live assistance.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
One thing you can try is to try and import it with 11.2-Beta2, which has numerous improvements to imports of dodgy pools, compared to 11.1.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
One thing you can try is to try and import it with 11.2-Beta2, which has numerous improvements to imports of dodgy pools, compared to 11.1.
Interesting. Did not know. Wherein does the improvement lie? In the FreeBSD codebase, or something we've done?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
It's upstream ZFS code pulled into FreeBSD before Beta1 was released, IIRC. Several situations that would cause panics now behave better. One extreme is that a pool missing a vdev can be imported read-only since metadata has copies=2 or =3. Any regular data with copies =2 or =3 set will also be readable. It was on BSDnow some time ago.
 

BTJ

Cadet
Joined
Aug 29, 2018
Messages
3
I've updated to 11.2-BETA2 (no config import), and I've only tried importing my Volume1 via the GUI. Below is a screenshot of the results. This looks like the same error when I fresh installed 9.10.2 and imported my backup-config.db.

I figured I'd wait for a reply before running other cli commands I'm not familiar with.

IMG_1803_cropped.jpg
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
blkptr at ADDR has invalid checksum 0

This should have been quickly solved by rolling back a few transactions. What's the output of zpool import -F -f -n poolname? Don't forget the -n, or you'll have to wait a few minutes...
 

BTJ

Cadet
Joined
Aug 29, 2018
Messages
3
I get the same output as in the screenshot above in my last post. I had to boot into Single Mode, which I assume is fine, due to it now always trying to import the volume on startup. On the screen during startup, I did notice it said it can't find "Volume1", and on the import, it tries to import by the volume Id.

Side question, should I be trying to import my old config, then trying to import? Or is importing a volume on a fresh install, manually doing what the config would had done for me? Namely because, my config is from a 9.10.2 build, and I'm not sure if it's OK to import that into an 11.x build.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
It panics with. -n? That's nasty. I'm not sure the pool can be trusted.
 
Status
Not open for further replies.
Top