A gluster volume can be mounted with several protocols, although not all at
the same time!
The sections below provide examples for mounting volumes across;
SMB
The SMB protocol relies upon the Samba service being setup across the gluster nodes.
Once samba has been installed and configured, the volume can be mounted from a Windows
or OSX machine using the following syntax.
net use <drive_letter> \\gluster-node-name\volume-name
eg.
net use y: \\glusternode\myvolume
NFS
Gluster support NFS v3, and so mount options from a client must adhere to the general
v3 syntax rules appropriate for the Unix/Linux platform you're using.
For NFS, two examples are shown. One showing typical Linux mount syntax, and the other showing
the updates necessary to /etc/fstab to make the mount persistent across client reboots.
mount -t nfs -o vers=3,proto=tcp gluster-node-name:/volume-name <mount-point>
For /etc/fstab
gluster-node-name:/volume-name <mount-point> nfs defaults,proto=tcp,vers=3,_netdev 0 0
Native
The most efficient way to access a glusterfs volume is through the glusterfs client. The client understand the
topology of the cluster and provides load balancing and failover capabilties.
mount -t glusterfs -o backupvolfile-server=gluster-node2 gluster-node-name1:/volume-name \
<mount-point>
For /etc/fstab
gluster-node-name:/volume-name <mount-point> glusterfs defaults,_netdev 0 0