FreeNAS won't boot Error 5, Unretryable Error

Status
Not open for further replies.

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
My system went unresponsive today and I had to do a hard reboot. Now it's coming up with the same error over and over:

Code:
(da0:umass-sim0:0:0:0):  Error 5, Unretryable error
(da0:umass-sim0:0:0:0):  READ(10). CDB: 28 00 00 61 a0 0f 00 00 02 00
(da0:umass-sim0:0:0:0):  CAM status: SCSI Status Error
(da0:umass-sim0:0:0:0):  SCSI status: Check Condition
(da0:umass-sim0:0:0:0):  SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)


Not really sure what to do next but the system won't boot past this.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Go into the GUI --> System --> General then click on the Save config button at the bottom ;)
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
What are you doing exactly?

Who says that?
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
What are you doing exactly?

Who says that?
I'm on the shell of FreeNAS. I have the old volume already imported and seems to be fine. All I'm trying to do is grab the config off the old USB so I don't have to re setup all my users and cron jobs etc. I created a folder /mnt/oldusb but I'm not sure how to mount the old USB to that directory so I can get to /data/freenas-v1.db and copy it off the USB to my volume and import it via the GUI.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Well, execute camcontrol devlist and post the output. Plug the old USB stick. Re-execute camcontrol devlist and post the output. Execute zpool import and post the output.

Just to be sure: the old USB stick was a FreeNAS 9.3 install, right?
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
Well, execute camcontrol devlist and post the output. Plug the old USB stick. Re-execute camcontrol devlist and post the output. Execute zpool import and post the output.

Code:
[bwolfe@freenas] /% sudo camcontrol devlist
<Hitachi HDS5C3020ALA632 ML6OA800>  at scbus0 target 0 lun 0 (pass0,ada0)
<Hitachi HDS5C3020ALA632 ML6OA800>  at scbus1 target 0 lun 0 (pass1,ada1)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus2 target 0 lun 0 (pass2,ada2)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus3 target 0 lun 0 (pass3,ada3)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus4 target 0 lun 0 (pass4,ada4)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus5 target 0 lun 0 (pass5,ada5)
<SanDisk Ultra 1.00>               at scbus8 target 0 lun 0 (pass6,da0)

[bwolfe@freenas] /% sudo camcontrol devlist
<Hitachi HDS5C3020ALA632 ML6OA800>  at scbus0 target 0 lun 0 (pass0,ada0)
<Hitachi HDS5C3020ALA632 ML6OA800>  at scbus1 target 0 lun 0 (pass1,ada1)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus2 target 0 lun 0 (pass2,ada2)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus3 target 0 lun 0 (pass3,ada3)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus4 target 0 lun 0 (pass4,ada4)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus5 target 0 lun 0 (pass5,ada5)
<SanDisk Ultra 1.00>               at scbus8 target 0 lun 0 (pass6,da0)
<SanDisk Cruzer Edge 1.26>         at scbus9 target 0 lun 0 (da1,pass7)

[bwolfe@freenas] /% sudo zpool import
   pool: freenas-boot
     id: 6823956135361349698
  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:

        freenas-boot  ONLINE
          da1p2     ONLINE
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Ok, good.

Execute zpool import -f -R /mnt 6823956135361349698 oldboot
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I'm not sure if we are on the same page but I'm not trying to import the zpool. That automatically worked. I just want to get on the old USB drive and copy off the config file.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
No, this pool wasn't imported on his own. The proof is the output of zpool import, if the pool was imported then it wouldn't appear as importable with the zpool command.

Unfortunately this means the USB stick is corrupted beyond recovery, you can't do anything to recover the config AFAIK.

The only positive thing is that now you know you should backup the config after each change you made to it.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
There might be a backup somewhere on the .System dataset. Sorry, don't know the exact location, but the devs have been mentioning it lately.

You should still make regular backups, though.
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I couldn't recover the db. I setup backups now for the db to run hourly so hopefully it won't happen again. Thanks for all the help.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
The backup in 9.3 is in /var/db/system.
 
Status
Not open for further replies.
Top