mellanox &nvidia infiniband 交换机配置split端口拆分模式

说明:

对于HDR交换机,通常有40个端口,每个端口为200G带宽。对于一些节点100g的HCA卡需要连接200g端口的交换机通常采用一分二线缆,并对交换机做split配置(IB线1分2或1分4场景下设置),这样交换机就有80个端口。每个端口为100G带宽,最后通过一分为二的线连接100g的HCA卡

场景:不带管理口IB交换机设置split

交换机lid号通过ibswitches指令获取

第一步:通过ssh登录某个计算、管理节点。

第二步:查看接入交换机的连接状态。iblinkinfo-S ${交换机GUID}

第三步:设置交换机的split模式。mlxconfig -d lid-${交换机lid号} s SPLIT_MODE=1

注意:1表示开启split模式,0表示禁用split模式。

第四步:查看接入交换机的split模式。mlxconfig -d lid-${交换机lid号} q SPLIT_MODE

第五步:重启交换机。flint -d lid-${交换机lid号} swreset

第六步:验证交换机的状态。iblinkinfo -S ${交换机GUID}

.其他split设置,如仅仅对某个端口split,某个范围的端口设置split, 请参考下图进行设置:

Action

Unmanaged

mlxconfig

Unmanaged

Sw

swportsplit.py

Enable split

mlxconfig –d

lid-2 s SPLIT_MODE=1

echo y |

python swportsplit.py -f list_of_switches.txt enable_split –reboot

echo y |

python swportsplit.py –d lid-2 enable_split –reboot –reboot

Check split

mode

mlxconfig -d

lid-2 q SPLIT_MODE

Or

mlxconfig –d

lid-2 q

python

swportsplit.py  -f list_of_switches.txt

status

python

swportsplit.py  -d lid-2 status

Split a port

Port 1

 mlxconfig -d lid-2 s SPLIT_PORT_32_1[0]=1

Port 33

 mlxconfig -d lid-2 s

SPLIT_PORT_64_33[0]=1

python

swportsplit.py –f list_of_switches split -p 1

python

swportsplit.py -f list_of_switches.txt split -p 1 2 3 5 8

Split a range

of ports

mlxconfig -d

lid-2 s SPLIT_PORT_32_1[0..31]=1 SPLIT_PORT_64_33[0..6]=1

python

swportsplit.py -f list_of_switches.txt split -s 10 -e 20

python

swportsplit.py –d lid-2 split -s 10 -e 20

Unsplit a

range of ports

mlxconfig -d

lid-2 s SPLIT_PORT_32_1[0..31]=0 SPLIT_PORT_64_33[0..6]=0

python

swportsplit.py -f list_of_switches.txt unsplit -s 10 -e 20

python

swportsplit.py –d lid-2  unsplit -s 10

-e 20

Check port

split configuration

mlxconfig –d

lid-2 q SPLIT_PORT_32_1[0..31] SPLIT_PORT_64_33[0..7]

python

swportsplit.py -f list_of_switches.txt status

python

swportsplit.py –d lid-2 status

  • 35
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

技术瘾君子1573

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值