One or more devices has experienced an error resulting in data corruption. Applications may be affected (boot-pool)

I am experiencing an error in my boot pool. From what I remember I already had this, or a similar error a while back and decided to reinstall (when I was still on CORE).

Any ideas on how I can debug the cause?

See details below:

  pool: boot-pool
 state: ONLINE
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
  scan: scrub repaired 2K in 00:00:18 with 2 errors on Wed Feb 22 03:45:18 2023
config:

        NAME        STATE     READ WRITE CKSUM
        boot-pool   ONLINE       0     0     0
          sda2      ONLINE       1     0     0

errors: Permanent errors have been detected in the following files:

        <0x107>:<0x1185>
        <0x107>:<0x118b>
        /var/db/system/rrd-6c934beb66de482e8faef2d3b30acc82/localhost/df-mnt-pool0-iocage/df_complex-used.rrd
        /var/db/system/rrd-6c934beb66de482e8faef2d3b30acc82/localhost/df-mnt-pool0/df_complex-reserved.rrd
        /var/db/system/rrd-6c934beb66de482e8faef2d3b30acc82/localhost/df-mnt-pool0-iocage-images/df_complex-used.rrd
        /var/db/system/rrd-6c934beb66de482e8faef2d3b30acc82/localhost/df-mnt-pool0-iocage-log/df_complex-free.rrd

It is unclear from your message whether the reinstall was to a fresh device, but, I’d try one or more of the following, assuming this is a repeat error. All start with saving config. While the problem could be RAM or controller issues, I think it most likely to be device/cable related. Therefore, you’ll want to try things to eliminate device, cable, or port.

  1. reinstall ensuring you choose the format device option,
  2. #1 after moving to a different port/cable, or
  3. install to a fresh device on another port with a different cable.
    Good luck.
    John

Hi

Sorry for not being precise. I simply reinstalled (same hardware) and restored the config I had backed up.

That’s what I did again today. I wasn’t entirely happy with how migration from Core to Scale went, so I simply reinstalled Scale, did my setup and will now monitor if the errros happen again.

Yes, monitor your drives. You could also post the output of the last (preferably long) smart test smartctl -a.

Since it’s just 1 read error and not CRC, I wouldn’t bet on cabling. Could be, but it could also be the drive or some other hickup.

I also had problems with my boot pool and it was suggested it may also be just a buggy scale release.

Monitor your drive and if needed start replacing cables / changing ports or eventually switch the drive.

With recent config backups a reinstall is not that much of a hassle.

1 Like

Have an updated backup of your configuration always at hand; can you please list your hardware in order for us to understand if you are using ECC RAM, which kind of device you are using as your boot-drive, and how you are connecting your drives?

my boot pool resides on a single SATA SSD (details below).

Drive Specs

Intel SSDSCKKF240H6L Intel Pro 5400s Series 240GB TLC SATA 6Gbps (AES-256 / TCG Opal 2.0) M.2 2280 / SSDSCKKF240H6L

This is an M.2 SSD that is mounted on an SATA to M2 adapter…

smartctl -a /dev/sda shows

admin@truenas[~]$ sudo smartctl -a /dev/sda
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.1.74-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     INTEL SSDSCKKF240H6L
Serial Number:    CVLY623300Z6240D
LU WWN Device Id: 5 5cd2e4 14d0784fe
Firmware Version: LSFL37P
User Capacity:    240,057,409,536 bytes [240 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      M.2
TRIM Command:     Available, deterministic
Device is:        Not in smartctl database 7.3/5528
ATA Version is:   ACS-3 (minor revision not indicated)
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Fri Apr  5 17:45:29 2024 CEST
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:  (0x02) Offline data collection activity
                                        was completed without error.
                                        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:                (    0) seconds.
Offline data collection
capabilities:                    (0x53) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No 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:        (  15) minutes.
SCT capabilities:              (0x0039) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0032   100   100   000    Old_age   Always       -       724
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       109
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       284
170 Unknown_Attribute       0x0033   100   100   010    Pre-fail  Always       -       724
171 Unknown_Attribute       0x0032   100   100   010    Old_age   Always       -       0
172 Unknown_Attribute       0x0032   100   100   010    Old_age   Always       -       0
173 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       3
174 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       79
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0033   100   100   097    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       3964
190 Airflow_Temperature_Cel 0x0032   028   067   000    Old_age   Always       -       28 (Min/Max 11/67)
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       79
194 Temperature_Celsius     0x0032   028   067   000    Old_age   Always       -       28 (Min/Max 11/67)
199 UDMA_CRC_Error_Count    0x0032   100   100   000    Old_age   Always       -       0
225 Unknown_SSD_Attribute   0x0032   100   100   000    Old_age   Always       -       1470
226 Unknown_SSD_Attribute   0x0032   100   100   000    Old_age   Always       -       0
227 Unknown_SSD_Attribute   0x0032   100   100   000    Old_age   Always       -       0
228 Power-off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       0
232 Available_Reservd_Space 0x0033   085   085   010    Pre-fail  Always       -       0
233 Media_Wearout_Indicator 0x0033   099   099   001    Pre-fail  Always       -       0
236 Unknown_Attribute       0x0033   099   099   001    Pre-fail  Always       -       0
241 Total_LBAs_Written      0x0032   100   100   000    Old_age   Always       -       1470
242 Total_LBAs_Read         0x0032   100   100   000    Old_age   Always       -       1646
249 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       559

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%       109         -
# 2  Extended offline    Aborted by host               70%       108         -
# 3  Extended offline    Aborted by host               70%       108         -
# 4  Extended offline    Aborted by host               70%       108         -
# 5  Extended offline    Completed without error       00%       108         -
# 6  Short offline       Completed without error       00%       107         -
# 7  Short offline       Completed without error       00%       106         -
# 8  Short offline       Completed without error       00%       106         -
# 9  Short offline       Completed without error       00%       105         -
#10  Short offline       Completed without error       00%         0         -

SMART Selective self-test log data structure revision number 1
 SPAN         MIN_LBA         MAX_LBA  CURRENT_TEST_STATUS
    1  70403103932424  70403103932424  Not_testing
    2  70403103932424  70403103932424  Not_testing
    3  70403103932424  70403103932424  Not_testing
    4  70403103932424  70403103932424  Not_testing
    5  70403103932424  70403103932424  Not_testing
Selective self-test flags (0x4008):
  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

Anyway, I am afraid I am dealing with failing hardware here…

Hardware:

HP ProLiant MicroServer
CPU -  AMD Turion II Neo N40L Dual-Core Processor 
RAM - 16GB ECC UDIMM 
Drives - 4x SATA for data pool, 1x SATA for boot pool (drive specs above)

What is on this hardware? Just the system pool or anything else?

If anything else on this SSD, is it backed up to the HDD?

Assuming that this is only the system pool, or if anything else then it is backed up, I would cut my losses and replace the SSD with a new one, reinstall the OS, restore the system config, restore any other data to the SSD needed, and get back to being able to sleep at night.

You can then examine the SSD on another computer at your leisure to determine whether it is failing or not.

NOTE: I know that having additional pools / partitions on the system drive is unsupported, but that doesn’t mean people don’t do it. When the system drive needs to be 16GB and the smallest SSD is 128GB, there is an incentive to make use of the additional space even if it is frowned upon.

1 Like

Please elaborate.

Just the system pool, nothing else.

The system is installled on a M.2 SATA that I had in excess when I built this system a few years back. However, since the board doesn’t have any M.2 slots, I purchased a cheap M.2 to SATA adapter. The M.2 SSD sits in the adapter which is connected to the SATA port.
The M.2 SSD is an INTEL SSDSCKKF240H6L (“Intel Pro 5400s”)

Seems to indicate possible nearly 4000 sectors that failed to read correctly?

Also has some reallocated sectors I think.

The drive seems to be toast. But also has very little power on hours, can you RMA it?

BTW, if you use two boot drives in a mirror then a single failure won’t take down your system.

1 Like

Actually, depending on the boot order, it will. Please read Highly Available Boot Pool Strategy | TrueNAS Community.

That’s what I think too. I am swapping it for different SSD these days and will report back.

Yes it doesn’t have many hours on it. This is not a 24/7 system that serves a lot of services. It’s a pure data backup that I turn on once a month, run my backups. and turn it off again.
But I very much doubt Intel takes back a 2019 drive, even though it does have that little Power-On-Hours on it.

The problem is the sh***y case/mobo I am using… it has only 5 SATA ports, and I am using 4 for data disks, and one for system drive. I guess I need to upgrade to a better case…