SOLVED Woke up to: "One or more devices has experienced an unrecoverable error."

SerpentMage

Dabbler
Joined
May 16, 2017
Messages
29
Hello,

I woke up to an email alert from my NAS stating:
Code:
New alerts:
* Pool NASPOOL01 state is ONLINE: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected.


I logged in and no drives show down or degraded. I found this post from a while ago that helped me gather some information. ada2 is showing some cksum errors, however running smartctl on it shows that it's fine, I think?

Would someone be able to look through the info below and help me make sense of it?

Code:
@NASFS01:~ # zpool status -v
  pool: NASPOOL01
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P
  scan: scrub repaired 176K in 05:31:35 with 0 errors on Tue Dec  1 05:31:36 2020
config:

        NAME                                            STATE     READ WRITE CKSUM
        NASPOOL01                                       ONLINE       0     0     0
          raidz1-0                                      ONLINE       0     0     0
            gptid/45c6a5b1-d1d5-11e9-b338-d05099c29a6f  ONLINE       0     0     0
            gptid/b51632c3-d1a1-11e9-85b8-d05099c29a6f  ONLINE       0     0     0
            gptid/34f6e5f1-d025-11e9-87cf-d05099c29a6f  ONLINE       0     0     0
            gptid/dd509a05-d237-11e9-83ca-d05099c29a6f  ONLINE       0     0     4

errors: No known data errors

  pool: eDataStore
 state: ONLINE
  scan: scrub repaired 0B in 03:20:58 with 0 errors on Sun Nov 29 03:20:59 2020
config:

        NAME                                                STATE     READ WRITE CKSUM
        eDataStore                                          ONLINE       0     0     0
          raidz1-0                                          ONLINE       0     0     0
            gptid/9368e7cf-fe10-11e6-9c83-d05099c00cbc.eli  ONLINE       0     0     0
            gptid/68332ec6-b79c-11e8-a86b-d05099c29a6f.eli  ONLINE       0     0     0
            gptid/95024bc8-fe10-11e6-9c83-d05099c00cbc.eli  ONLINE       0     0     0
            gptid/95c787c3-fe10-11e6-9c83-d05099c00cbc.eli  ONLINE       0     0     0

errors: No known data errors

  pool: freenas-boot
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
        still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
        the pool may no longer be accessible by software that does not support
        the features. See zpool-features(5) for details.
  scan: scrub repaired 0B in 00:07:29 with 0 errors on Fri Nov 27 03:52:29 2020
config:

        NAME          STATE     READ WRITE CKSUM
        freenas-boot  ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            da1p2     ONLINE       0     0     0
            da0p2     ONLINE       0     0     0

errors: No known data errors


Code:
@NASFS01:~ # glabel status
                                      Name  Status  Components
gptid/b51632c3-d1a1-11e9-85b8-d05099c29a6f     N/A  ada0p2
gptid/45c6a5b1-d1d5-11e9-b338-d05099c29a6f     N/A  ada1p2
gptid/dd509a05-d237-11e9-83ca-d05099c29a6f     N/A  ada2p2
gptid/34f6e5f1-d025-11e9-87cf-d05099c29a6f     N/A  ada3p2
gptid/9368e7cf-fe10-11e6-9c83-d05099c00cbc     N/A  ada4p2
gptid/68332ec6-b79c-11e8-a86b-d05099c29a6f     N/A  ada5p2
gptid/95024bc8-fe10-11e6-9c83-d05099c00cbc     N/A  ada6p2
gptid/95c787c3-fe10-11e6-9c83-d05099c00cbc     N/A  ada7p2
gptid/465cdcb4-ed6b-11ea-ba9c-d05099c29a6f     N/A  da0p1
gptid/c72bd0fd-4fd5-11e9-ac21-d05099c29a6f     N/A  da1p1


Code:
@NASFS01:~ # smartctl -a /dev/ada2
smartctl 7.1 2019-12-30 r5022 [FreeBSD 12.2-RC3 amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD40EFRX-68N32N0
Serial Number:    WD-WCC7K5TUYS82
LU WWN Device Id: 5 0014ee 2bbd5f543
Firmware Version: 82.00A82
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Dec  1 06:01:50 2020 MST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (42960) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 456) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.
SCT capabilities:              (0x303d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   167   166   021    Pre-fail  Always       -       6616
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       13
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   086   086   000    Old_age   Always       -       10776
 10 Spin_Retry_Count        0x0032   100   253   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   253   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       13
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       1
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       14
194 Temperature_Celsius     0x0022   122   114   000    Old_age   Always       -       28
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     10746         -
# 2  Extended offline    Completed without error       00%     10634         -
# 3  Short offline       Completed without error       00%     10578         -
# 4  Extended offline    Completed without error       00%     10466         -
# 5  Short offline       Completed without error       00%     10410         -
# 6  Extended offline    Completed without error       00%     10298         -
# 7  Short offline       Completed without error       00%     10242         -
# 8  Extended offline    Completed without error       00%     10131         -
# 9  Short offline       Completed without error       00%     10074         -
#10  Extended offline    Completed without error       00%      9962         -
#11  Short offline       Completed without error       00%      9905         -
#12  Extended offline    Completed without error       00%      9794         -
#13  Short offline       Completed without error       00%      9738         -
#14  Extended offline    Completed without error       00%      9626         -
#15  Short offline       Completed without error       00%      9570         -
#16  Extended offline    Completed without error       00%      9460         -
#17  Short offline       Completed without error       00%      9404         -
#18  Extended offline    Completed without error       00%      9292         -
#19  Short offline       Completed without error       00%      9236         -
#20  Extended offline    Completed without error       00%      9124         -
#21  Short offline       Completed without error       00%      9068         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


Any help would be greatly appreciated, if I need to run more commands please let me know.

Thanks!
John aka SerpentMage
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
What is the output of smartctl -a /dev/ada2p2
 

SerpentMage

Dabbler
Joined
May 16, 2017
Messages
29
Output is below. Didn't bring up anything, but if I take the p2 off I get the same output as in the last code block in the original post, I can repost it if needed?
Code:
@NASFS01:~ # smartctl -a /dev/ada2p2
smartctl 7.1 2019-12-30 r5022 [FreeBSD 12.2-RC3 amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/ada2p2: Unable to detect device type
Please specify device type with the -d option.

Use smartctl -h to get a usage summary


Thanks!
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
How are these drives connected to your system?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
OK, so the disk showing the Checksum errors is ada2, so no questions there, but checksum errors can be related to cabling/connectivity, so the port or bay in your system is now something to think about.

If you run zpool clear NASPOOL01 and sit tight for a bit, you may find it was just a temporary problem, but try to do the mental exercise to see if you can recall anything that might have interfered with connectivity corresponding to the errors (or not too long before them).
 

SerpentMage

Dabbler
Joined
May 16, 2017
Messages
29
How are these drives connected to your system?

They're connected directly into the motherboard via SATA cable. Mobo is the infamous Asrock Rack C2550D4I. Working on building a new one but can't afford to finish it at the moment. :)

OK, so the disk showing the Checksum errors is ada2, so no questions there, but checksum errors can be related to cabling/connectivity, so the port or bay in your system is now something to think about.

If you run zpool clear NASPOOL01 and sit tight for a bit, you may find it was just a temporary problem, but try to do the mental exercise to see if you can recall anything that might have interfered with connectivity corresponding to the errors (or not too long before them).

I haven't changed anything recently, especially cables or ports or anything. The server was running it's scrub of the various pools last night, but I've had that setup on a schedule with no issues for over a year I think?

I can run "zpool clear NASPOOL01" and keep an eye on it. If I see it again maybe swap the cable out?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I can run "zpool clear NASPOOL01" and keep an eye on it. If I see it again maybe swap the cable out?
It sounds reasonable... just be in an increased state of awareness in case the next error actually results in something more sinister.
 

SerpentMage

Dabbler
Joined
May 16, 2017
Messages
29
Part of my morning routine is to log into my NAS to check a few things on it (even with the email alerts I'm paranoid lol). If it happens again even after a new cable, would the next step be trying to find a new/unused port on the Mobo? Or failing that maybe moving to an HBA controller card and get off the direct SATA ports?

Thanks Jailer and Sretalla for the help!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If it happens again even after a new cable, would the next step be trying to find a new/unused port on the Mobo? Or failing that maybe moving to an HBA controller card and get off the direct SATA ports?
Sounds good. That would be my next move in that situation. Eliminate each potential source of the error until it's (ideally reproducible and) gone.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
What is the output of smartctl -a /dev/ada2p2
Funny, can't check a partition.

@SerpentMage It looks like you are running routine SMART tests, keep that up. If you have a physical drive failure then it should show up there, unfortunately SMART tests are read-only tests and not write tests. You could run a read and write test on your drives, one at a time and then run a Scrub after each one was completed to verify you didn't mess up your data. You would use the dd command. Since this is not for the faint of heart, I'm not going to tell you how to use it, and if you want to use it then do some research but only do one drive at a time and then do a scrub, do the next drive and then a scrub, repeat for every drive. Since ada2 is suspect I would start there.

Good Luck
 

SerpentMage

Dabbler
Joined
May 16, 2017
Messages
29
I tried that same command on my other drives and they all showed the same reply, but works fine without the p2.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
I tried that same command on my other drives and they all showed the same reply, but works fine without the p2.
That is because "p2" indicates partition 2 of drive ada2. Smartctl only works on the drive as a whole "ada2". No big deal, @Jailer just made me laugh, I know he knows better, we all slip up from time to time.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
No big deal, @Jailer just made me laugh, I know he knows better, we all slip up from time to time.
That's what happens when you check the forum while working on something else at the same time (trying to wrap my head around docker.....). By brain is getting old and I can only do one thing at a time anymore. o_O
 
Last edited:

SerpentMage

Dabbler
Joined
May 16, 2017
Messages
29
I'm shocked I didn't screw something up in the post since I posted it before my first cup of coffee honestly. :)
 
Top