CentOS8.3 nfs-ganesha-proxy的使用

实验环境:

                  1台nfs-ganesha节点,使用vfs共享目录

                  1台proxy节点,进行nfs代理

                  1台客户端,进行nfs挂载使用

1.nfs-ganesha节点部署

https://blog.csdn.net/hxj3315/article/details/111180369

2.proxy节点部署

dnf install centos-release-nfs-ganesha30.noarch -y
dnf install nfs-ganesha-proxy -y

cat /etc/ganesha/ganesha.conf
EXPORT
{
        # Export Id (mandatory, each EXPORT must have a unique Export_Id)
        Export_Id = 77;

        # Exported path (mandatory, path to export on the remote server)
        Path = /data_pseudo;

        # Pseudo Path (required for NFS v4)
        Pseudo = /vfs_data;

        Access_Type = RW;

        Squash = no_root_squash;

        # Exporting FSAL
        FSAL {
                Name = PROXY;
                Srv_Addr = ${nfs-ganesha_ip};
                Use_Privileged_Client_Port = true;
        }
}

systemctl restart nfs-ganesha

3.客户端挂载测试

mount -t nfs4 ${proxy_ip}:/vfs_data /mnt/
df -h #看到挂载成功则完成

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值