出现这个问题很大可能是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