华为存储的iBMC(智能基板管理控制器)日志体系庞大,与硬盘故障相关的信息主要记录在硬件故障类、存储类以及系统运行类的日志中。
以下是定位坏盘信息时可以重点检查的日志文件和常用命令:
关键日志文件
日志文件 所属类别 作用与关键字
sel.db / sel.tar 硬件故障类记录所有硬件事件,是定位坏盘的核心日志。可查找Asserted(告警触发)和Deasserted(告警解除)等关键字。
current_event.txt
硬件故障类记录当前未清除的告警,可查找 Critical(严重)或Major(重要)等关键字。
RAID_Controller_Info.txt存储类记录RAID卡状态。可查找 Degraded(阵列降级)、Offline(磁盘离线)和 Rebuild(重建中)等关键字。
StorageMgnt_dfl.log存储类记录存储管理相关事件,可查找 comm lost(通信中断)等关键字,这可能意味着硬盘或链路故障。
BMC_dfl.log系统运行类记录BMC核心异常,有时硬盘问题会引发系统级报错,可查找 exception(异常)或 watchdog(看门狗超时)等关键字。
常用诊断命令
除了直接查看日志文件,在BMC命令行界面使用特定命令可以更高效地获取硬盘状态:
bm show disk: 显示基本磁盘信息。
bm show faultdiskio: 专门用于显示故障磁盘的I/O信息。
bm show framediskinfo: 显示背板磁盘信息。
bm blockcheck: 执行块检查,可用于诊断坏块。
showlog: 通用的日志查询命令,可以筛选查看BMC日志。
bdm_interbiglog_collect.sh: 用于收集硬盘内部的详细日志信息。
sel.db /sel.tar日志文件路径:
dump_info\AppDump\sensor_alarm\sel.tar
current_event.txt
dump_info\AppDump\sensor_alarm\current_event.txt
RAID_Controller_Info.txt
dump_info\AppDump\StorageMgnt\RAID_Controller_Info.txt
StorageMgnt_dfl.log
dump_info\AppDump\StorageMgnt\StorageMgnt_dfl.log
BMC_dfl.log
dump_info\AppDump\BMC\BMC_dfl.log
常用检查命令:
admin:/>show controller general
Controller : 0A
Health Status : Normal
Running Status : Online
CPU : Intel 8core 2.0GHz *1
Location : CTE0.A
Role : Master
Cache Capacity : 32.000GB
CPU Usage(%) : 2
Memory Usage(%) : 80
Temperature(Celsius) : --
Voltage(V) : 12.0
Software Version : 6.30.07.210
PCB Version : VER.A
SES Version : 20.01.73T76
BMC Version : --
Logic Version : 00.00.120T03
BIOS Version : 50.02.05T52
All Temperatures(Celsius) : --
Electronic Label : [Board Properties]
BoardType=STL2CONTB11
BarCode=21030583969WJ9800049
Item=03058396
Description=Finished Board Unit,PANGEA,STL2CONTB11,SAS Service Processing Controller Unit(1*Intel 8 Cores,4*16G
Cache),with GE Card OnBoard
Manufactured=2018-09-24
VendorName=Huawei
IssueNumber=00
CLEICode=
BOM=
Model=
Electronic Sale Label :
Disk Version : 0:N2010121
--------------------------------------------------------------------------------------------------------------------------------------------------
Controller : 0B
Health Status : Normal
Running Status : Online
CPU : Intel 8core 2.0GHz *1
Location : CTE0.B
Role : Slave
Cache Capacity : 32.000GB
CPU Usage(%) : 1
Memory Usage(%) : 78
Temperature(Celsius) : --
Voltage(V) : 12.0
Software Version : 6.30.07.210
PCB Version : VER.A
SES Version : 20.01.73T76
BMC Version : --
Logic Version : 00.00.120T03
BIOS Version : 50.02.05T52
All Temperatures(Celsius) : --
Electronic Label : [Board Properties]
BoardType=STL2CONTB8
BarCode=21030581199WJA800059
Item=03058119
Description=Finished Board Unit,PANGEA,STL2CONTB8,SAS Service Processing Controller Unit(1*Intel 8 Cores,2*16G
Cache),with GE Card OnBoard
Manufactured=2018-10-16
VendorName=Huawei
IssueNumber=00
CLEICode=
BOM=
Model=
Electronic Sale Label :
Disk Version : 0:D0MU027
admin:/>show disk general
ID Health Status Running Status Type Capacity Role Disk Domain ID Speed(RPM) Health Mark Bar Code Item AutoLock State
------- ------------- -------------- ---- -------- ----------- -------------- ---------- ----------- -------------------- -------- --------------
CTE0.0 Normal Online SAS 1.079TB Member Disk 1 10000 83 2102351SGB9WK4007865 02351SGB OFF
CTE0.1 Normal Online SAS 1.079TB Member Disk 1 10000 88 2102351SGB9WK8003789 02351SGB OFF
CTE0.2 Normal Online SAS 1.079TB Member Disk 1 10000 83 2102351SGB9WK4008005 02351SGB OFF
CTE0.3 Normal Online SAS 1.079TB Member Disk 1 10000 83 2102351SGB9WK4007890 02351SGB OFF
CTE0.4 Normal Online SAS 1.084TB Member Disk 1 10000 88 2102351SGB9WK8003575 02351SGB OFF
CTE0.5 Normal Online SAS 1.084TB Member Disk 1 10000 88 2102351SGB9WK8003570 02351SGB OFF
CTE0.6 Normal Online SAS 1.084TB Member Disk 1 10000 88 2102351SGB9WK8003714 02351SGB OFF
CTE0.7 Normal Online SAS 1.084TB Member Disk 1 10000 88 2102351SGB9WK8003441 02351SGB OFF
CTE0.8 Normal Online SAS 1.084TB Member Disk 1 10000 85 2102350CDV10GA003847 02350CDV OFF
CTE0.9 Normal Online SAS 1.084TB Member Disk 1 10000 90 2102350CDV10GA003855 02350CDV OFF
CTE0.10 Normal Online SAS 1.084TB Free Disk -- 10000 85 2102350CDV10GA003876 02350CDV OFF
CTE0.11 Normal Online SAS 1.084TB Free Disk -- 10000 90 2102350CDV10GA003883 02350CDV OFF
admin:/>
查看单个硬盘信息:
admin:/>show disk general disk_id=CTE0.0
ID : CTE0.0
Health Status : Normal
Running Status : Online
Type : SAS
Capacity : 1.079TB
Role : Member Disk
Disk Domain ID : 1
Speed(RPM) : 10000
Interface Bandwidth(Mbps) : 12000
Sector Size : 4.062KB
Temperature(Celsius) : 38
Model : ST1200MM0129
Firmware Version : C0B1
Manufacturer : Seagate
Serial Number : WFK32JSX0000E92639WL
Light Status : Off
Disk Domain Name : DiskDomain002
Disk Domain Tier ID : 1.1
Coffer Disk : Yes
Run Time(Day) : 1629
Progress(%) : 0
Health Mark : 83
Multipathing : A,B
Bad Time : --
Bad Type : --
Sense Key : --
Sense Code : --
Fru : --
Bar Code : 2102351SGB9WK4007865
Bad Rate(%) : --
Capacity Usage(%) : 77
Smart Cache Pool ID : --
Electronic Label : [Board Properties]
BoardType=STLZB1SA1200
BarCode=2102351SGB9WK4007865
Item=02351SGB
Description=OceanStor 5300 V5,STLZB1SA1200,1.2TB 10K RPM SAS Disk Unit(2.5"),sectorsize-4160
Manufactured=2019-04-23
VendorName=Huawei
IssueNumber=00
CLEICode=
BOM=
AutoLock State : OFF
Degree of Wear(%) : --
Estimated Life Remaining(Month) : --
admin:/>
admin:/>show fan
ID Name Health Status Running Status Running Level
--------- ----- ------------- -------------- -------------
CTE0.PSU0 PSU 0 Normal Running Low
CTE0.PSU1 PSU 1 Normal Running Low
admin:/>show power_supply
ID Health Status Running Status Type
--------- ------------- -------------- ----
CTE0.PSU0 Normal Online AC
CTE0.PSU1 Normal Online AC
admin:/>
show disk precopy命令用于查询硬盘预拷贝功能的开关状态。
主动数据保护技术,它能在硬盘彻底坏掉之前,就紫红将数据提前转移走,避免数据丢失。
admin:/>show disk precopy
PreCopy Enabled : Yes
admin:/>
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作