Michael_Tong
近期目标:按时吃药,努力做个正常人。

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_MACHINE\SOFTWARE\Microsoft\ClientForNFS \CurrentVersion\Default 

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/

 

posted on 2018-11-22 14:18  Michael_Tong唐唐  阅读(440)  评论(0编辑  收藏  举报