查看事件
storcli /c0 show events
硬盘报警处理方法
*通过热插拔的方式来制造故障
注释:
c:Controller,控制器,也就是阵列卡;
e:Enclosure,附件,一般来讲也就是硬盘背板“硬盘笼”;
s:Slot,物理硬盘槽位;
v:Virtual Drive,虚拟硬盘,也就是逻辑卷;
d:Disk Group,硬盘组;
f:Foreign configuration file,外部阵列配置。
1.查看控制器
storcli show
-------------------------------------------------------------------------------------
Ctl Model Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS EHS ASOs Hlth
-------------------------------------------------------------------------------------
0 AVAGOMegaRAIDSAS9361-8i 8 4 1 1 1 1 Opt On 1&2 Y 5 NdAtn
-------------------------------------------------------------------------------------
只有一个ctl 为 0 的控制器
2.关闭蜂鸣器 太吵了
#查看蜂鸣器
storcli /c0 show alarm
#此时为开启状态
----------------
Ctrl_Prop Value
----------------
Alarm ON
----------------
#设置为off
storcli /c0 set alarm=off
#哦吼,世界清净了 修复完成后 可能需要重新开启(未验证)
----------------
Ctrl_Prop Value
----------------
Alarm OFF
----------------
3.查看阵列下哪块硬盘坏了
storcli /c0/eall/sall show
-----------------------------------------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type
-----------------------------------------------------------------------------------------------------
252:0 8 Onln 0 930.390 GB SATA HDD N N 512B WDC WD10EZEX-08WN4A0 U -
252:1 9 Onln 0 930.390 GB SATA HDD N N 512B WD1003FBYX-88 LEN U -
252:4 17 Onln 0 930.390 GB SATA HDD N N 512B WDC WD10EADX-00TDHB0 U -
252:5 16 UBad - 1.817 TB SATA HDD N N 512B WDC WD20EURX-64H U -
-----------------------------------------------------------------------------------------------------
磁盘状态描述:
UGood(Unconfigured Good,未配置正常):硬盘状态正常,但还未划分给任何逻辑卷;
UBad(Unconfigured Bad,未配置异常):UGood状态的硬盘出现无法恢复的错误;
Onln(Online,在线):已经设置为某个虚拟硬盘的成员盘,并且处于在线正常可用状态;
Offln(Offline,离线):某个虚拟硬盘的成员盘离线;
Missing,Online状态的硬盘脱离RAID组的状态;
Rbld(Rebuild,重建):硬盘正在重建数据。
4.将252下的5 恢复成UGood 状态
storcli /c0 /e252 /s5 set good
5.开始重建
storcli /c0 /fall import
-----------------------------------------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type
-----------------------------------------------------------------------------------------------------
252:0 8 Onln 0 930.390 GB SATA HDD N N 512B WDC WD10EZEX-08WN4A0 U -
252:1 9 Onln 0 930.390 GB SATA HDD N N 512B WD1003FBYX-88 LEN U -
252:4 17 Onln 0 930.390 GB SATA HDD N N 512B WDC WD10EADX-00TDHB0 U -
252:5 16 Rbld 0 1.817 TB SATA HDD N N 512B WDC WD20EURX-64HYZY0 U -
-----------------------------------------------------------------------------------------------------
正在重建中...
6.查看重建进度 单个硬盘
storcli /c0 /e252 /s5 show rebuild
------------------------------------------------------
Drive-ID Progress% Status Estimated Time Left
------------------------------------------------------
/c0/e252/s5 7 In progress 2 Hours 25 Minutes
------------------------------------------------------
#需要2个小时25分钟
#当前已经进行了 7%
多个硬盘可以用 /sall
storcli /c0 /e252 /sall show rebuild
----------------------------------------------------------
Drive-ID Progress% Status Estimated Time Left
----------------------------------------------------------
/c0/e252/s0 - Not in progress -
/c0/e252/s1 - Not in progress -
/c0/e252/s4 - Not in progress -
/c0/e252/s5 7 In progress 2 Hours 24 Minutes
----------------------------------------------------------
显示阵列卡温度
storcli /c0 show temperature
# 温度为108度 (我查询到的最高温度......)
--------------------------------------
Ctrl_Prop Value
--------------------------------------
ROC temperature(Degree Celsius) 108
--------------------------------------
查看重建率
storcli /c0 show rebuildrate
------------------
Ctrl_Prop Value
------------------
Rebuildrate 30%
------------------
评论区