查询和清除phy口误码

命令功能

命令格式

命令

说明

hiraidadm ccontroller_id:eenclosure_id:sslot_id show phyerror

查询当前硬盘phy口的链路状态。

hiraidadm ccontroller_id:eenclosure_id:sslot_id clear phyerror

清除指定硬盘phy口的误码计数。

参数说明

参数

参数说明

取值

controller_id

控制卡的ID。

查询控制卡ID请参见查询控制卡列表

enclosure_id

硬盘所在框位的ID。

查询硬盘所在框位ID请参见查询控制卡硬盘列表

slot_id

硬盘所在槽位的ID。

查询硬盘所在槽位ID请参见查询控制卡硬盘列表

使用指南

回显中主要字段的含义如表1所示。
表1 回显说明

命令格式

字段

含义

举例

hiraidadm ccontroller_id:eenclosure_id:sslot_id show phyerror

Phy id

phy端口ID。

7

Phy enable

Phy口使能状态。

enable

Link speed

端口下行速率。

6.0Gb/s

Attach Device Type

设备类型。

SATA

Attach SAS Address

连接的sas设备地址。

0x5000000000000007

Invalid Dword Count

无效的双字计数。

0

Run Disparity Error Count

运行差异错误计数。

0

Loss Of Dword Sync

双字同步丢失数。

0

Phy Reset Problem Count

Phy口重置问题计数。

0

使用实例

查询硬盘phy的链路状态。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
[root@localhost ~]# hiraidadm c0:e0:s0 show phyerror
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================
-------------------------------------------------------
Phy id                  | 7
Phy enable              | enable
Link speed              | 6.0Gb/s
Attach Device Type      | SATA
Attach SAS Address      | 0x5000000000000007
Invalid Dword Count     | 0
Run Disparity Err Count | 0
Loss Of Dword Syn Count | 0
Phy Reset Problem Count | 0
-------------------------------------------------------
清除硬盘phy口的误码计数。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
[root@localhost ~]# hiraidadm c0:e0:s0 clear phyerror
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================