Find the disk

current Version:
TrueNAS-13.0-U5.3

I have an older machine…like 2016 range. When it was new, it was back in the Freenas days, and yes, it does have a Rocket card.
Anyway
evey so often it gives an alert like :

CRITICAL
Device: /dev/hptnr [hpt_disk_1/17/1], 4 Offline uncorrectable sectors.
2024-12-07 15:15:30 (America/Los_Angeles)

i have run the manual smart tests, but it never says anything is bad with any drives. and there is no indication that anythign is offline

any ideas?

Those errors do not automatically fail a disk or degrade a pool.
They are to be seen as a warning sign, and if they keep climbing, function as an alert to you so that you can sort out a replacement strategy before it keels over.

You can view the full S.M.A.R.T. status by using running smartctl -a /dev/hptnr assuming you haven’t rebooted since that message was generated. If you have rebooted it’s possible the device name referring to the troubled drive has changed.

When you say “Rocket card”, do you mean to acknowledge that you know you’re running hardware RAID and aim to preemt comments on that? I am not familiar with the Rocket-nomenclature myself.

Especially with ‘Offline uncorrectable sector’ - if ZFS notices a read error it would automatically try to fix it if there is redundancy available. Hard drives should reallocate the sector and no data loss occurs.

If you want to know about the health of the pool, run zpool status.

That is part of the fun (if you wanna call it that) zpool status reports "errors: No known data errors
"

when i try the smartctl you suggested, smartctl /dev/hptnr -d hpt,1/17 -a
:

14 r5236 [FreeBSD 13.1-RELEASE-p7 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Gold
Device Model:     WDC WD101KRYZ-01JPDB0
Serial Number:    7PGB800G
LU WWN Device Id: 5 000cca 251c51e1d
Firmware Version: 01.01H01
User Capacity:    10,000,831,348,736 bytes [10.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
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:    Wed Dec 11 08:21:48 2024 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

^C
root@G1PPFREENAS01[~]#


as for the Rocket card, i am think that is doing raid as that would explain why the disks it displays, it so difficult to know exactly which on it is.

That is not the command I asked you to use.
And the output is incomplete, so the actual report is not included in your post.

The command you stated, give teh following result

smartctl -a /dev/hptnr
smartctl 7.2 2021-09-14 r5236 [FreeBSD 13.1-RELEASE-p7 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

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

Use smartctl -h to get a usage summary

I see, presumably that’s a consequence the drives being connected through your RAID card.
Do you have the full SMART output?

I do not know the command to dump it out all at once, but here is for 1 of the drives (picked on at random)

# smartctl -l selftest /dev/da17
smartctl 7.2 2021-09-14 r5236 [FreeBSD 13.1-RELEASE-p7 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
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%      2008         -
# 2  Extended offline    Completed without error       00%      1843         -
# 3  Extended offline    Completed without error       00%      1674         -
# 4  Extended offline    Completed without error       00%      1506         -
# 5  Extended offline    Completed without error       00%      1348         -
# 6  Extended offline    Completed without error       00%      1171         -
# 7  Extended offline    Completed without error       00%      1002         -
# 8  Extended offline    Completed without error       00%       834         -
# 9  Extended offline    Completed without error       00%       665         -
#10  Extended offline    Completed without error       00%       525         -
#11  Extended offline    Completed without error       00%       162         -
#12  Extended offline    Completed without error       00%     65528         -
#13  Extended offline    Completed without error       00%     65359         -
#14  Extended offline    Completed without error       00%     65191         -
#15  Extended offline    Completed without error       00%     65035         -
#16  Extended offline    Completed without error       00%     64855         -
#17  Extended offline    Completed without error       00%     64688         -
#18  Extended offline    Completed without error       00%     64523         -
#19  Extended offline    Completed without error       00%     64352         -
#20  Short offline       Completed without error       00%     64293         -
#21  Extended offline    Completed without error       00%     64185         -


Normally the -a option dumps most details, you appear to have trouble running that command though, for some reason.

Try using -A instead, it should print only the attributes.

]# smartctl -A /dev/hptnr
smartctl 7.2 2021-09-14 r5236 [FreeBSD 13.1-RELEASE-p7 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

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

Use smartctl -h to get a usage summary

I think you’re correct in that you need to run smartctl with the -d option (in addition the options required to see whatever your want to know).

The man page has this section:

hpt,L/M/N - [FreeBSD and Linux only] the device consists of one or more ATA disks connected to a HighPoint RocketRAID controller.  The integer L is the controller id, the integer M is
the  channel  number, and the integer N is the PMPort number if it is available.  The allowed values of L are from 1 to 4 inclusive, M are from 1 to 128 inclusive and N from 1 to 4 if
PMPort available.  And also these values are limited by the model of the HighPoint RocketRAID controller.  Use syntax such as:
smartctl -a -d hpt,1/3 /dev/sda    (under Linux)
smartctl -a -d hpt,1/2/3 /dev/sda    (under Linux)
Note that the /dev/sda-z form should be the device node which stands for the disks derived from the HighPoint RocketRAID controllers under Linux and under FreeBSD, it is the character
device which the driver registered (eg, /dev/hptrr, /dev/hptmv6).

Given my non-existant experience with HighPoint controllers, I don’t know what valid options for your controller are, but you had some success getting an output, even if I was confused by your first post.