zoukankan      html  css  js  c++  java
  • windows挂载gluseter NFS卷

    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/

  • 相关阅读:
    Python多进程编程
    Cython学习
    cProfile——Python性能分析工具
    Python垃圾回收机制:gc模块
    新纪元
    类模版的static成员
    我的2015plan
    Linux之sed
    getenv, _wgetenv
    vs2010下如何调试带输入参数的程序
  • 原文地址:https://www.cnblogs.com/tcicy/p/10000710.html
Copyright © 2011-2022 走看看