0.实验前的环境检查与配置
[student@workstation ~]$ lab clients-lab setup
1.配置防火墙
firewall-cmd --add-service=rpc-bind --add-service=nfs放行服务。 firewall-cmd --runtime-to-permanent永久放行。
[root@servera ~]# firewall-cmd --add-service=rpc-bind --add-service=nfs
Warning: ALREADY_ENABLED
[root@servera ~]# firewall-cmd --runtime-to-permanent
success
2.配置选项设置
gluster volume set wallace nfs.disable on禁用nfs的功能开启。 gluster volume set wallace auth.allow 172.25.250.254允许指定地址访问。gluster volume stop wallace关闭存储卷。gluster volume start wallace启动存储卷。
[root@servera ~]# gluster volume set wallace nfs.disable on
volume set: success
[root@servera ~]# gluster volume set wallace auth.allow 172.25.250.254
volume set: success
[root@servera ~]# gluster volume stop wallace
Stopping volume will make its data inaccessible. Do you want to continue? (y/n) y
volume stop: