在任意一台GlusterFS节点部署nfs-ganesha相关包
dnf install centos-release-nfs-ganesha30 -y
dnf install nfs-ganesha-gluster -y
配置ganesha
cat /etc/ganesha/ganesha.conf
EXPORT{
Export_Id = 1 ; # Export ID unique to each export
Path = "/gv0"; # Path of the volume to be exported. Eg: "/test_volume"
FSAL {
name = GLUSTER;
hostname = "${ip}"; #one of the nodes in the trusted pool
volume = "gv0"; # Volume name. Eg: "test_volume"
}
Access_type = RW; # Access permissions
Squash = No_root_squash; # To enable/disable root squashing
Disable_ACL = TRUE; # To enable/disable ACL
Pseudo = "/gv0_pseudo"; # NFSv4 pseudo path for this export. Eg: "/test_volume_pseudo"
Protocols = "3","4" ; # NFS protocols supported
Transports = "UDP","TCP" ; # Transport protocol