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:
Christian Manivong committed 2026-11-01 22:14:40 +01:00
1 parent 6b9ba25773
commit c8f4a0b1f7
6 files changed
+231 -79

No files matched your search

@@ -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