Я запустил smartctl -a на пяти разных компьютерах (в основном CentOS 7 Linux с smartctl 6.2) и заметил два стиля вывода smartctl. Зачем ему менять выходной формат? Один стиль содержит таблицу атрибутов, которые хорошо объяснены на умная страница википедии. Другой не такой явный, и я думаю, мне нужно просто использовать Всего неисправленных ошибок столбец. Но я хотел бы получить что-то столь же прямое и понятное, как первое.
Машины бывают следующие; все это CentOS7 / smartctl 6.2, за исключением отмеченного:
На первых трех машинах smartctl включает атрибуты SMART, что очень приятно; вот типичный вывод:
# smartctl -a -d cciss,1 /dev/sda
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-123.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sda [cciss_disk_01] [SCSI]: Device open changed type from 'sat,auto+cciss' to 'cciss'
=== START OF INFORMATION SECTION ===
Vendor: HP
Product: EG0300FCSPH
Revision: HPD0
User Capacity: 300,000,000,000 bytes [300 GB]
Logical block size: 512 bytes
Rotation Rate: 10000 rpm
Form Factor: 2.5 inches
Logical Unit id: 0x5000039578312bc4
Serial number: 44T0A3NDFTM91418
Device type: disk
Transport protocol: SAS
Local Time is: Thu Sep 10 18:15:54 2015 UTC
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: 22 C
Drive Trip Temperature: 65 C
Manufactured in week 18 of year 2014
Specified cycle count over device lifetime: 50000
Accumulated start-stop cycles: 32
Specified load-unload count over device lifetime: 200000
Accumulated load-unload cycles: 0
Elements in grown defect list: 0
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: 0 1 0 0 0 80988.717 0
write: 0 0 0 0 0 16041.817 0
Non-medium error count: 74
SMART Self-test log
Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ]
Description number (hours)
# 1 Background short Completed - 22 - [- - -]
# 2 Background short Completed - 17 - [- - -]
# 3 Background short Completed - 14 - [- - -]
Long (extended) Self Test duration: 2782 seconds [46.4 minutes]
На G5 или (того хуже) Supermicro я получаю следующее, и я не могу найти способ получить атрибуты SMART аналогично машине HP или настольным компьютерам:
# smartctl -a -d megaraid,25 /dev/sda
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-229.7.2.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: SEAGATE
Product: ST300MM0026
Revision: 0003
User Capacity: 300,000,000,000 bytes [300 GB]
Logical block size: 512 bytes
Logical block provisioning type unreported, LBPME=0, LBPRZ=0
Rotation Rate: 10500 rpm
Form Factor: 2.5 inches
Logical Unit id: 0x5000c50075e3261f
Serial number: S0K2CJ1D0000C44065GJ
Device type: disk
Transport protocol: SAS
Local Time is: Thu Sep 10 13:44:34 2015 UTC
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: 19 C
Drive Trip Temperature: 50 C
Manufactured in week 16 of year 2014
Specified cycle count over device lifetime: 10000
Accumulated start-stop cycles: 735
Specified load-unload count over device lifetime: 300000
Accumulated load-unload cycles: 991
Elements in grown defect list: 0
Vendor (Seagate) cache information
Blocks sent to initiator = 2366764968
Blocks received from initiator = 42603654
Blocks read from cache and sent to initiator = 2410106
Number of read and write commands whose size <= segment size = 591527
Number of read and write commands whose size > segment size = 71
Vendor (Seagate/Hitachi) factory information
number of hours powered up = 6262.87
number of minutes until next internal SMART test = 52
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: 3614146604 0 0 3614146604 0 1143.056 0
write: 0 0 0 0 0 53.204 0
verify: 29492 0 0 29492 0 0.008 0
Non-medium error count: 0
[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
No self-tests have been logged