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
@@ -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
|
||||
Reference in new issue
Block a user