P440arでRAID組んでいるので備忘録です。HBA経由だと取れなかったりして困りますが、HPE SmartArrayシリーズは見えるのがあるみたいです。
定番のsmartctlを使いたいので、インストールします。
yum install smartmontools
あとはsmartctrlでRAIDを組んでいるブロックデバイスを指定しつつ–device=cciss,<ドライブn番目>の指定で物理デバイスの情報が取れます。
このときのブロックデバイスとドライブ番号の関係はクセがあって、sdaのメンバってわけではないみたいです。sdaを指定しつつsdbのメンバが見れます。順序はポート順で0~指定のようです。
# smartctl -a /dev/sda --device=cciss,0
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1160.36.2.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: HGST
Product: HUS724040ALS641
Revision: MS01
Compliance: SPC-4
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Logical block size: 512 bytes
Formatted with type 2 protection
8 bytes of protection information per logical block
LU is resource provisioned, LBPRZ=0
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Logical Unit id: 0x5000cca03bd0f838
Serial number: XXXXXXX
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Thu Sep 2 22:18:24 2021 JST
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
Current Drive Temperature: 33 C
Drive Trip Temperature: 55 C
Manufactured in week 28 of year 2014
Specified cycle count over device lifetime: 50000
Accumulated start-stop cycles: 46
Specified load-unload count over device lifetime: 600000
Accumulated load-unload cycles: 1944
Elements in grown defect list: 5
Vendor (Seagate Cache) information
Blocks sent to initiator = 1445588281327616
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: 66086 12 0 66098 3287963 242807.667 8
write: 0 0 0 0 82469 24609.590 0
verify: 0 0 0 0 1874 0.000 0
Non-medium error count: 0
No Self-tests have been logged