Is the MGS specification correct?或Is the MGS running? lustre文件系统挂载(mount)失败

出现这个问题很大可能是LNet没有配置成功,导致了客户端或者OST连接不上服务器端,可按以下操作进行LNet配置:

Step1: 关闭SELinux和配置防火墙

setenforce 0            
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config

systemctl stop firewalld
systemctl disable firewalld

Step2: 获取自己系统的网络接口名称
在终端输入ifconfig即可:
在这里插入图片描述
例如我这里显示的是ens160,这在Step3需要用到

Step3: LNet网络配置

lustre_rmmod
modprobe -v lnet
lnetctl lnet configure

lnetctl net add --net tcp --if ens160 #将ens160替换为自己的网络接口名称
lnetctl net show

sudo sh -c 'lnetctl export > /etc/sysconfig/lnet.conf'
systemctl enable lnet

静态配置:

sudo vim /etc/modprobe.d/lustre.conf
options lnet networks="tcp(ens160)" #将ens160替换为自己的网络接口名称

到这里再去尝试挂载应该就可以了,注意在挂载时最好加上-o rw选项,让挂载的文件系统可读写。

mount -o rw -t lustre /home/ost1 /mnt/ost1

猜你喜欢

转载自blog.csdn.net/qq_57973134/article/details/138033401