test(disks): use recorded smartctl output
The get_disks tests ran against hand-written smartctl sections. They now read smartctl -iHA as recorded on real hosts: an ATA SATA DOM and an NVMe SSD (PASSED), a SAS SSD (OK) and a QEMU disk without SMART, with serial numbers, WWNs and LU ids replaced. The failing verdicts replace the verdict line of a recording, as no failing disk was at hand. A recorded /proc/mdstat without arrays is added too.
This commit is contained in:
1 parent
6b9ba25773
commit
c8f4a0b1f7
6 files changed
+231
-79
No files matched your search
+2
@@ -0,0 +1,2 @@
|
||||
Personalities : [raid0] [raid1] [raid4] [raid5] [raid6] [raid10]
|
||||
unused devices: <none>
|
||||
@@ -0,0 +1,20 @@
|
||||
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-7.2.11+deb13-amd64] (local build)
|
||||
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
|
||||
|
||||
=== START OF INFORMATION SECTION ===
|
||||
Vendor: QEMU
|
||||
Product: QEMU HARDDISK
|
||||
Revision: 2.5+
|
||||
Compliance: SPC-3
|
||||
User Capacity: 34,359,738,368 bytes [34.3 GB]
|
||||
Logical block size: 512 bytes
|
||||
LU is thin provisioned, LBPRZ=0
|
||||
Device type: disk
|
||||
Local Time is: Sun Nov 1 21:08:12 2026 UTC
|
||||
SMART support is: Unavailable - device lacks SMART capability.
|
||||
|
||||
=== START OF READ SMART DATA SECTION ===
|
||||
Current Drive Temperature: 0 C
|
||||
Drive Trip Temperature: 0 C
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-7.0.14-26-pve] (local build)
|
||||
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org
|
||||
|
||||
=== START OF INFORMATION SECTION ===
|
||||
Model Family: Supermicro SATA DOM (SuperDOM)
|
||||
Device Model: SuperMicro SSD
|
||||
Serial Number: FAKESERIAL0000000001
|
||||
LU WWN Device Id: 5 000000 000000001
|
||||
Firmware Version: SOB20R
|
||||
User Capacity: 15,837,691,904 bytes [15.8 GB]
|
||||
Sector Size: 512 bytes logical/physical
|
||||
Rotation Rate: Solid State Device
|
||||
TRIM Command: Available, deterministic, zeroed
|
||||
Device is: In smartctl database 7.5/5706
|
||||
ATA Version is: ACS-2 (minor revision not indicated)
|
||||
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
|
||||
Local Time is: Sun Nov 1 22:09:52 2026 CET
|
||||
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
|
||||
|
||||
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
|
||||
1 Raw_Read_Error_Rate 0x0000 100 100 000 Old_age Offline - 0
|
||||
5 Reallocated_Sector_Ct 0x0000 100 100 000 Old_age Offline - 0
|
||||
9 Power_On_Hours 0x0000 100 100 000 Old_age Offline - 18373
|
||||
12 Power_Cycle_Count 0x0000 100 100 000 Old_age Offline - 54
|
||||
15 User_Cpcty_Sector_Cnt 0x0000 100 100 000 Old_age Offline - 30932992
|
||||
160 Not_In_Use 0x0000 100 100 000 Old_age Offline - 0
|
||||
161 Not_In_Use 0x0000 100 100 000 Old_age Offline - 160
|
||||
163 Not_In_Use 0x0000 100 100 000 Old_age Offline - 6
|
||||
164 Not_In_Use 0x0000 100 100 000 Old_age Offline - 661737
|
||||
165 Not_In_Use 0x0000 100 100 000 Old_age Offline - 363
|
||||
166 Minimum_PE_Cycles_TLC 0x0000 100 100 000 Old_age Offline - 262
|
||||
167 Not_In_Use 0x0000 100 100 000 Old_age Offline - 316
|
||||
168 Maximum_PE_Cycles_TLC 0x0000 100 100 000 Old_age Offline - 3000
|
||||
172 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 0
|
||||
175 Program_Fail_Count_Chip 0x0000 100 100 000 Old_age Offline - 6
|
||||
177 Wear_Leveling_Count 0x0000 100 100 000 Old_age Offline - 3855
|
||||
181 Program_Fail_Cnt_Total 0x0000 100 100 000 Old_age Offline - 0
|
||||
187 Reported_Uncorrect 0x0000 100 100 000 Old_age Offline - 0
|
||||
192 Power-Off_Retract_Count 0x0000 100 100 000 Old_age Offline - 12
|
||||
194 Temperature_Celsius 0x0000 100 100 000 Old_age Offline - 34 (Min/Max 1/58)
|
||||
195 Hardware_ECC_Recovered 0x0000 100 100 000 Old_age Offline - 75
|
||||
197 Current_Pending_Sector 0x0000 100 100 000 Old_age Offline - 0
|
||||
198 Offline_Uncorrectable 0x0000 100 100 000 Old_age Offline - 0
|
||||
199 UDMA_CRC_Error_Count 0x0000 100 100 000 Old_age Offline - 0
|
||||
231 SSD_Life_Left 0x0000 100 100 000 Old_age Offline - 100
|
||||
232 Available_Reservd_Space 0x0000 100 100 000 Old_age Offline - 90
|
||||
233 NAND_Writes_1GiB 0x0000 100 100 000 Old_age Offline - 5169
|
||||
241 Lifetime_Writes_GiB 0x0000 100 100 000 Old_age Offline - 2361
|
||||
242 Lifetime_Reads_GiB 0x0000 100 100 000 Old_age Offline - 2579
|
||||
@@ -0,0 +1,43 @@
|
||||
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-7.0.14-26-pve] (local build)
|
||||
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org
|
||||
|
||||
=== START OF INFORMATION SECTION ===
|
||||
Model Number: CT500P5PSSD8
|
||||
Serial Number: FAKESERIAL03
|
||||
Firmware Version: P7CR402
|
||||
PCI Vendor/Subsystem ID: 0xc0a9
|
||||
IEEE OUI Identifier: 0x00a075
|
||||
Total NVM Capacity: 500,107,862,016 [500 GB]
|
||||
Unallocated NVM Capacity: 0
|
||||
Controller ID: 0
|
||||
NVMe Version: 1.4
|
||||
Number of Namespaces: 1
|
||||
Namespace 1 Size/Capacity: 500,107,862,016 [500 GB]
|
||||
Namespace 1 Formatted LBA Size: 512
|
||||
Namespace 1 IEEE EUI-64: 00a075 0000000003
|
||||
Local Time is: Sun Nov 1 22:10:17 2026 CET
|
||||
|
||||
=== START OF SMART DATA SECTION ===
|
||||
SMART overall-health self-assessment test result: PASSED
|
||||
|
||||
SMART/Health Information (NVMe Log 0x02, NSID 0x1)
|
||||
Critical Warning: 0x00
|
||||
Temperature: 40 Celsius
|
||||
Available Spare: 100%
|
||||
Available Spare Threshold: 5%
|
||||
Percentage Used: 5%
|
||||
Data Units Read: 5,484,072 [2.80 TB]
|
||||
Data Units Written: 32,786,179 [16.7 TB]
|
||||
Host Read Commands: 129,533,249
|
||||
Host Write Commands: 609,881,286
|
||||
Controller Busy Time: 960
|
||||
Power Cycles: 101
|
||||
Power On Hours: 998
|
||||
Unsafe Shutdowns: 22
|
||||
Media and Data Integrity Errors: 0
|
||||
Error Information Log Entries: 85
|
||||
Warning Comp. Temperature Time: 0
|
||||
Critical Comp. Temperature Time: 0
|
||||
Temperature Sensor 1: 40 Celsius
|
||||
Thermal Temp. 1 Transition Count: 1
|
||||
Thermal Temp. 1 Total Time: 69
|
||||
@@ -0,0 +1,39 @@
|
||||
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-7.0.14-26-pve] (local build)
|
||||
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org
|
||||
|
||||
=== START OF INFORMATION SECTION ===
|
||||
Vendor: HGST
|
||||
Product: HSCAC2DA4SUN400G
|
||||
Revision: A29A
|
||||
Compliance: SPC-4
|
||||
User Capacity: 399,421,472,768 bytes [399 GB]
|
||||
Logical block size: 512 bytes
|
||||
LU is resource provisioned, LBPRZ=1
|
||||
Rotation Rate: Solid State Device
|
||||
Form Factor: 2.5 inches
|
||||
Logical Unit id: 0x5000000000000002
|
||||
Serial number: FAKESERIAL02 FAKESN02
|
||||
Device type: disk
|
||||
Transport protocol: SAS (SPL-4)
|
||||
Local Time is: Sun Nov 1 22:09:52 2026 CET
|
||||
SMART support is: Available - device has SMART capability.
|
||||
SMART support is: Enabled
|
||||
Temperature Warning: Enabled
|
||||
|
||||
=== START OF READ SMART DATA SECTION ===
|
||||
SMART Health Status: OK
|
||||
|
||||
Percentage used endurance indicator: 3%
|
||||
Current Drive Temperature: 28 C
|
||||
Drive Trip Temperature: 70 C
|
||||
|
||||
Accumulated power on time, hours:minutes 54545:19
|
||||
Manufactured in week 09 of year 2015
|
||||
Specified cycle count over device lifetime: 0
|
||||
Accumulated start-stop cycles: 0
|
||||
Specified load-unload count over device lifetime: 0
|
||||
Accumulated load-unload cycles: 0
|
||||
Elements in grown defect list: 0
|
||||
|
||||
Vendor (Seagate Cache) information
|
||||
Blocks sent to initiator = 674671535507636224
|
||||
Reference in new issue
Block a user