linux7启动ib子网管理器,IB_Switch交换机SB7890配置及Band网卡
IB_Switch交换机SB7890配置及Band网卡
1.创建软件存放目录
[root@localhost ~]#
mkdir -p /soft
2.上传OS镜像,本案例以RHEL7.7为例
mount -o loop /soft/rhel-server-7.7-x86_64-dvd.iso /mnt/
3.配置yum源
[root@localhost ~]#
vi /etc/yum.conf
[rheldvd]
name=rhel7.7
baseurl=file:///mnt
enabled=1
gpgcheck=0
[main]
………………………………
4.IB交接机驱动下载或上传已有驱动包至soft目录
驱动包:
MLNX_OFED_LINUX-5.1-2.3.7.1-rhel7.7-x86_64.tgz
5.解压驱动并安装
cd /soft
tar -xvzf
MLNX_OFED_LINUX-5.1-2.3.7.1-rhel7.7-x86_64.tgz
6.安装驱动
yum install pciutils perl gtk2 atk cairo gcc-gfortran tcsh openssl-libs libusbx lsof tcl fuse-libs tk -y
cd /soft/MLNX_OFED_LINUX-5.1-2.3.7.1-rhel7.7-x86_64
./mlnxofedinstall
7.Load HCA驱动
/etc/init.d/openibd restart
8.启动子网管理并设置开机启动
/etc/init.d/opensmd start ——对于当前SB7890交换不自子网管理,因此只能在OS端开启子网管理服务,若多个节点建议开1——2个节点即可,不建议全部开启;
/sbin/chkconfig opensmd on
/sbin/chkconfig opensmd --list
9.重启OS
reboot
10.查看IB是否正常识别
ifconfig -a
正常识别如下:
ib0: flags=4163 mtu 2044
Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8).
infiniband 00:00:10:87:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 txqueuelen 256 (InfiniBand)
RX packets 2 bytes 232 (232.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ib1: flags=4099 mtu 4092
Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8).
infiniband 00:00:18:87:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 txqueuelen 256 (InfiniBand)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
11.Band IB配置网络
01. Create bond0 Interface on the server. Update the following file:
touch /etc/sysconfig/network-scripts/ifcfg-bond0
Note: the only meaningful bonding policy in IPoIB is High-Availability (bonding mode number 1,
or "active-backup").
To learn more about the Linux bonding options click here .
Here is an example:
DEVICE=bond0
IPADDR=11.11.11.1
NETWORK=11.11.11.0
NETMASK=255.255.255.0
BROADCAST=11.11.11.255
USERCTL=no
BOOTPROTO=none
NM_CONTROLLED=yes
BONDING_OPTS="mode=active-backup primary=ib0 miimon=100 updelay=100 downdelay=100"
MTU=2044
02.Update/Create ib0 Interface on the server. Update the following file:
touch /etc/sysconfig/network-scripts/ifcfg-ib0
Here is an example:
DEVICE=ib0
TYPE=InfiniBand
NM_CONTROLLED=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
PRIMARY=yes
03.Update/Create ib1 Interface on the server. Update the following file:
touch /etc/sysconfig/network-scripts/ifcfg-ib1
Here is an example:
DEVICE=ib1
TYPE=InfiniBand
NM_CONTROLLED=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
PRIMARY=no
04.Create/Update the bond.conf file.
touch /etc/modprobe.d/bond.conf
Configure this file as follows:
alias bond0 bonding # Adapter bonding driver
options bond0 max_bonds=2 miimon=100 mode=1 # 100ms fail-over timer. Mode 1 = Active/Backup
05. Restart the network services and the driver.
#
/etc/init.d/network restart
#
/etc/init.d/openibd restart
06.Verify the bond configuration:
#
cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Bonding Mode: fault-tolerance (active-backup) (fail_over_mac active)
Primary Slave: ib0 (primary_reselect always)
Currently Active Slave: ib0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 100
Down Delay (ms): 100
Slave Interface: ib1
MII Status:
up
Speed: 40000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: a0:04:03:00:fe:80
Slave queue ID: 0
Slave Interface: ib0
MII Status:
up
Speed: 40000 Mbps
Duplex: full
Link Failure Count: 254
Permanent HW addr: a0:04:02:20:fe:80
Slave queue ID: 0
07.Fail Over MAC
Since rdma_cm does not support MAC enslavement, fail_over_mac=1 (or active) should be added
to the bond interface configuration in case of Ethernet interface.
The value active(1) for fail_over_mac policy indicates that the MAC address of the bond should
always be the MAC address of the currently active slave. The MAC address of the slaves is not
changed; instead, the MAC address of the bond changes during a failover.
Changing to fail_over_mac=1 solves this problem as if this not active, the bond MAC jumps from
one interface to another according to the active interface.
Add the bonding options (BONDING_OPT)? "fail_over_mac=1" to /etc/sysconfig/network- scripts/ifcfg-bond0. Note: the default of this parameter is disabled (0).
Here is an example:
DEVICE=bond0
IPADDR=11.11.11.1
NETWORK=11.11.11.0
NETMASK=255.255.255.0
BROADCAST=11.11.11.255
USERCTL=no
BOOTPROTO=none
NM_CONTROLLED=yes
BONDING_OPTS="mode=active-backup primary=ib0 miimon=100 updelay=100 downdelay=100
fail_over_mac=1"
MTU=2044
linux7启动ib子网管理器,IB_Switch交换机SB7890配置及Band网卡相关推荐
- android sdk无法启动不了,无法启动Android SDK管理器
我无法启动android sdk管理器,我已经正确检查了sdk,jdk路径但无法解决此问题.当我开始在eclipse CONSOL Android SDK中管理器显示这些行:无法启动Android S ...
- vim win装_vim插件管理器的安装和配置-windows
# vim插件管理器的安装和配置-windows ### 前言 ----------------------------- - vim做一框功能强大的编辑器,扩展功能令人称奇,插件机制非常灵活 - 本 ...
- FastCGI 进程管理器(FPM)配置项目列表
FPM 使用类似 php.ini 语法的 php-fpm.conf 和进程池配置文件. php-fpm.conf 全局配置段 pid string PID 文件的位置.默认为空. error_log ...
- 运行android sdk管理器,Android SDK 安装配置
Android SDK 可以通过 Android Command line tools(叫命令行工具或 SDK 工具)手动安装,也可以让 Android Studio 自动帮你下载安装,这里详细描述手 ...
- windows server 2008服务器管理器,添加IIS配置(2012同理)
打开windows server 2008服务器管理器,选择添加角色,见下图 选择默认下一步,见下图 选择安装Web服务器(iis),应用程序服务器,终端服务(32位系统)或远程桌面服务(64位系统) ...
- win2012每次启动显示服务器管理器,win2012r2服务器管理器打开角色.功能出错
Hi 艾.呦, 您安装的是SQL Server那个版本的SP3补丁包呢?另外出错的时候报出的是什么错误信息? 请到Windows Event Log里面查找有关于SQL Server的错误信息. Be ...
- 【问】启动SQL服务管理器时提示SQL Server could not find
[问题描述] SQL Server could not find the default instance(MSSQLSEVER) [答] 该报错主要为SQL安装时实例没有安装成功,卸载SQL重新进行 ...
- SuperSocket 服务管理器 (ServerManager)
SuperSocket SuperSocket 服务管理器 (ServerManager) 中文(中国)Toggle Dropdown 关键字: ServerManager, 服务管理器, 管理, 管 ...
- 英特尔® 硬件加速执行管理器安装指南 — Mac OS X*
介绍 本文将指导您安装英特尔® 硬件加速执行管理器(英特尔® HAXM),这是一款可以使用英特尔® 虚拟化技术(VT)加快 Android* 开发速度的硬件辅助虚拟化引擎(管理程序). 前提条件 英特 ...
- MQ队列管理器搭建(一)
多应用单MQ使用场景 如上图所示,MQ独立安装,或者与其中一个应用同处一机.Application1与Application2要进行通信,但因为跨系统,所以引入中间件来实现需求. Applicatio ...
最新文章
- Google Pixel 超分辨率--Super Resolution Zoom
- oracle批量插入并且返回自增主键_oracle 自增主键实现批量更新和增加sql
- yii2框架的安装配置启动
- Android Context Hook
- java8中的lambda用法实例
- UWP 开发初阶 Chapter 6 - 简单介绍如何使用 C# 改变 XAML 控件的属性
- CentOS 6.2 中文
- Creating a Pager Control for ASP.NET以及Dino Esposito 分页组件的一个 Bug
- 马云乌镇致辞:技术革命最终应该机器更像机器、人更像人
- java (Eclipse)连接MySQL数据库
- 笨方法学Python3 习题 0
- 解决路由器登录页被维盟智能路由管理系统拦截
- mysql sql执行效率_一顿操作猛如虎,SQL执行效率提高250
- 软件测试入职工作流程
- HTML页面添加背景音乐
- 【怎么突破安全狗和360网站卫士的】
- 文件包含漏洞-知识点
- jQuery跳房子插件hopscotch
- 数据分析与R软件(第二版)李素兰著 各章例题数据和程序
- 硬币分类android,基于视觉的硬币清算系统研究及其Android应用开发