
Refiriéndose a la preguntaaquí, Yo también estoy tratando de sacar todos los atributos, como se explica en este blog.aquí.
Estoy usando Debian 6 como sistema operativo e instalé smartmontools versión 6.3 usando apt-get. Mis 6 discos están en RAID. Primero habilité las estadísticas usando el comando
sudo smartctl -s on -o on -S on -d megaraid,0 /dev/sda
sudo smartctl -s on -o on -S on -d megaraid,1 /dev/sda
sudo smartctl -s on -o on -S on -d megaraid,2 /dev/sda
sudo smartctl -s on -o on -S on -d megaraid,3 /dev/sda
sudo smartctl -s on -o on -S on -d megaraid,4 /dev/sda
sudo smartctl -s on -o on -S on -d megaraid,5 /dev/sda
Una vez hecho esto, estoy usando el siguiente comando para obtener todos los atributos:
smartctl -a -i -d megaraid,0 /dev/sda
pero no veo ningún atributo como se dice en el artículo del blog.
bash-4.1# smartctl -a -i -d megaraid,0 /dev/sda
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-2.6.32-5-amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: SEAGATE
Product: ST900MM0006
Revision: LS08
Compliance: SPC-4
User Capacity: 900,185,481,216 bytes [900 GB]
Logical block size: 512 bytes
LB provisioning type: unreported, LBPME=-1, LBPRZ=0
Rotation Rate: 10000 rpm
Form Factor: 2.5 inches
Logical Unit id: 0x5000c500767033b3
Serial number: S0N1MEKG
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Wed Mar 4 13:17:30 2015 IST
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: 21 C
Drive Trip Temperature: 50 C
Manufactured in week 22 of year 2014
Specified cycle count over device lifetime: 10000
Accumulated start-stop cycles: 118
Specified load-unload count over device lifetime: 300000
Accumulated load-unload cycles: 314
Elements in grown defect list: 0
Vendor (Seagate) cache information
Blocks sent to initiator = 965779306
Blocks received from initiator = 2971611077
Blocks read from cache and sent to initiator = 403576599
Number of read and write commands whose size <= segment size = 11852771
Number of read and write commands whose size segment size = 121
Vendor (Seagate/Hitachi) factory information
number of hours powered up = 4833.13
number of minutes until next internal SMART test = 54
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: 3785944895 0 0 3785944895 0 2403.727 0
write: 0 0 0 0 0 4069.649 0
verify: 3308284580 0 0 3308284580 0 15953.521 0
Non-medium error count: 0
SMART Self-test log
Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ]
Description number (hours)
# 1 Background short Completed 48 8 - [- - -]
# 2 Reserved(7) Completed 32 8 - [- - -]
# 3 Background short Completed 48 7 - [- - -]
Long (extended) Self Test duration: 5616 seconds [93.6 minutes]
¿Alguna pista de lo que me estoy perdiendo aquí? ¿Cómo obtengo las métricas SMART?
Respuesta1
No puede extraer información SMART de una matriz RAID. La matriz tiene información INTELIGENTE, las unidades que la hacen funcionar.
Dev sda es un RAID, no una unidad (sd0, sd1/sda1, sdb1, etc.). Así que extraiga su información de las unidades de disco, no de la matriz.