I just started making my NAS as it seems one of HDDs is failing. What to do?

I just installed TrueNAS baremetal on UGREEN DXP4800 pro. The initial transefer of data from my old Synology was ok. However, today, during a heavy load - I initially made my collections of different media into separate datasets (for Movies, TV series, music, books etc) and now I move them via rsync to folders in a single dataset, this means TBs of data. My setup is 4x 6Tb HDDs in RAIDZ1 and I got the following error:

Pool tank state is ONLINE: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected. 

Now the copying has finished, zpool status shows

zpool status -v tank pool: tank state: ONLINEstatus: 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

with 13 read errors on the 3rd disk. All disks are brand new WD Red Plus 6 TB (WD60EFPX) and before installing TrueNAS I conducted long SMART tests on all HDD and all were ok (this was like 1.5 weeks ago).

What should I do now? I ain’t 100% this is HDD issue, maybe a connection or something. Should I run scrub on my pool or a long SMART test on the problem disk first? Where is SMART tests in the newest stable TrueNAS? I don’t see it in web GUI under storage (old videos showed there was such a button but no more)

This is why paranoid people burn-in their HDDs for days (week[s] depending on hdd size) before putting data on them :frowning:

If you could provide the full output of the smart results smartctl -a /dev/sdPROBLEMDRIVELETTERHERE and zpool status into nice preformatted tables (< at the start with /> at the end of the output) then we can review further.

SMART Test is no longer in the GUI because of reasons that I personally think are stupid, but it was the dev’s choice (I’m going to paraphrase here, but seems some of their enterprise customers were getting ā€œfalse positivesā€ so SMART in the GUI was basically gutted). So you’ll have to get friendly with CLI.

After looking at the full smart output for the drive in question, hopefully, we can guide you a bit more.

1 Like

Follow the Master:

Check, replace or permute your cables. Check HBA (if any) and cooling.

1 Like

@TemplarB
Do not panic.

You have been given good advice. Also, in my signature is a link to Drive troubleshooting charts. It is a step by step troubleshooting aid.

You have the possibility of several things causing the issue.

  1. Failing drive, but not likely until you have provided some SMART data.
  2. You said the system was very active when you started to move files, this could be a hardware stability issue such as an HBA.
  3. You did not specify the drive model. You might be running SMR drives, not a good thing.

Take a look at the guide i created, it should help quite a bit.

Good luck

1 Like

Thanks for a quick reply. I have to admit, I don’t fully understand atm which disk is failing.

zpool status -v tank shows

config:

    NAME                                      STATE     READ WRITE CKSUM
    tank                                      ONLINE       0     0     0
      raidz1-0                                ONLINE       0     0     0
        4acee0f7-2b8b-4677-adb4-60c2e148369a  ONLINE       0     0     0
        f485766d-d37d-45e3-9a1a-9d3125e6c36c  ONLINE       0     0     0
        f599ccd1-8849-4c4b-ab4d-0535741e8f68  ONLINE      13     0     0
        a439536b-a1d2-4d2d-9ff4-f97e247cc288  ONLINE       0     0     0

errors: No known data errors

Does it mean that the third HDD is failing? Because (following AI advice) I ran ā€œsudo dmesg | tail -n 50ā€ and there are lines like

[45949.674580] ata1.00: error: { UNC }
[45949.679989] ata1.00: configured for UDMA/133
[45949.680069] sd 0:0:0:0: [sda] tag#20 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=2s
[45949.680081] sd 0:0:0:0: [sda] tag#20 Sense Key : Medium Error [current]
[45949.680090] sd 0:0:0:0: [sda] tag#20 Add. Sense: Unrecovered read error - auto reallocate failed
[45949.680098] sd 0:0:0:0: [sda] tag#20 CDB: Read(16) 88 00 00 00 00 00 f8 97 d1 50 00 00 05 58 00 00
[45949.680103] I/O error, dev sda, sector 4170699784 op 0x0:(READ) flags 0x0 phys_seg 6 prio class 2
[45949.680131] zio pool=tank vdev=/dev/disk/by-partuuid/f599ccd1-8849-4c4b-ab4d-0535741e8f68 error=5 type=1 offset=2135397232640 size=352256 flags=3146112
[45949.680183] ata1: EH complete
[50533.532487] atlantic 0000:02:00.0 enp2s0: atlantic: link change old 0 new 10000
[64191.497648] atlantic 0000:02:00.0 enp2s0: atlantic: link change old 10000 new 0
[66503.665211] atlantic 0000:02:00.0 enp2s0: atlantic: link change old 0 new 10000
[71123.140022] perf: interrupt took too long (2539 > 2500), lowering kernel.perf_event_max_sample_rate to 78750
[74050.755939] ata1.00: exception Emask 0x0 SAct 0x800 SErr 0x0 action 0x0
[74050.755966] ata1.00: irq_stat 0x40000008
[74050.755974] ata1.00: failed command: READ FPDMA QUEUED
[74050.755979] ata1.00: cmd 60/a8:58:38:be:fc/02:00:f8:00:00/40 tag 11 ncq dma 348160 in
res 41/40:00:60:bf:fc/00:00:f8:00:00/00 Emask 0x409 (media error)
[74050.756001] ata1.00: status: { DRDY ERR }
[74050.756006] ata1.00: error: { UNC }
[74050.760091] ata1.00: configured for UDMA/133
[74050.760140] sd 0:0:0:0: [sda] tag#11 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=2s
[74050.760151] sd 0:0:0:0: [sda] tag#11 Sense Key : Medium Error [current]
[74050.760157] sd 0:0:0:0: [sda] tag#11 Add. Sense: Unrecovered read error - auto reallocate failed
[74050.760163] sd 0:0:0:0: [sda] tag#11 CDB: Read(16) 88 00 00 00 00 00 f8 fc be 38 00 00 02 a8 00 00
[74050.760166] I/O error, dev sda, sector 4177313632 op 0x0:(READ) flags 0x0 phys_seg 4 prio class 2
[74050.760189] zio pool=tank vdev=/dev/disk/by-partuuid/f599ccd1-8849-4c4b-ab4d-0535741e8f68 error=5 type=1 offset=2138783379456 size=348160 flags=3145856
[74050.760237] ata1: EH complete
[74053.571896] ata1.00: exception Emask 0x0 SAct 0x2410000 SErr 0x0 action 0x0
[74053.571945] ata1.00: irq_stat 0x40000008
[74053.571955] ata1.00: failed command: READ FPDMA QUEUED
[74053.571962] ata1.00: cmd 60/58:b0:90:cb:fc/05:00:f8:00:00/40 tag 22 ncq dma 700416 in
res 41/40:00:20:ce:fc/00:00:f8:00:00/00 Emask 0x409 (media error)
[74053.571986] ata1.00: status: { DRDY ERR }
[74053.571993] ata1.00: error: { UNC }
[74053.575943] ata1.00: configured for UDMA/133
[74053.575997] sd 0:0:0:0: [sda] tag#22 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=2s
[74053.576006] sd 0:0:0:0: [sda] tag#22 Sense Key : Medium Error [current]
[74053.576012] sd 0:0:0:0: [sda] tag#22 Add. Sense: Unrecovered read error - auto reallocate failed
[74053.576017] sd 0:0:0:0: [sda] tag#22 CDB: Read(16) 88 00 00 00 00 00 f8 fc cb 90 00 00 05 58 00 00
[74053.576021] I/O error, dev sda, sector 4177317408 op 0x0:(READ) flags 0x0 phys_seg 7 prio class 2
[74053.576040] zio pool=tank vdev=/dev/disk/by-partuuid/f599ccd1-8849-4c4b-ab4d-0535741e8f68 error=5 type=1 offset=2138785128448 size=700416 flags=2148533376
[74053.576069] ata1: EH complete
[89348.810450] br-faaebdfc51b7: port 1(vethb355700) entered blocking state
[89348.810456] br-faaebdfc51b7: port 1(vethb355700) entered disabled state
[89348.810463] vethb355700: entered allmulticast mode
[89348.810502] vethb355700: entered promiscuous mode
[89348.853218] eth0: renamed from vethe6383e1
[89348.855680] br-faaebdfc51b7: port 1(vethb355700) entered blocking state
[89348.855689] br-faaebdfc51b7: port 1(vethb355700) entered forwarding state

which suggests that sda is failing. Running sudo smartctl -a /dev/sda gives

smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.12.99-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD60EFPX-68C5ZN0
Serial Number:    WD-xxxxxx
LU WWN Device Id: 5 0014ee 2c1dc63ae
Firmware Version: 81.00A81
User Capacity:    6,001,175,126,016 bytes [6.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database 7.3/5528
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:    Mon Aug 24 21:44:32 2026 EEST
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:                (61020) 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:        ( 633) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.
SCT capabilities:              (0x3039) 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   230   225   021    Pre-fail  Always       -       3466
4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       9
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   100   100   000    Old_age   Always       -       320
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       -       5
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       0
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       304
194 Temperature_Celsius     0x0022   113   108   000    Old_age   Always       -       37
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  Extended offline    Completed without error       00%        26         -

2  Extended offline    Aborted by host               90%        14         -

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.

The above only provides legacy SMART information - try ā€˜smartctl -x’ for more

and it has no errors logged. Also ran sudo smartctl -a /dev/sdc


smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.12.99-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD60EFPX-68C5ZN0
Serial Number:    WD-xxxxx
LU WWN Device Id: 5 0014ee 2173104c9
Firmware Version: 81.00A81
User Capacity:    6,001,175,126,016 bytes [6.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database 7.3/5528
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:    Mon Aug 24 21:57:09 2026 EEST
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:                (58140) 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:        ( 604) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.
SCT capabilities:              (0x3039) 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   226   226   021    Pre-fail  Always       -       3675
4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       14
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   100   100   000    Old_age   Always       -       320
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       -       5
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       0
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       305
194 Temperature_Celsius     0x0022   110   105   000    Old_age   Always       -       40
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  Extended offline    Completed without error       00%        43         -

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.

The above only provides legacy SMART information - try ā€˜smartctl -x’ for more
2 Likes

Lol, you beat me to it. My phone is slow to type on.

Thanks! I’m (relatively) calm, over 8 years of using Synology I experienced ffailed disks twice and both times after replacement all was fine.

I’m reading your flow chart and on #1 there is scrub mentioned. I asked in the original post should I run scrub or not, haven’t received an answer (yet) and AI replied that in some cares scub may load the remaining disks too much, causing further failures. So,

scrub or not? :slight_smile:

So, how I run long smart tests now? which commands to use in shell?

sudo smartctl -t long /dev/sdX
…not at the same time as a scrub, for the sake of checking data integrity. And if that triggers more errors, that would be a way to investigate.

What’s the SATA controller/motherboard?
How are the drives connected and powered?

1 Like

ASMedia 1164 SATA controller running over a PCIe Gen3 x2 link. Motherboard - cannot find info - it seems a proprietary UGREEN design tailored for an embedded Intel Core i3-1315U processor.

fixed into plastic racks and inserted into the NAS. Easier to give a link to photos: UGREEN DXP4800 PRO NAS Review - NAS Compares

They seem to be fixed good enough, and UGREEN forum doesn’t have any posts with keywords ā€˜bad disk connection’ or the like…

I don’t want to cause any undue panic, but ASMedia controllers have historically been looked down upon when working with TrueNAS.

Your pool is currently online & none of the drives have been kicked out of the pool by the system. If you don’t have a lot of data on the pool I’d start with a scrub since that could in theory complete faster than a smartctl -t long.

Either way, you’re going to have to do both. I don’t see anything from your current results that currently points that either step would put your pool in a critical state.

2 Likes

OK, so that’s 4 drives out of a reasonably modern 4-port controller. No multiplier.
No cables; the only change you could make would be to shuffle drives to see whether problems follow the drive or the slot.

CMR Red Plus drives.

That leaves scrub, long SMART tests… and MemTest, just in case :wink:

At least this one is a 11xx, not a 10xx.
B550 and newer AMD chipsets are AsMedia, and so are their integrated SATA controllers, so AsMedia controllers have actually been accepted for some time in home builds.

1 Like

Thanks for the advice; I went this way. In 4 hours (estimated) there should be results.

1 Like

does changing order of drives affects the poool in any way? my plan for now

  1. Scrub
  2. long SMART of all disks (just in case)

if no error after both, assume a glitch and wait for further errors if any. If present, shuffle drives. Sounds correct?

It shouldn’t - ZFS shouldn’t care about the drive order in any way. There are exceptions to this if something else stupid & unexpected is happening.

1 Like

No.

Did you run a scrub clear before running a scrub, to remove the current alarms? They do not clear on their own. And based on the data you posted earlier where you only had a few read errors, I suspect that once you clear the scrub errors and run a scrub, you will have no errors, providing you are not moving lots of data at the same time. If this happens then you likely overheated something.

Also, there is a list of commands in the Drive Troubleshooting Chart (last pages) if you follow this guide.

If the error does not return, I recommend that you run two burn-in tests:

  1. Memtest86 - Run for at least 5 complete passes, and it that is faster than 12 hours, then keep running the test for maybe 24 hours. This will help solidify one major section of your system, it is not just RAM either.
  2. A CPU Stress Test like Prime 95, run for at least 4 hours. this will heat saturate your system and will generally fail if there is a component issue or solder joint issue. Anything more than 4 hours will likely not provide much more.

Since this is a ZFS error, And the SMART data looks fantastic, I highly doubt there is a physical hard drive issue.

People who build servers for corporations will run these tests for up to 30 consecutive days, as the corporation must depend on the severs working at 100% all the time. I personnel use the values I provided for my own systems.

1 Like

@TemplarB
If the troubleshooting guide is giving you problems with how to understand what to do, please let me know and be specific with which step it is. I have not had any feedback on this in several months so if after you read all the charts (not many of them), you have a question, please ask.

If for some reason the problem seems to have disappeared and you do not find a cause, try to repeat the operations you were doing when the issue occurred. I still think you have a stability problem, just a gut feeling. But proving it is better.

Last thing, Do Not Use AI to troubleshoot a TrueNAS problem. Unless you are using a paid AI that actually is capable of troubleshooting these problems, the general AI’s provide old outdated and incorrect information. If you run an AI provided command and you do not know what it actually does, you could be in for a bad time. I test AI out all the time, some are okay but they lose focus of the original problem and send you down a rabbit hole.

2 Likes

I try not to use it in cases I consider dangerous (ok, I may err it my assumptions) and in something like this, I run the same question through three different free models, compare the answers and if any command is given, ask for defining every item of the command.

About the guide: it is very good, thank you for making it! If I have any coherent feedback, I’ll write it

I started the scrub before reading about scrub clear. The test showed no (further) errors. I’ll run it again after long SMART tests to be shure

I look forward to any feedback about the guide, and feel free to be honest. The folks here know that I prefer to improve whatever I create, even if I feel stupid for having an error or just some instructions were not 100% clear. It is easy to write something, but that doesn’t always mean others understand what I am saying.

Your SMART Long/Extended tests will take about 11 hours to complete. I’m not sure exactly what you have going on for data usage with your NAS, meaning how active it is. Whenever you are doing this kind of troubleshooting to validate the drives or data, it is best to minimize the NAS usage. So, no saving/moving of data. Reading data is generally fine as it requires minimal effort on the drives, such as viewing photos or streaming a video that you are not transcoding on the NAS.

SMART tests are the lowest priority tests and are run by the drive electronics. This means that ANY request by the computer will pause the SMART test so the drive can fulfill the request. And you may already know this, but I try to assume nothing, meaning I do not assume a person has specific knowledge. It can lead to a lot of confusion and make life terrible for both people.

When you run a SCRUB, it too has a low priority over other NAS operations, so lots of data requests to read or write will slow the SCRUB down. But it is the OS low level so SMART is a hardware low level event making SMART the lowest level.

If the problem cannot be identified testing like this, then we must try to recreate the circumstances in which the problem appears to have been committed. Repeatability is very important. But before we go down that road, you should run the stability tests, and run them long enough to validate the system stability. All of this should be in the Flow Charts.

Looking forward to hearing what you find out. And of course, post any SMART and SCRUB results, you will get feedback from the folks here on the form.

And AI, I have checked other AI’s against each other, but when I use AI, I already have a reasonable understanding about what I want to do and how it is performed. If I’m not certain about something, I read the forums (not the AI created summary), and not just the TrueNAS forums. You know, what we did before AI.