/etc/fstab
A typical GlusterFS entry in /etc/fstab looks like below
server1:/mirror /mnt/mirror glusterfs log-file=/var/log/mirror.log,acl 0 0
Script to mount native glusterfs volume
Part of mount.glusterfs(8).
mount -t
glusterfs
[-o
<options>]
<volumeserver>:/<volume>
[/<subdir>]
<mountpoint>
This tool is part of glusterfs(8) package, which is used to mount using GlusterFS native binary.
mount.glusterfs is meant to be used by the mount(8) command for mounting native GlusterFS client. This subcommand, however, can also be used as a standalone command with limited functionality.
log-file=LOG-FILEFile to use for logging [default:/var/log/glusterfs/glusterfs.log]
log-level=LOG-LEVELLogging severity. Valid options are TRACE, DEBUG, WARNING, ERROR, CRITICAL INFO and NONE [default: INFO]
aclMount the filesystem with POSIX ACL support
fopen-keep-cache[=BOOL]Do not purge the cache on file open (default: false)
wormMount the filesystem in 'worm' mode
aux-gfid-mountEnable access to filesystem through gfid directly
roMount the filesystem read-only
enable-ino32=BOOLUse 32-bit inodes when mounting to workaround broken applications that don't support 64-bit inodes
mem-accountingEnable internal memory accounting
capabilityEnable file capability setting and retrival
thin-clientEnables thin mount and connects via gfproxyd daemon
localtime-loggingUse local timestamps instead of UTC in mount log entries
attribute-timeout=SECONDSSet attribute timeout to SECONDS for inodes in fuse kernel module [default: 1]
entry-timeout=SECONDSSet entry timeout to SECONDS in fuse kernel module [default: 1]
background-qlen=NSet fuse module's background queue length to N [default: 64]
gid-timeout=SECONDSSet auxiliary group list timeout to SECONDS for fuse translator [default: 0]
negative-timeout=SECONDSSet negative timeout to SECONDS in fuse kernel module [default: 0]
volume-name=VOLUME-NAMEVolume name to be used for MOUNT-POINT [default: top most volume in VOLUME-FILE]
direct-io-mode=BOOL|autoSpecify fuse direct I/O strategy [default: auto]
congestion-threshold=NSet fuse module's congestion threshold to N [default: 48]
Set the subdirectory mount option [default: NULL, ie, no subdirectory mount]
backup-volfile-servers=SERVERLISTProvide list of backup volfile servers in the following format [default: None] If use IPv6 address in SERVERLIST, it is required to use '[' and ']' to surround IPv6 address.
$ mount -t glusterfs -obackup-volfile-servers=<server2>: <server3>:...:<serverN> <server1>:/<volname> <mount_point> $ mount -t glusterfs -obackup-volfile-servers=<[ipv6_addr2]>: <[ipv6_addr3]>:...:<[ipv6_addrN]> <ipv6_addr1>:/<volname> <mount_point>
backupvolfile-server=SERVERProvide list of backup volfile servers in the following format [default: None]
$ mount -t glusterfs -obackupvolfile-server=<server2> <server1>:/<volname> <mount_point>
fetch-attempts=NDeprecated option - placed here for backward compatibility [default: 1]
lru-limit=NSet fuse module's limit for number of inodes kept in LRU list to N [default: 65536]
inode-table-size=NSet the inode hash table size to N - this must be a power of 2 greater than or equal to 65536 and will be rounded up if not [default: 65536]
invalidate-limit=NSuspend fuse invalidations implied by 'lru-limit' if number of outstanding invalidations reaches N
background-qlen=NSet fuse module's background queue length to N [default: 64]
no-root-squash=BOOLdisable root squashing for the trusted client [default: off]
root-squash=BOOLenable root squashing for the trusted client [default: on]
use-readdirp=BOOLUse readdirp() mode in fuse kernel module [default: on]
dump-fuse=PATHDump fuse traffic to PATH
kernel-writeback-cache=BOOLEnable fuse in-kernel writeback cache [default: off]
attr-times-granularity=NSDeclare supported granularity of file attribute [default: 0]
auto-invalidation=BOOLcontrols whether fuse-kernel can auto-invalidate attribute, dentry and page-cache. Disable this only if same files/directories are not accessed across two different mounts concurrently [default: on]
/etc/fstab
A typical GlusterFS entry in /etc/fstab looks like below
server1:/mirror /mnt/mirror glusterfs log-file=/var/log/mirror.log,acl 0 0
/proc/mounts
An example entry of a GlusterFS mountpoint in /proc/mounts looks like below
server1:/mirror /mnt/glusterfs fuse.glusterfs rw,allow_other,default_permissions,max_read=131072 0 0