重置HCA卡的端口

重置HCA卡的端口

参考文档:
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]# 


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值