Last active
December 12, 2020 17:46
-
-
Save trinhpham/b24e74c4d5e1e141027f5ece838fe0b8 to your computer and use it in GitHub Desktop.
NFS over GlusterFS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://blogs.oracle.com/linux/migrate-nfs-to-glusterfs-and-nfs-ganesha | |
mkdir -p /data/gnfs | |
gluster volume create gnfs db1:/data/gnfs force | |
gluster volume start gnfs | |
gluster volume info gnfs | |
gluster volume status | |
gluster volume add-brick gnfs replica 2 db2:/data/gnfs force | |
mkdir /etc/ganesha/exports | |
cat << EOF > /etc/ganesha/exports/export.gnfs.conf | |
EXPORT | |
{ | |
# Export Id (mandatory, each EXPORT must have a unique Export_Id) | |
Export_Id = 9; | |
# Exported path (mandatory) | |
Path = "/gnfs"; | |
# Exporting FSAL | |
FSAL { | |
name = GLUSTER; | |
hostname="localhost"; | |
volume="gnfs"; | |
Up_poll_usec = 10; # Upcall poll interval in microseconds | |
Transport = rdma; # tcp or rdma | |
} | |
Access_type = RW; | |
#Disable_ACL = true; | |
Squash = No_Root_Squash; | |
# Pseudo Path (required for NFS v4) | |
Pseudo="/gnfs"; | |
Protocols = "3", "4" ; | |
#Transports = "UDP","TCP"; | |
SecType = "sys"; | |
} | |
EOF | |
cat /etc/ganesha/exports/export.gnfs.conf | |
echo "%include "/etc/ganesha/exports/export.gnfs.conf"" >>/etc/ganesha/ganesha.conf | |
systemctl restart nfs-ganesha | |
systemctl status nfs-ganesha | |
showmount -e localhost | |
helm install -n nfs nfs stable/nfs-client-provisioner --set nfs.server=10.124.0.2 --set nfs.path=/gnfs/bcoutfit --set storageClass.archiveOnDelete=false,storageClass.accessModes=ReadWriteMany |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment