windows下挂载gluster提供的NFS卷
服务器端的配置:
首先配置好NFS共享,找一台linux试一下,确保挂载成功。linux客户端执行:mount.nfs 10.33.70.20:test_vol /mnt/ssd/
然后在服务器端执行:
gluster volume set test_vol nfs.volume-access read-write
gluster volume set test_vol storage.owner-gid 0
gluster volume set test_vol nfs.rpc-auth-allow 10.33.*.*
systemctl restart glusterd.service
windows客户端执行以下:
Install NFS services for Windows
Start Registry Editor
Locate HKEY_LOCAL_MACHINESOFTWAREMicrosoftClientForNFS CurrentVersionDefault
Create two DWORD values named AnonymousUid and AnonymousGid. these values is 0
reboot windows
Run cmd
mount -o anon x.x.x.x:/test_vol z:
此时配置完成。
服务器端查看命令
showmount -e
showmount
相应glusterfs的配置参数参考
https://docs.gluster.org/en/latest/Administrator%20Guide/Managing%20Volumes/