boot device degraded after update

Status
Not open for further replies.

FlyingPersian

Patron
Joined
Jan 27, 2014
Messages
237
Hi
I just updated my FreeNAS from the latest to the current version. My NAS is running on a mirrored setup, but after updating one of the USB sticks is degraded. This is the message I get when I run "zpool status -x":

Code:
[root@freenas] ~# zpool status -x
  pool: freenas-boot
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://illumos.org/msg/ZFS-8000-2Q
  scan: none requested
config:

        NAME                      STATE     READ WRITE CKSUM
        freenas-boot              DEGRADED     0     0     0
          mirror-0                DEGRADED     0     0     0
            da0p2                 ONLINE       0     0     0
            11888006409378086365  UNAVAIL     20   410     0  was /dev/da1p2

errors: No known data errors


On the provided link I looked under "If the device has been replaced by another disk in the same physical slot, then the device can be replaced using a single argument to the 'zpool replace' command:" and ran "zpool replace freenas-boot da1p2". I got this error:

Code:
[root@freenas] ~# zpool replace freenas-boot da1p2
cannot open 'da1p2': no such GEOM provider
must be a full path or shorthand device name


Then I tried it with "/dev/da1p2":

Code:
[root@freenas] ~# zpool replace freenas-boot /dev/da1p2
cannot open '/dev/da1p2': No such file or directory


I the GUI under "replace --> member disk" no disks appear (I didn't put a different USB stick in). I don't think the disk itself is broken. My guess is that it hasn't been updated while the other one has been. How can I fix this? Thanks in advance!
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Please post the output of "camcontrol devlist"
 

FlyingPersian

Patron
Joined
Jan 27, 2014
Messages
237
Note that you want to do this from the GUI, not the command line. To verify, you are trying to replac the stick using the instructions in http://doc.freenas.org/9.10/freenas_system.html#boot?

This is what the status window looks like. I want to replace the USB stick with itself, is that possible? Or do I need to delete it then replace it?

NQwTh2p.jpg


Please post the output of "camcontrol devlist"

Code:
<WDC WD40EFRX-68WT0N0 80.00A80>    at scbus0 target 0 lun 0 (ada0,pass0)
<WDC WD40EFRX-68WT0N0 80.00A80>    at scbus1 target 0 lun 0 (ada1,pass1)
<WDC WD40EFRX-68WT0N0 80.00A80>    at scbus2 target 0 lun 0 (ada2,pass2)
<WDC WD40EFRX-68WT0N0 80.00A80>    at scbus3 target 0 lun 0 (ada3,pass3)
<WDC WD40EFRX-68WT0N0 82.00A82>    at scbus4 target 0 lun 0 (ada4,pass4)
<WDC WD40EFRX-68WT0N0 80.00A80>    at scbus5 target 0 lun 0 (ada5,pass5)
<Kingston DataTraveler 3.0 >       at scbus7 target 0 lun 0 (pass6,da0)
<Kingston DataTraveler 3.0 >       at scbus8 target 0 lun 0 (pass7)
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
It doesn't seem to be registered for registered with a SCSI (daX) handle, which suggests it might not even be functional, in which case, you'd need to replace it.
 

FlyingPersian

Patron
Joined
Jan 27, 2014
Messages
237
It doesn't seem to be registered for registered with a SCSI (daX) handle, which suggests it might not even be functional, in which case, you'd need to replace it.

God damn. Why do my USB Sticks keep breaking?! It's really random though that it happened right after updating. Are you 100% sure the stick is broken?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
It's really random though that it happened right after updating.
On the contrary, the update is rather hard on the boot device (by USB drive standards, anyway). On mirrored Toshiba 16GB drives, it used to take ~40+ minutes just to update.

Are you 100% sure the stick is broken?
No, but it seems rather likely.
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
use an ssd - that's what i did - couldn't be happier
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Have you tried plugging it into a different port?
 

FlyingPersian

Patron
Joined
Jan 27, 2014
Messages
237
Have you tried plugging it into a different port?

That actually helped! I had to put both sticks in different ports though because the sticks are too big to be next to/above each other. Now the "broken" stick is being resilvered. Thanks!
Is there a way to (regularely) check the status of a USB stick? Something like a S.M.A.R.T. for USB sticks?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Something like a S.M.A.R.T. for USB sticks?
No. Even getting SMART data from SATA drives through USB/SATA bridges can be a painful experience.
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
You can scrub the boot pool more frequently. I scrub mine weekly. System --> Boot --> Automatic scrub interval (in days)
Make sure you have email configured.
 

FlyingPersian

Patron
Joined
Jan 27, 2014
Messages
237
No. Even getting SMART data from SATA drives through USB/SATA bridges can be a painful experience.

Alright thanks!

You can scrub the boot pool more frequently. I scrub mine weekly. System --> Boot --> Automatic scrub interval (in days)
Make sure you have email configured.

I changed it to 7, so once a week, thanks! Email is setup since I have the NAS :p
 
Status
Not open for further replies.
Top