Ubuntu 26.04

GlusterFS : GlusterFS + NFS-Ganesha2026/04/28

 

Install NFS-Ganesha and integrate with GlusterFS to mount Gluster Volume with NFS protocol.
The supported NFS protocols by NFS-Ganesha are v3, v4.0, v4.1, pNFS.

For example, Configure NFS Export setting to a Gluster Volume [vol_distributed] like an example of the link here.

[1] Disable NFS server if it is running.
root@node01:~#
systemctl disable --now nfs-server

[2] Install and Configure NFS-Ganesha on a Node in GlusterFS Cluster.
root@node01:~#
apt -y install nfs-ganesha-gluster
root@node01:~#
mv /etc/ganesha/ganesha.conf /etc/ganesha/ganesha.conf.org

root@node01:~#
vi /etc/ganesha/ganesha.conf
# create new

NFS_CORE_PARAM {
    # possible to mount with NFSv3 to NFSv4 Pseudo path
    mount_path_pseudo = true;
    # NFS protocol
    Protocols = 3,4;
}
EXPORT_DEFAULTS {
    # default access mode
    Access_Type = RW;
}
EXPORT {
    # unique ID
    Export_Id = 101;
    # mount path of Gluster Volume
    Path = "/vol_distributed";
    FSAL {
    	# any name
        name = GLUSTER;
        # hostname or IP address of this Node
        hostname="10.0.0.51";
        # Gluster volume name
        volume="vol_distributed";
    }
    # config for root Squash
    Squash="No_root_squash";
    # NFSv4 Pseudo path
    Pseudo="/vfs_distributed";
    # allowed security options
    SecType = "sys";
}
LOG {
    # default log level
    Default_Log_Level = WARN;
}

root@node01:~#
systemctl restart nfs-ganesha

root@node01:~#
systemctl enable nfs-ganesha
# show exports list

root@node01:~#
showmount -e localhost

Export list for localhost:
/vfs_distributed (everyone)
[3] if UFW is enabled, allow NFS service.
root@node01:~#
ufw allow nfs

Rule added
Rule added (v6)
[4] Verify NFS mounting on a Client Host.
root@client:~#
apt -y install nfs-common
# specify Pseudo path set on [Pseudo=***] in ganesha.conf

root@client:~#
mount -t nfs4 node01.srv.world:/vfs_distributed /mnt

root@client:~#
df -hT

Filesystem                        Type   Size  Used Avail Use% Mounted on
tmpfs                             tmpfs  680M  1.1M  679M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv ext4    14G  5.7G  7.4G  44% /
tmpfs                             tmpfs  1.7G     0  1.7G   0% /dev/shm
none                              tmpfs  1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
none                              tmpfs  1.0M     0  1.0M   0% /run/credentials/systemd-resolved.service
tmpfs                             tmpfs  1.7G     0  1.7G   0% /tmp
/dev/vda2                         ext4   2.0G   96M  1.7G   6% /boot
none                              tmpfs  1.0M     0  1.0M   0% /run/credentials/systemd-networkd.service
none                              tmpfs  1.0M     0  1.0M   0% /run/credentials/getty@tty1.service
none                              tmpfs  1.0M     0  1.0M   0% /run/credentials/serial-getty@ttyS0.service
tmpfs                             tmpfs  340M  8.0K  340M   1% /run/user/0
node01.srv.world:/vfs_distributed nfs4    28G   12G   15G  44% /mnt
Matched Content