RTFM.WIKI

Ordnung muß sein. Ordnung über alles (18+)

Инструменты пользователя

Инструменты сайта


linux:smart_for_humans

Human readable SMART

Читал на досуге статистику по отказам HDD. Потом полистал прайсы и на секунду загрустил. Решил посмотреть SMART у дисков в домашнем NAS.

На моём домашнем Linux сервере нет GUI, поэтому все делаю по SSH. Да вот нормально посмотреть SMART у дисков нельзя без GUI.

Возможно кому-то нравится большой объем ненужной инфы из smartmontools. Я же хочу просто получить состояние диска - бежать в магазин за новым или нет.

Нашел хорошую программу Hard Disk Sentinel. Выводит данные в человекопонятном виде.

Для примера сравнение smartctl и hdsentinel

smartctl

# smartctl -a /dev/sdd
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-3.10.0-862.11.6.el7.x86_64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Deskstar 5K3000
Device Model:     Hitachi HDS5C3020ALA632
Serial Number:    ML2220FA13WH2E
LU WWN Device Id: 5 000cca 36acfdbcc
Firmware Version: ML6OAA10
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    5940 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 2.6, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Tue Aug 21 13:56:46 2018 MSK
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                (   28) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 366) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   135   135   054    Pre-fail  Offline      -       98
  3 Spin_Up_Time            0x0007   150   150   024    Pre-fail  Always       -       397 (Average 333)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       215
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       179
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   144   144   020    Pre-fail  Offline      -       30
  9 Power_On_Hours          0x0012   094   094   000    Old_age   Always       -       47065
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       208
192 Power-Off_Retract_Count 0x0032   099   099   000    Old_age   Always       -       1606
193 Load_Cycle_Count        0x0012   099   099   000    Old_age   Always       -       1606
194 Temperature_Celsius     0x0002   187   187   000    Old_age   Always       -       32 (Min/Max -3/47)
196 Reallocated_Event_Count 0x0032   093   093   000    Old_age   Always       -       277
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     47019         -
# 2  Short offline       Completed without error       00%      9005         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

hdsentinel

HDD Device  3: /dev/sdd
HDD Model ID : Hitachi HDS5C3020ALA632
HDD Serial No: ML2220FA13WH2E
HDD Revision : ML6OAA10
HDD Size     : 1907729 MB
Interface    : S-ATA Gen3, 6 Gbps
Temperature  : 32 °C
Highest Temp.: 47 °C
Health       : 18 %
Performance  : 100 %
Power on time: 1961 days, 1 hours
Est. lifetime: 18 days
  There are 179 bad sectors on the disk surface. The contents of these sectors were moved to the spare area.
  Based on the number of remapping operations, the health of the disk was decreased in different steps.
  It is recommended to examine the log of the disk regularly. All new problems found will be logged there.
    It is recommended to backup immediately to prevent data loss.

Как видите скоро всей вашей америке диску кирдык.

Обсуждение

Ваш комментарий. Вики-синтаксис разрешён:
 
linux/smart_for_humans.txt · Последнее изменение: 2018/08/21 14:08 — 127.0.0.1