Add MXRDMA
parent
c60b7bcc5b
commit
393238a6a8
73
MXRDMA.md
Normal file
73
MXRDMA.md
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
# MXRDMA
|
||||||
|
|
||||||
|
### 环境准备
|
||||||
|
|
||||||
|
#### 准备OFED 环境
|
||||||
|
|
||||||
|
* 下载doca-ofed 
|
||||||
|
|
||||||
|
[NVIDIA DOCA 3.2.1 LTS 下载 | NVIDIA 开发者](https://developer.nvidia.cn/doca-3-2-1-download-archive?deployment_platform=Host-Server\&deployment_package=DOCA-Host\&target_os=Linux&%E6%9E%B6%E6%9E%84=x86_64&%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6=doca-ofed&%E5%8F%91%E8%A1%8C%E7%89%88=Ubuntu\&version=20.04\&installer_type=deb_local)
|
||||||
|
|
||||||
|
|
||||||
|
* 安装doca-ofed
|
||||||
|
```shell
|
||||||
|
sudo dpkg -i doca-host_***.deb
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install doca-ofed -y
|
||||||
|
sudo rmmod metax_rdma metax
|
||||||
|
sudo /etc/init.d/openibd restart # 建议在BMC中执行此命令
|
||||||
|
sudo update-initramfs -u -k all # 重新生成initramfs
|
||||||
|
```
|
||||||
|
|
||||||
|
### 适配 Centos、Kylin 系统
|
||||||
|
|
||||||
|
* **配置YUM源**
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cat <<EOF> /etc/yum.repos.d/maca-rdma-rpm.repo
|
||||||
|
[maca-rdma]
|
||||||
|
name=Maca Rdma Yum Repository
|
||||||
|
baseurl=https://repos.metax-tech.com/r/maca-rdma-rpm-$(uname -m)/
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=0
|
||||||
|
EOF
|
||||||
|
|
||||||
|
yum makecache
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 安装MXRDMA
|
||||||
|
|
||||||
|
* **安装mxrdma最新版本**
|
||||||
|
|
||||||
|
```shell
|
||||||
|
yum install mxrdma
|
||||||
|
```
|
||||||
|
* **卸载mxrdma**
|
||||||
|
|
||||||
|
```shell
|
||||||
|
yum autoremove mxrdma
|
||||||
|
```
|
||||||
|
|
||||||
|
### 适配 Ubuntu 系统
|
||||||
|
|
||||||
|
* **配置APT源**
|
||||||
|
|
||||||
|
```shell
|
||||||
|
curl -fsSL https://repos.metax-tech.com/public.gpg.key | apt-key add -
|
||||||
|
echo "deb [arch=$(dpkg --print-architecture)] https://repos.metax-tech.com/r/maca-rdma-deb/ stable main" | tee /etc/apt/sources.list.d/maca-rdma-deb.list
|
||||||
|
apt-get update
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 安装MXRDMA
|
||||||
|
|
||||||
|
* **安装mxrdma最新版本**
|
||||||
|
|
||||||
|
```shell
|
||||||
|
apt install mxrdma
|
||||||
|
```
|
||||||
|
* **卸载mxrdma**
|
||||||
|
|
||||||
|
```shell
|
||||||
|
apt autoremove mxrdma
|
||||||
|
```
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user