Cleanup & Check Harddisk Usable Under LSI RAID二, 02/02/2021 - 18:39 的修訂版本

修訂版本可以讓你追蹤文章的多個版本的不同之處。

 

 

 


SAS Disk 的健康

 

有關參數

  • Total uncorrected errors
  • Elements in grown defect list

Default: an empty grown defect list (or maybe up to 5 entries on just a few drives).

If the number is not zero => monitor the defect list for some time to see if it is still growing.

A steadily growing defect list is a good sign for the drive to fail in the near future.

 


檢查方式

 

MegaCli64 -cfgldadd R0[252:2] WT NORA -a0

MegaCli64 -LDInfo -Lall -a0

smartctl --scan

smartctl -d megaraid,16 -a /dev/bus/0

smartctl -d megaraid,16 -t short /dev/bus/0

smartctl -d megaraid,16 -t long /dev/bus/0

Self-test execution status:             89% of test remaining
SMART Self-test log
Num  Test              Status                 segment  LifeTime  LBA_first_err [SK ASC ASQ]
     Description                              number   (hours)
# 1  Background long   Self test in progress ...  64     NOW                 - [-   -    -]
# 2  Background short  Completed                  64   39758                 - [-   -    -]

LifeTime: 相當卡 "number of hours powered up"

Vendor (Seagate Cache) information
  Blocks sent to initiator = 2668630296                # 不會上升
  Blocks received from initiator = 1675807082          # 不會上升
  Blocks read from cache and sent to initiator = 4272401990

清 Data

dd if=/dev/zero of=/dev/sde bs=32M        # Blocks sent & received to / from initiator 都會上升

MegaCli64 -CfgLdDel -L1 -a0

MegaCli64 -PDPrpRmv -PhysDrv[252:2] -a0

 


Toubleshoot

 

smartctl -d megaraid,16 -a /dev/bus/0

...
SMART support is:     Unavailable - device lacks SMART capability.

=== START OF READ SMART DATA SECTION ===
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported

Device does not support Self Test logging

原因: Firmware state: Unconfigured(good), Spun down

 => 為免 HDD Spun down, 我為要建立 R0