How to bring degraded disk online to run SMART check?

There are a good chunk of lines in the output of dmesg that are in red. Here’s everything from the first red message to the latest:

dmesg -T
[Wed Nov  4 20:00:17 2026] ata2.00: exception Emask 0x10 SAct 0x30000 SErr 0x10000 action 0xe frozen
[Wed Nov  4 20:00:17 2026] ata2.00: irq_stat 0x00400000, PHY RDY changed
[Wed Nov  4 20:00:17 2026] ata2: SError: { PHYRdyChg }
[Wed Nov  4 20:00:17 2026] ata2.00: failed command: READ FPDMA QUEUED
[Wed Nov  4 20:00:17 2026] ata2.00: cmd 60/08:80:78:00:33/00:00:fc:00:00/40 tag 16 ncq dma 4096 in res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x10 (ATA bus error)
[Wed Nov  4 20:00:17 2026] ata2.00: status: { DRDY }
[Wed Nov  4 20:00:17 2026] ata2.00: failed command: READ FPDMA QUEUED
[Wed Nov  4 20:00:17 2026] ata2.00: cmd 60/08:88:10:d3:36/00:00:fc:00:00/40 tag 17 ncq dma 4096 in res 40/00:01:01:4f:c2/00:00:00:00:00/00 Emask 0x10 (ATA bus error)
[Wed Nov  4 20:00:17 2026] ata2.00: status: { DRDY }
[Wed Nov  4 20:00:17 2026] ata2: hard resetting link
[Wed Nov  4 20:00:18 2026] ata2: SATA link down (SStatus 4 SControl 300)
[Wed Nov  4 20:00:23 2026] ata2: hard resetting link
[Wed Nov  4 20:00:23 2026] ata2: SATA link down (SStatus 4 SControl 300)
[Wed Nov  4 20:00:23 2026] ata2: limiting SATA link speed to <unknown>
[Wed Nov  4 20:00:28 2026] ata2: hard resetting link
[Wed Nov  4 20:00:29 2026] ata2: SATA link down (SStatus 4 SControl 3F0)
[Wed Nov  4 20:00:29 2026] ata2.00: disable device
[Wed Nov  4 20:00:29 2026] sd 1:0:0:0: [sda] tag#16 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=11s
[Wed Nov  4 20:00:29 2026] sd 1:0:0:0: [sda] tag#16 Sense Key : Illegal Request [current] 
[Wed Nov  4 20:00:29 2026] sd 1:0:0:0: [sda] tag#16 Add. Sense: Unaligned write command
[Wed Nov  4 20:00:29 2026] sd 1:0:0:0: [sda] tag#16 CDB: Read(16) 88 00 00 00 00 00 fc 33 00 78 00 00 00 08 00 00
[Wed Nov  4 20:00:29 2026] I/O error, dev sda, sector 4231200888 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Wed Nov  4 20:00:29 2026] zio pool=Main vdev=/dev/disk/by-partuuid/28fd2d2e-74af-48da-bf1c-b3eff8cb7f1f error=5 type=1 offset=2166373806080 size=4096 flags=3145856
[Wed Nov  4 20:00:29 2026] sd 1:0:0:0: [sda] tag#17 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=11s
[Wed Nov  4 20:00:29 2026] sd 1:0:0:0: [sda] tag#17 Sense Key : Illegal Request [current] 
[Wed Nov  4 20:00:29 2026] sd 1:0:0:0: [sda] tag#17 Add. Sense: Unaligned write command
[Wed Nov  4 20:00:29 2026] sd 1:0:0:0: [sda] tag#17 CDB: Read(16) 88 00 00 00 00 00 fc 36 d3 10 00 00 00 08 00 00
[Wed Nov  4 20:00:29 2026] I/O error, dev sda, sector 4231451408 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Wed Nov  4 20:00:29 2026] zio pool=Main vdev=/dev/disk/by-partuuid/28fd2d2e-74af-48da-bf1c-b3eff8cb7f1f error=5 type=1 offset=2166502072320 size=4096 flags=3145856
[Wed Nov  4 20:00:29 2026] ata2: EH complete
[Wed Nov  4 20:00:29 2026] sd 1:0:0:0: rejecting I/O to offline device
[Wed Nov  4 20:00:29 2026] I/O error, dev sda, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 0 prio class 0
[Wed Nov  4 20:00:29 2026] zio pool=Main vdev=/dev/disk/by-partuuid/28fd2d2e-74af-48da-bf1c-b3eff8cb7f1f error=5 type=5 offset=0 size=0 flags=2098304
[Wed Nov  4 20:00:29 2026] I/O error, dev sda, sector 2576 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Wed Nov  4 20:00:29 2026] I/O error, dev sda, sector 3164816880 op 0x1:(WRITE) flags 0x0 phys_seg 2 prio class 0
[Wed Nov  4 20:00:29 2026] zio pool=Main vdev=/dev/disk/by-partuuid/28fd2d2e-74af-48da-bf1c-b3eff8cb7f1f error=5 type=1 offset=270336 size=8192 flags=1245377
[Wed Nov  4 20:00:29 2026] zio pool=Main vdev=/dev/disk/by-partuuid/28fd2d2e-74af-48da-bf1c-b3eff8cb7f1f error=5 type=2 offset=1620385193984 size=8192 flags=3145856
[Wed Nov  4 20:00:29 2026] ata2.00: detaching (SCSI 1:0:0:0)
[Wed Nov  4 20:00:29 2026] I/O error, dev sda, sector 15623859216 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[Wed Nov  4 20:00:29 2026] zio pool=Main vdev=/dev/disk/by-partuuid/28fd2d2e-74af-48da-bf1c-b3eff8cb7f1f error=5 type=1 offset=7999414870016 size=8192 flags=1245377
[Wed Nov  4 20:00:29 2026] device offline error, dev sda, sector 15623859728 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0

I tried swapping the two disks’ SATA connections, and now I can see them both, but the Topology section of the Storage Dashboard says the one that’s been having trouble has one checksum error. Here are its full smartctl -x logs:

root@truenas\[\~\]# smartctl -x /dev/sda
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.12.15-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red Plus
Device Model:     WDC WD80EFAX-68KNBN0
Serial Number:    VAJ3P30L
LU WWN Device Id: 5 000cca 099dddb51
Firmware Version: 81.00A81
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database 7.3/6293
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Nov  5 20:53:02 2026 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Disabled
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled

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

General SMART Values:
Offline data collection status:  (0x84) Offline data collection activity
                                        was suspended by an interrupting command from host.
                                        Auto Offline Data Collection: Enabled.
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:                (   87) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        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:        ( 869) minutes.
SCT capabilities:              (0x003d) 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          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     PO-R--   100   100   016    -    0
  2 Throughput_Performance  --S---   130   130   054    -    100
  3 Spin_Up_Time            POS---   151   151   024    -    538 (Average 540)
  4 Start_Stop_Count        -O--C-   098   098   000    -    11974
  5 Reallocated_Sector_Ct   PO--CK   100   100   005    -    0
  7 Seek_Error_Rate         -O-R--   100   100   067    -    0
  8 Seek_Time_Performance   --S---   128   128   020    -    18
  9 Power_On_Hours          -O--C-   091   091   000    -    64010
 10 Spin_Retry_Count        -O--C-   100   100   060    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    81
192 Power-Off_Retract_Count -O--CK   089   089   000    -    13931
193 Load_Cycle_Count        -O--C-   089   089   000    -    13931
194 Temperature_Celsius     -O----   151   151   000    -    43 (Min/Max 19/56)
196 Reallocated_Event_Count -O--CK   100   100   000    -    0
197 Current_Pending_Sector  -O---K   100   100   000    -    0
198 Offline_Uncorrectable   ---R--   100   100   000    -    0
199 UDMA_CRC_Error_Count    -O-R--   200   200   000    -    0
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O      1  Comprehensive SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x04       GPL     R/O    256  Device Statistics log
0x04       SL      R/O    255  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x08       GPL     R/O      2  Power Conditions log
0x09           SL  R/W      1  Selective self-test log
0x0c       GPL     R/O   5501  Pending Defects log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x12       GPL     R/O      1  SATA NCQ Non-Data log
0x13       GPL     R/O      1  SATA NCQ Send and Receive log
0x15       GPL     R/W      1  Rebuild Assist log
0x21       GPL     R/O      1  Write stream error log
0x22       GPL     R/O      1  Read stream error log
0x24       GPL     R/O    256  Current Device Internal Status Data log
0x25       GPL     R/O    256  Saved Device Internal Status Data log
0x2f       GPL     R/O      1  Set Sector Configuration
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%     63960         -
# 2  Extended offline    Completed without error       00%     63861         -
# 3  Extended offline    Completed without error       00%     51750         -
# 4  Extended offline    Completed without error       00%     51030         -
# 5  Extended offline    Completed without error       00%     50288         -
# 6  Extended offline    Completed without error       00%     49615         -
# 7  Extended offline    Completed without error       00%     48872         -
# 8  Extended offline    Completed without error       00%     48128         -
# 9  Extended offline    Completed without error       00%     47408         -
#10  Extended offline    Completed without error       00%     46663         -
#11  Extended offline    Completed without error       00%     45943         -
#12  Extended offline    Completed without error       00%     45202         -
#13  Extended offline    Completed without error       00%     44455         -
#14  Extended offline    Completed without error       00%     43735         -
#15  Extended offline    Completed without error       00%     42993         -
#16  Extended offline    Completed without error       00%     42271         -
#17  Extended offline    Completed without error       00%     41529         -
#18  Extended offline    Completed without error       00%     40839         -
#19  Extended offline    Completed without error       00%     40095         -

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.

SCT Status Version:                  3
SCT Version (vendor specific):       256 (0x0100)
Device State:                        SMART Off-line Data Collection executing in background (4)
Current Temperature:                    43 Celsius
Power Cycle Min/Max Temperature:     41/43 Celsius
Lifetime    Min/Max Temperature:     19/56 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/65 Celsius
Min/Max Temperature Limit:           -40/70 Celsius
Temperature History Size (Index):    128 (21)

Index    Estimated Time   Temperature Celsius
  22    2026-11-05 18:46    47  ****************************
 ...    ..(  7 skipped).    ..  ****************************
  30    2026-11-05 18:54    47  ****************************
  31    2026-11-05 18:55    48  *****************************
  32    2026-11-05 18:56    47  ****************************
 ...    ..(  6 skipped).    ..  ****************************
  39    2026-11-05 19:03    47  ****************************
  40    2026-11-05 19:04    48  *****************************
  41    2026-11-05 19:05    48  *****************************
  42    2026-11-05 19:06    47  ****************************
  43    2026-11-05 19:07    47  ****************************
  44    2026-11-05 19:08    48  *****************************
 ...    ..( 98 skipped).    ..  *****************************
  15    2026-11-05 20:47    48  *****************************
  16    2026-11-05 20:48    41  **********************
  17    2026-11-05 20:49    42  ***********************
 ...    ..(  2 skipped).    ..  ***********************
  20    2026-11-05 20:52    42  ***********************
  21    2026-11-05 20:53    47  ****************************

SCT Error Recovery Control:
           Read:     70 (7.0 seconds)
          Write:     70 (7.0 seconds)

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4              81  ---  Lifetime Power-On Resets
0x01  0x010  4           64010  ---  Power-on Hours
0x01  0x018  6    218531238858  ---  Logical Sectors Written
0x01  0x020  6      1538747292  ---  Number of Write Commands
0x01  0x028  6    476136028168  ---  Logical Sectors Read
0x01  0x030  6      2548117877  ---  Number of Read Commands
0x01  0x038  6    230436656500  ---  Date and Time TimeStamp
0x03  =====  =               =  ===  == Rotating Media Statistics (rev 1) ==
0x03  0x008  4           58819  ---  Spindle Motor Power-on Hours
0x03  0x010  4           58819  ---  Head Flying Hours
0x03  0x018  4           13931  ---  Head Load Events
0x03  0x020  4               0  ---  Number of Reallocated Logical Sectors
0x03  0x028  4               8  ---  Read Recovery Attempts
0x03  0x030  4               0  ---  Number of Mechanical Start Failures
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4               1  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              43  ---  Current Temperature
0x05  0x010  1              47  N--  Average Short Term Temperature
0x05  0x018  1              45  N--  Average Long Term Temperature
0x05  0x020  1              56  ---  Highest Temperature
0x05  0x028  1              19  ---  Lowest Temperature
0x05  0x030  1              54  N--  Highest Average Short Term Temperature
0x05  0x038  1              25  N--  Lowest Average Short Term Temperature
0x05  0x040  1              51  N--  Highest Average Long Term Temperature
0x05  0x048  1              25  N--  Lowest Average Long Term Temperature
0x05  0x050  4               0  ---  Time in Over-Temperature
0x05  0x058  1              65  ---  Specified Maximum Operating Temperature
0x05  0x060  4               0  ---  Time in Under-Temperature
0x05  0x068  1               0  ---  Specified Minimum Operating Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4             377  ---  Number of Hardware Resets
0x06  0x010  4              62  ---  Number of ASR Events
0x06  0x018  4               0  ---  Number of Interface CRC Errors
0xff  =====  =               =  ===  == Vendor Specific Statistics (rev 1) ==
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c)
No Defects Logged

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  2            2  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            2  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS

I ran dmesg again after the reboot, but nothing looks suspsicious. There’s this error:

[Thu Nov  5 20:49:28 2026\] Error: Driver 'pcspkr' is already registered, aborting...

But iiuc it doesn’t have to do with my issue.