当前位置: > CentOS > CentOS教程 >

Centos8.3 nfs-ganesha使用vfs共享目录

时间:2020-12-16 16:02来源:linux.it.net.cn 作者:IT
1.部署nfs-ganesha

dnf install centos-release-nfs-ganesha30.noarch -y
dnf install nfs-ganesha nfs-ganesha-vfs -y
2.配置nfs-ganesha

cat /etc/ganesha/ganesha.conf
EXPORT {
    Export_ID = 1;
    FSAL {
        Name = VFS;
    }
    mode = 0755;
    Squash="No_root_squash";
    Protocols = "4" ;
    Access_type = RW;
    Path = "/data";
    Pseudo = "/data_pseudo";
}
3.重启nfs-ganesha

systemctl restart nfs-ganesha
4.去nfs客户端挂载测试

mount -t nfs4 ${server_ip}:/data_pseudo /mnt
df -h #可以看到挂载成功则完成
  (责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容