Automatically Mounting Volumes
You can configure your system to automatically mount the Gluster volume each time your system
starts.
To automatically mount a Gluster volume
To mount a volume, edit the /etc/fstab file and add the following line:
HOSTNAME-OR-IPADDRESS:/VOLNAME MOUNTDIR glusterfs defaults,_netdev 0 0
For example:
server1:/test-volume /mnt/glusterfs glusterfs defaults,_netdev 0 0
Mounting Options
You can specify the following options when updating the /etc/fstab file. Note that you need to
separate all options with commas.
You can configure your system to automatically mount the Gluster volume each time your system
starts.
To automatically mount a Gluster volume
To mount a volume, edit the /etc/fstab file and add the following line:
HOSTNAME-OR-IPADDRESS:/VOLNAME MOUNTDIR glusterfs defaults,_netdev 0 0
For example:
server1:/test-volume /mnt/glusterfs glusterfs defaults,_netdev 0 0
Mounting Options
You can specify the following options when updating the /etc/fstab file. Note that you need to
separate all options with commas.
log-level=loglevel
log-file=logfile
transport=transport-type
direct-io-mode=[enable|disable]
For example:
HOSTNAME-OR-IPADDRESS:/VOLNAME MOUNTDIR glusterfs defaults,_netdev,loglevel=WARNING,log-file=/var/log/gluster.log 0 0
Note: The server specified in the mount command is only used to fetch the gluster configuration
volfile describing the volume name. Subsequently, the client will communicate directly with the
servers mentioned in the volfile (which might not even include the one used for mount).