From 2213cd0de653bf995c5a0b3a54eb254264bb4e68 Mon Sep 17 00:00:00 2001 From: Rafael Leira Date: Mon, 22 May 2023 12:49:41 +0200 Subject: [PATCH] added issue 70 test data --- .../sata_hdd_2_issue70/_-d_ata_--all__dev_sg2 | 100 +++ .../sata_hdd_2_issue70/device.json | 765 ++++++++++++++++++ 2 files changed, 865 insertions(+) create mode 100644 tests/dataset/singletests/sata_hdd_2_issue70/_-d_ata_--all__dev_sg2 create mode 100644 tests/dataset/singletests/sata_hdd_2_issue70/device.json diff --git a/tests/dataset/singletests/sata_hdd_2_issue70/_-d_ata_--all__dev_sg2 b/tests/dataset/singletests/sata_hdd_2_issue70/_-d_ata_--all__dev_sg2 new file mode 100644 index 0000000..c23c0db --- /dev/null +++ b/tests/dataset/singletests/sata_hdd_2_issue70/_-d_ata_--all__dev_sg2 @@ -0,0 +1,100 @@ +smartctl 6.4 2014-10-07 r4002 [x86_64-linux-4.9.0-0.bpo.12-amd64] (local build) +Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org + +=== START OF INFORMATION SECTION === +Device Model: ST2000NM000A-2J2100 +Serial Number: WS10SM2A +LU WWN Device Id: 5 000c50 0f129bee9 +Firmware Version: TN03 +User Capacity: 2 000 398 934 016 bytes [2,00 TB] +Sector Size: 512 bytes logical/physical +Rotation Rate: 7200 rpm +Form Factor: 3.5 inches +Device is: Not in smartctl database [for details use: -P showall] +ATA Version is: Unknown(0x0fe0) (minor revision not indicated) +SATA Version is: SATA >3.2, 6.0 Gb/s (current: 6.0 Gb/s) +Local Time is: Mon May 22 13:09:29 2023 MSK +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: (0x82) Offline data collection activity + was completed without error. + 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: ( 567) 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: ( 1) minutes. +Extended self-test routine +recommended polling time: ( 196) minutes. +Conveyance self-test routine +recommended polling time: ( 2) minutes. +SCT capabilities: (0x50bd) SCT Status supported. + SCT Error Recovery Control supported. + SCT Feature Control supported. + SCT Data Table supported. + +SMART Attributes Data Structure revision number: 10 +Vendor Specific SMART Attributes with Thresholds: +ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE + 1 Raw_Read_Error_Rate 0x000f 082 064 044 Pre-fail Always - 148350832 + 3 Spin_Up_Time 0x0003 096 096 000 Pre-fail Always - 0 + 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 39 + 5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0 + 7 Seek_Error_Rate 0x000f 072 060 045 Pre-fail Always - 16886160 + 9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1380 + 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 + 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 39 + 18 Unknown_Attribute 0x000b 100 100 050 Pre-fail Always - 0 +187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0 +188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0 +190 Airflow_Temperature_Cel 0x0022 069 066 040 Old_age Always - 31 (Min/Max 25/32) +192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 38 +193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 97 +194 Temperature_Celsius 0x0022 031 040 000 Old_age Always - 31 (0 22 0 0 0) +195 Hardware_ECC_Recovered 0x001a 082 064 000 Old_age Always - 148350832 +197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 +198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0 +199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 +240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 1369 (143 119 0) +241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 1105531559 +242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 13287203134 + +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% 1284 - +# 2 Short offline Completed without error 00% 1281 - + +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. \ No newline at end of file diff --git a/tests/dataset/singletests/sata_hdd_2_issue70/device.json b/tests/dataset/singletests/sata_hdd_2_issue70/device.json new file mode 100644 index 0000000..1543230 --- /dev/null +++ b/tests/dataset/singletests/sata_hdd_2_issue70/device.json @@ -0,0 +1,765 @@ +{ + "name": "/dev/sg2", + "interface": "ata", + "values": { + "abridged": false, + "name": "sg2", + "family": null, + "model": "ST2000NM000A-2J2100", + "serial": "WS10SM2A", + "firmware": "TN03", + "smart_capable": true, + "smart_enabled": true, + "assessment": "PASS", + "messages": [], + "is_ssd": false, + "rotation_rate": 7200, + "attributes": [ + null, + { + "num": 1, + "name": "Raw_Read_Error_Rate", + "flags": 15, + "_value": "082", + "_worst": "064", + "_thresh": "044", + "type": "Pre-fail", + "updated": "Always", + "when_failed": "-", + "raw": "148350832", + "raw_int": 148350832, + "thresh": 44, + "value": "082", + "value_int": 82, + "value_str": "082", + "worst": 64 + }, + null, + { + "num": 3, + "name": "Spin_Up_Time", + "flags": 3, + "_value": "096", + "_worst": "096", + "_thresh": "000", + "type": "Pre-fail", + "updated": "Always", + "when_failed": "-", + "raw": "0", + "raw_int": 0, + "thresh": 0, + "value": "096", + "value_int": 96, + "value_str": "096", + "worst": 96 + }, + { + "num": 4, + "name": "Start_Stop_Count", + "flags": 50, + "_value": "100", + "_worst": "100", + "_thresh": "020", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "39", + "raw_int": 39, + "thresh": 20, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + { + "num": 5, + "name": "Reallocated_Sector_Ct", + "flags": 51, + "_value": "100", + "_worst": "100", + "_thresh": "010", + "type": "Pre-fail", + "updated": "Always", + "when_failed": "-", + "raw": "0", + "raw_int": 0, + "thresh": 10, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + null, + { + "num": 7, + "name": "Seek_Error_Rate", + "flags": 15, + "_value": "072", + "_worst": "060", + "_thresh": "045", + "type": "Pre-fail", + "updated": "Always", + "when_failed": "-", + "raw": "16886160", + "raw_int": 16886160, + "thresh": 45, + "value": "072", + "value_int": 72, + "value_str": "072", + "worst": 60 + }, + null, + { + "num": 9, + "name": "Power_On_Hours", + "flags": 50, + "_value": "099", + "_worst": "099", + "_thresh": "000", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "1380", + "raw_int": 1380, + "thresh": 0, + "value": "099", + "value_int": 99, + "value_str": "099", + "worst": 99 + }, + { + "num": 10, + "name": "Spin_Retry_Count", + "flags": 19, + "_value": "100", + "_worst": "100", + "_thresh": "097", + "type": "Pre-fail", + "updated": "Always", + "when_failed": "-", + "raw": "0", + "raw_int": 0, + "thresh": 97, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + null, + { + "num": 12, + "name": "Power_Cycle_Count", + "flags": 50, + "_value": "100", + "_worst": "100", + "_thresh": "020", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "39", + "raw_int": 39, + "thresh": 20, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + null, + null, + null, + null, + null, + { + "num": 18, + "name": "Unknown_Attribute", + "flags": 11, + "_value": "100", + "_worst": "100", + "_thresh": "050", + "type": "Pre-fail", + "updated": "Always", + "when_failed": "-", + "raw": "0", + "raw_int": 0, + "thresh": 50, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + { + "num": 187, + "name": "Reported_Uncorrect", + "flags": 50, + "_value": "100", + "_worst": "100", + "_thresh": "000", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "0", + "raw_int": 0, + "thresh": 0, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + { + "num": 188, + "name": "Command_Timeout", + "flags": 50, + "_value": "100", + "_worst": "100", + "_thresh": "000", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "0", + "raw_int": 0, + "thresh": 0, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + null, + { + "num": 190, + "name": "Airflow_Temperature_Cel", + "flags": 34, + "_value": "069", + "_worst": "066", + "_thresh": "040", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "31 (Min/Max 25/32)", + "raw_int": 31, + "thresh": 40, + "value": "069", + "value_int": 69, + "value_str": "069", + "worst": 66 + }, + null, + { + "num": 192, + "name": "Power-Off_Retract_Count", + "flags": 50, + "_value": "100", + "_worst": "100", + "_thresh": "000", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "38", + "raw_int": 38, + "thresh": 0, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + { + "num": 193, + "name": "Load_Cycle_Count", + "flags": 50, + "_value": "100", + "_worst": "100", + "_thresh": "000", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "97", + "raw_int": 97, + "thresh": 0, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + { + "num": 194, + "name": "Temperature_Celsius", + "flags": 34, + "_value": "031", + "_worst": "040", + "_thresh": "000", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "31 (0 22 0 0 0)", + "raw_int": 31, + "thresh": 0, + "value": "031", + "value_int": 31, + "value_str": "031", + "worst": 40 + }, + { + "num": 195, + "name": "Hardware_ECC_Recovered", + "flags": 26, + "_value": "082", + "_worst": "064", + "_thresh": "000", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "148350832", + "raw_int": 148350832, + "thresh": 0, + "value": "082", + "value_int": 82, + "value_str": "082", + "worst": 64 + }, + null, + { + "num": 197, + "name": "Current_Pending_Sector", + "flags": 18, + "_value": "100", + "_worst": "100", + "_thresh": "000", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "0", + "raw_int": 0, + "thresh": 0, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + { + "num": 198, + "name": "Offline_Uncorrectable", + "flags": 16, + "_value": "100", + "_worst": "100", + "_thresh": "000", + "type": "Old_age", + "updated": "Offline", + "when_failed": "-", + "raw": "0", + "raw_int": 0, + "thresh": 0, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 100 + }, + { + "num": 199, + "name": "UDMA_CRC_Error_Count", + "flags": 62, + "_value": "200", + "_worst": "200", + "_thresh": "000", + "type": "Old_age", + "updated": "Always", + "when_failed": "-", + "raw": "0", + "raw_int": 0, + "thresh": 0, + "value": "200", + "value_int": 200, + "value_str": "200", + "worst": 200 + }, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + { + "num": 240, + "name": "Head_Flying_Hours", + "flags": 0, + "_value": "100", + "_worst": "253", + "_thresh": "000", + "type": "Old_age", + "updated": "Offline", + "when_failed": "-", + "raw": "1369 (143 119 0)", + "raw_int": 1369, + "thresh": 0, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 253 + }, + { + "num": 241, + "name": "Total_LBAs_Written", + "flags": 0, + "_value": "100", + "_worst": "253", + "_thresh": "000", + "type": "Old_age", + "updated": "Offline", + "when_failed": "-", + "raw": "1105531559", + "raw_int": 1105531559, + "thresh": 0, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 253 + }, + { + "num": 242, + "name": "Total_LBAs_Read", + "flags": 0, + "_value": "100", + "_worst": "253", + "_thresh": "000", + "type": "Old_age", + "updated": "Offline", + "when_failed": "-", + "raw": "13287203134", + "raw_int": 13287203134, + "thresh": 0, + "value": "100", + "value_int": 100, + "value_str": "100", + "worst": 253 + }, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null + ], + "test_capabilities": { + "offline": true, + "short": true, + "long": true, + "conveyance": true, + "selective": true + }, + "tests": [ + { + "_format": "ata", + "num": 1, + "type": "Extended offline", + "status": "Completed without error", + "hours": "1284", + "LBA": "-", + "remain": "00%", + "segment": null, + "sense": null, + "ASC": null, + "ASCQ": null, + "nsid": null, + "sct": null, + "code": null + }, + { + "_format": "ata", + "num": 2, + "type": "Short offline", + "status": "Completed without error", + "hours": "1281", + "LBA": "-", + "remain": "00%", + "segment": null, + "sense": null, + "ASC": null, + "ASCQ": null, + "nsid": null, + "sct": null, + "code": null + } + ], + "diagnostics": { + "_block_size": 512, + "Reallocated_Sector_Ct": null, + "Start_Stop_Spec": null, + "Start_Stop_Cycles": null, + "Start_Stop_Pct_Left": null, + "Load_Cycle_Spec": null, + "Load_Cycle_Count": null, + "Load_Cycle_Pct_Left": null, + "Power_On_Hours": null, + "Life_Left": null, + "Corrected_Reads": null, + "Corrected_Writes": null, + "Corrected_Verifies": null, + "_Uncorrected_Reads": null, + "_Uncorrected_Writes": null, + "_Uncorrected_Verifies": null, + "_Reads_GB": null, + "_Writes_GB": null, + "_Verifies_GB": null, + "_Reads_count": null, + "_Writes_count": null, + "_Verifies_count": null, + "Non_Medium_Errors": null, + "Reads_GB": null, + "Reads_count": null, + "Uncorrected_Reads": null, + "Uncorrected_Verifies": null, + "Uncorrected_Writes": null, + "Verifies_GB": null, + "Verifies_count": null, + "Writes_GB": null, + "Writes_count": null, + "block_size": 512 + }, + "temperature": 31, + "temperatures": {}, + "logical_sector_size": null, + "physical_sector_size": null, + "if_attributes": null, + "capacity": "000\u00a0398\u00a0934\u00a0016 bytes [2.00 TB", + "dev_interface": "ata", + "dev_reference": "/dev/sg2", + "diags": { + "Reallocated_Sector_Ct": "-", + "Start_Stop_Spec": "-", + "Start_Stop_Cycles": "-", + "Start_Stop_Pct_Left": "-", + "Load_Cycle_Spec": "-", + "Load_Cycle_Count": "-", + "Load_Cycle_Pct_Left": "-", + "Power_On_Hours": "-", + "Life_Left": "-", + "Corrected_Reads": "-", + "Corrected_Writes": "-", + "Corrected_Verifies": "-", + "Uncorrected_Reads": "-", + "Uncorrected_Writes": "-", + "Uncorrected_Verifies": "-", + "Reads_GB": "-", + "Writes_GB": "-", + "Verifies_GB": "-", + "Reads_count": "-", + "Writes_count": "-", + "Verifies_count": "-", + "block_size": "512", + "Non-Medium_Errors": "-" + }, + "interface": "ata", + "sector_size": 512, + "size": 2, + "size_raw": "000\u00a0398\u00a0934\u00a0016 bytes [2.00 TB", + "smartctl_interface": "ata", + "vendor": "ST" + } +} \ No newline at end of file