重置HCA卡的端口
参考文档:
How to Reset IB Port in Exadata Environment (文档 ID 1592359.1)
额外注意:
ibportstate 的说明如下:
参考文档:
How to Reset IB Port in Exadata Environment (文档 ID 1592359.1)
[root@exadbmel02 ~]# ibportstate 22 1 reset
Initial PortInfo:
# Port info: Lid 22 port 1
LinkState:.......................Active
PhysLinkState:...................LinkUp
LinkWidthSupported:..............1X or 4X
LinkWidthEnabled:................1X or 4X
LinkWidthActive:.................4X
LinkSpeedSupported:..............2.5 Gbps or 5.0 Gbps or 10.0 Gbps
LinkSpeedEnabled:................2.5 Gbps or 5.0 Gbps or 10.0 Gbps
LinkSpeedActive:.................10.0 Gbps
额外注意:
ibportstate 22 1 reset的格式为:
ibportstate "Base lid" "Port #" reset
[root@exadbmel01 ~]# ibstat
CA 'mlx4_0'
CA type: MT26428
Number of ports: 2
Firmware version: 2.7.8130
Hardware version: b0
Node GUID: 0x0021280001a0c3d8 -----------> Take note of this GUID!
System image GUID: 0x0021280001a0c3db
Port 1: ------------> Port #
State: Active
Physical state: LinkUp
Rate: 40
Base lid: 22 -----------> LID #
LMC: 0
SM lid: 3
Capability mask: 0x02510868
Port GUID: 0x0021280001a0c3d9
Port 2:
State: Active
Physical state: LinkUp
Rate: 40
Base lid: 13
LMC: 0
SM lid: 3
Capability mask: 0x02510868
Port GUID: 0x0021280001a0c3da
ibportstate 的说明如下:
[root@rac1 driver]# ibportstate -h
Usage: ibportstate [options] <dest dr_path|lid|guid> <portnum> [<op>]
Supported ops: enable, disable, on, off, reset, speed, espeed, fdr10,
width, query, down, arm, active, vls, mtu, lid, smlid, lmc,
mkey, mkeylease, mkeyprot
Options:
--config, -z <config> use config file, default: /etc/infiniband-diags/ibdiag.conf
--Ca, -C <ca> Ca name to use
--Port, -P <port> Ca port number to use
--Direct, -D use Direct address argument
--Lid, -L use LID address argument
--Guid, -G use GUID address argument
--timeout, -t <ms> timeout in ms
--sm_port, -s <lid> SM port lid
--show_keys, -K display security keys in output
--m_key, -y <key> M_Key to use in request
--errors, -e show send and receive errors
--verbose, -v increase verbosity level
--debug, -d raise debug level
--help, -h help message
--version, -V show version
Examples:
ibportstate 3 1 disable # by lid
ibportstate -G 0x2C9000100D051 1 enable # by guid
ibportstate -D 0 1 # (query) by direct route
ibportstate 3 1 reset # by lid
ibportstate 3 1 speed 1 # by lid
ibportstate 3 1 width 1 # by lid
ibportstate -D 0 1 lid 0x1234 arm # by direct route
[root@rac1 driver]#