SMART Disk monitor linux

Оценка диска. Утилита Disks для работы с устройствами хранения.

Assessment

DISK IS LIKELY TO FAIL SOON
DISK IS LIKELY TO FAIL SOON

Сообщение в терминале:

--More--SMART Disk monitor:
Device: /dev/sdb [SAT], FAILED SMART self-check. BACK UP DATA NOW!

Для анализа состояния дисков смотрим вывод утилиты smartctl:

[root@host ~]# smartctl -iA /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.18.0-147.5.1.el8_1.x86_64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     SiliconMotion based SSDs
Device Model:     R3SL240G
Serial Number:    E201703020180264
Firmware Version: P0705AB
User Capacity:    240,057,409,536 bytes [240 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Apr  7 11:42:42 2020 MSK
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x0000   100   100   000    Old_age   Offline      -       0
  5 Reallocated_Sector_Ct   0x0000   100   100   000    Old_age   Offline      -       20
  9 Power_On_Hours          0x0000   100   100   000    Old_age   Offline      -       1440
 12 Power_Cycle_Count       0x0000   100   100   000    Old_age   Offline      -       40
160 Uncorrectable_Error_Cnt 0x0000   100   100   000    Old_age   Offline      -       0
161 Valid_Spare_Block_Cnt   0x0000   100   100   000    Old_age   Offline      -       1
163 Initial_Bad_Block_Count 0x0000   100   100   000    Old_age   Offline      -       333
148 Total_SLC_Erase_Ct      0x0000   100   100   000    Old_age   Offline      -       297950
149 Max_SLC_Erase_Ct        0x0000   100   100   000    Old_age   Offline      -       4045
150 Min_SLC_Erase_Ct        0x0000   100   100   000    Old_age   Offline      -       3888
151 Average_SLC_Erase_Ct    0x0000   100   100   000    Old_age   Offline      -       4026
164 Total_Erase_Count       0x0000   100   100   000    Old_age   Offline      -       601081
165 Max_Erase_Count         0x0000   100   100   000    Old_age   Offline      -       732
166 Min_Erase_Count         0x0000   100   100   000    Old_age   Offline      -       479
167 Average_Erase_Count     0x0000   100   100   000    Old_age   Offline      -       482
169 Remaining_Lifetime_Perc 0x0000   100   100   001    Old_age   Offline      -       84
181 Program_Fail_Cnt_Total  0x0000   100   100   000    Old_age   Offline      -       0
182 Erase_Fail_Count_Total  0x0000   100   100   000    Old_age   Offline      -       0
192 Power-Off_Retract_Count 0x0000   100   100   000    Old_age   Offline      -       26
194 Temperature_Celsius     0x0000   100   100   070    Old_age   Offline      -       25 (35 33 32 33 0)
199 UDMA_CRC_Error_Count    0x0000   100   100   000    Old_age   Offline      -       0
232 Available_Reservd_Space 0x0000   100   100   000    Old_age   Offline      -       6
241 Host_Writes_32MiB       0x0000   100   100   000    Old_age   Offline      -       521965
242 Host_Reads_32MiB        0x0000   100   100   000    Old_age   Offline      -       21633
245 TLC_Writes_32MiB        0x0000   100   100   000    Old_age   Offline      -       3550134
246 SLC_Writes_32MiB        0x0000   100   100   000    Old_age   Offline      -       595900
247 Raid_Recoverty_Ct       0x0000   100   100   000    Old_age   Offline      -       0

SSD под замену.

Вывод команды smartctl по новому диску:

# smartctl -iA /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.18.0-147.5.1.el8_1.x86_64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WDS240G2G0A-00JH30
Serial Number:    1907A9800505
LU WWN Device Id: 5 001b44 8b9f3fe24
Firmware Version: UF500000
User Capacity:    240,065,183,744 bytes [240 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Apr  7 15:05:24 2020 MSK
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0032   100   100   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       1
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       2
165 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
166 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       0
167 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       0
168 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       0
169 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       262
170 Unknown_Attribute       0x0032   100   100   ---    Old_age   Always       -       0
171 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
172 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
173 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
174 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   ---    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   ---    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   071   041   000    Old_age   Always       -       29 (Min/Max 13/41)
199 UDMA_CRC_Error_Count    0x0032   100   100   ---    Old_age   Always       -       0
230 Unknown_SSD_Attribute   0x0032   100   100   000    Old_age   Always       -       0
232 Available_Reservd_Space 0x0033   100   100   005    Pre-fail  Always       -       100
233 Media_Wearout_Indicator 0x0032   100   100   ---    Old_age   Always       -       0
234 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
241 Total_LBAs_Written      0x0030   100   100   000    Old_age   Offline      -       0
242 Total_LBAs_Read         0x0030   100   100   000    Old_age   Offline      -       0
244 Unknown_Attribute       0x0032   000   100   ---    Old_age   Always       -       0

На что обращать внимание при оценке здоровья SSD диска

Для нормального состояния диска у каждого производителя данные отличаются.

  • Для большинства дисков по столбцу RAW_VALUE должны быть значения 0 у параметров:
    • 01 Raw Read Error Rate;
    • 05 Reallocated Sectors Count;
    • 196 Reallocation Event Count;
    • 197 Current Pending Sector Count;
    • 198 Uncorrectable Sector Count;
    • 199 UDMA_CRC_Erro;
    • 250 Read Error Retry Rate.
  • Также по столбцу VALUE (не RAW_VALUE), значения должны быть больше 1:
    • 233 Media_Wearout_Indicator;
    • 231 SSD Life Remaining;
    • 170 Available_Reservd_Space (больше 10).

Ответить

Ваш адрес email не будет опубликован. Обязательные поля помечены *