dak180 / FreeNAS-Report

SMART & ZPool Status Report for FreeNAS/TrueNAS
GNU General Public License v3.0
41 stars 9 forks source link

Model number missing from SAS drives #35

Closed xeromist closed 5 days ago

xeromist commented 3 months ago

Requested dump of SAS drives. The report doesn't have the model number. Last test age doesn't line up with Multi-Report, but I'm not sure which report is correct.

Side note, github doesn't allow tgz file extensions, so I renamed to .zip.

dumpfiles.zip

dak180 commented 3 months ago

@xeromist I would be interested to know how it works with the latest adjustments that were just pushed.

xeromist commented 3 months ago

I'm out of town for the holiday weekend. Can check when I get back.

On Thu, Jul 4, 2024, 8:17 AM dak180 @.***> wrote:

@xeromist https://github.com/xeromist I would be interested to know how it works with the latest adjustments that were just pushed.

— Reply to this email directly, view it on GitHub https://github.com/dak180/FreeNAS-Report/issues/35#issuecomment-2209215660, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJMFMPFIJ44RJQDFQK64IDZKVRQPAVCNFSM6AAAAABKGNVMIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGIYTKNRWGA . You are receiving this because you were mentioned.Message ID: @.***>

FDrebin commented 3 months ago

Running 24 SAS drives and with the latest script change(s) I am now receiving a valid model in the report, previously this model value was null/empty.

dak180 commented 3 months ago

@FDrebin do you have SAS SSDs or any seagate drive the supports FARM logging?

FDrebin commented 3 months ago

@FDrebin do you have SAS SSDs or any seagate drive the supports FARM logging?

I have hitachi SAS HDDs, not sure they support FARM logging off hand.

dak180 commented 3 months ago

@FDrebin smartctl -AxHi --log="xerror,error" --log="xselftest,selftest" --log="devstat" --log="farm" --log="envrep" --log="defects" --log="zdevstat" --log="genstats" --log="ssd" --log="background" --quietmode=noserial "/dev/${drive}" would tell you if you do.

FDrebin commented 3 months ago

@FDrebin smartctl -AxHi --log="xerror,error" --log="xselftest,selftest" --log="devstat" --log="farm" --log="envrep" --log="defects" --log="zdevstat" --log="genstats" --log="ssd" --log="background" --quietmode=noserial "/dev/${drive}" would tell you if you do.

Edit : Sorry about formatting, I can't seem to get it right.

Output from your code :

$ sudo smartctl -AxHi --log="xerror,error" --log="xselftest,selftest" --log="devstat" --log="farm" --log="envrep" --log="defects" --log="zdevstat" --log="genstats" --log="ssd" --log="background" --quietmode=noserial "/dev/sdh"
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.29-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor:               HGST
Product:              H7280A520SUN8.0T
Revision:             PAG1
Compliance:           SPC-4
User Capacity:        7,865,536,647,168 bytes [7.86 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
Formatted with type 1 protection
8 bytes of protection information per logical block
LU is fully provisioned
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Device type:          disk
Transport protocol:   SAS (SPL-4)
Local Time is:        Sat Jul  6 15:48:48 2024 EDT
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled
Read Cache is:        Enabled
Writeback Cache is:   Disabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     34 C
Drive Trip Temperature:        85 C

Manufactured in week 43 of year 2016
Specified cycle count over device lifetime:  50000
Accumulated start-stop cycles:  47
Specified load-unload count over device lifetime:  600000
Accumulated load-unload cycles:  2514
Elements in grown defect list: 0

Vendor (Seagate Cache) information
  Blocks sent to initiator = 24897213607968768

FARM log (SCSI Log page 0x3d, sub-page 0x3) not supported

Error counter log:
           Errors Corrected by           Total   Correction     Gigabytes    Total
               ECC          rereads/    errors   algorithm      processed    uncorrected
           fast | delayed   rewrites  corrected  invocations   [10^9 bytes]  errors
read:          0      244         0       244   52245150     854087.906           0
write:         0        3         0         3   14958128      98014.999           0
verify:        0        1         0         1     280408          4.258           0

Non-medium error count:        0

SMART Self-test log
Num  Test              Status                 segment  LifeTime  LBA_first_err [SK ASC ASQ]
     Description                              number   (hours)
# 1  Background short  Completed                   -     188                 - [-   -    -]
# 2  Background short  Completed                   -     116                 - [-   -    -]
# 3  Background short  Completed                   -      44                 - [-   -    -]
# 4  Background short  Completed                   -   59600                 - [-   -    -]
# 5  Background long   Completed                   -   59561                 - [-   -    -]
# 6  Background short  Completed                   -   59456                 - [-   -    -]
# 7  Background short  Completed                   -   59408                 - [-   -    -]
# 8  Background short  Completed                   -   59336                 - [-   -    -]
# 9  Background short  Completed                   -   59264                 - [-   -    -]
#10  Background long   Completed                   -   59237                 - [-   -    -]
#11  Background short  Completed                   -   59120                 - [-   -    -]
#12  Background short  Completed                   -   59048                 - [-   -    -]
#13  Background short  Completed                   -   58952                 - [-   -    -]
#14  Background short  Completed                   -   58856                 - [-   -    -]
#15  Background long   Completed                   -   58804                 - [-   -    -]
#16  Background short  Completed                   -   58712                 - [-   -    -]
#17  Background short  Completed                   -   58664                 - [-   -    -]
#18  Background short  Completed                   -   58592                 - [-   -    -]
#19  Background short  Completed                   -   58520                 - [-   -    -]
#20  Background long   Completed                   -   58473                 - [-   -    -]

Long (extended) Self-test duration: 68760 seconds [19.1 hours]

Background scan results log
  Status: scan is active
    Accumulated power on time, hours:minutes 205:58 [12358 minutes]
    Number of background scans performed: 359,  scan progress: 94.04%
    Number of background medium scans performed: 359

General statistics and performance log page:
  General access statistics and performance:
    Number of read commands: 3538233055
    Number of write commands: 1483989573
    number of logical blocks received: 191435545213
    number of logical blocks transmitted: 1668140442628
    read command processing intervals: 0
    write command processing intervals: 0
    weighted number of read commands plus write commands: 0
    weighted read command processing plus write command processing: 0
  Idle time:
    Idle time intervals: 3646536577
      in seconds: 182326828.850
      in hours: 50646.341

Protocol Specific port log page for SAS SSP
relative target port id = 1
  generation code = 1
  number of phys = 1
  phy identifier = 0
    attached device type: expander device
    attached reason: SMP phy control function
    reason: unknown
    negotiated logical link rate: phy enabled; 6 Gbps
    attached initiator port: ssp=0 stp=0 smp=0
    attached target port: ssp=0 stp=0 smp=1
    attached phy identifier = 18
    Invalid DWORD count = 0
    Running disparity error count = 0
    Loss of DWORD synchronization count = 0
    Phy reset problem count = 0
relative target port id = 2
  generation code = 1
  number of phys = 1
  phy identifier = 1
    attached device type: no device attached
    attached reason: unknown
    reason: power on
    negotiated logical link rate: phy enabled; unknown
    attached initiator port: ssp=0 stp=0 smp=0
    attached target port: ssp=0 stp=0 smp=0
    attached phy identifier = 0
    Invalid DWORD count = 0
    Running disparity error count = 0
    Loss of DWORD synchronization count = 0
    Phy reset problem count = 0
dak180 commented 3 months ago

The FARM log (SCSI Log page 0x3d, sub-page 0x3) not supported tells you that it does not support FARM output. Interesting clock rollover on the tests there too.

FDrebin commented 2 months ago

Just glad I could provide some additional data. But thank you for fixing the SAS model data population.

xeromist commented 2 months ago

I can also confirm that model numbers now appear in the most recent script release.