2014-12-17 15:48:53 +03:00
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
<refentry id= "vfs_glusterfs.8" >
<refmeta >
<refentrytitle > vfs_glusterfs</refentrytitle>
<manvolnum > 8</manvolnum>
<refmiscinfo class= "source" > Samba</refmiscinfo>
<refmiscinfo class= "manual" > System Administration tools</refmiscinfo>
2017-12-12 11:08:06 +03:00
<refmiscinfo class= "version" > &doc.version; </refmiscinfo>
2014-12-17 15:48:53 +03:00
</refmeta>
<refnamediv >
<refname > vfs_glusterfs</refname>
<refpurpose >
Utilize features provided by GlusterFS
</refpurpose>
</refnamediv>
<refsynopsisdiv >
<cmdsynopsis >
<command > vfs objects = glusterfs</command>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 >
<title > DESCRIPTION</title>
<para > This VFS module is part of the
<citerefentry > <refentrytitle > samba</refentrytitle>
<manvolnum > 8</manvolnum> </citerefentry> suite.</para>
<para >
2015-02-13 03:04:11 +03:00
GlusterFS
(<ulink url= "http://www.gluster.org/" > http://www.gluster.org</ulink> )
is an Open Source clustered file system capable of scaling to
several peta-bytes. With its FUSE based native client,
GlusterFS is available as a POSIX compliant file system and can
hence be shared by Samba without additional steps.
2014-12-17 15:48:53 +03:00
</para>
<para >
2015-02-13 03:04:11 +03:00
The <command > vfs_glusterfs</command> VFS module provides an
alternative, and superior way to access a Gluster filesystem
from Samba for sharing. It does not require a Gluster FUSE mount
but directly accesses the GlusterFS daemon through its library
<command > libgfapi</command> , thereby omitting the expensive
kernel-userspace context switches and taking advantage of some
of the more advanced features of GlusterFS.
2014-12-17 15:48:53 +03:00
</para>
<para >
2015-02-13 03:04:11 +03:00
This module can be combined with other modules, but it
should be the last module in the <command > vfs objects</command>
list. Modules added to this list to the right of the glusterfs
entry may not have any effect at all.
2014-12-17 15:48:53 +03:00
</para>
</refsect1>
<refsect1 >
<title > CONFIGURATION</title>
<para >
2015-02-19 18:59:00 +03:00
A basic configuration looks like this.
2014-12-17 15:48:53 +03:00
</para>
<programlisting >
<smbconfsection name= "[share]" />
<smbconfoption name= "vfs objects" > glusterfs</smbconfoption>
2015-02-19 18:59:00 +03:00
<smbconfoption name= "path" > /relative/base/path</smbconfoption>
<smbconfoption name= "glusterfs:volume" > gv0</smbconfoption>
<smbconfoption name= "kernel share modes" > no</smbconfoption>
2014-12-17 15:48:53 +03:00
</programlisting>
2015-02-19 18:59:00 +03:00
<para >
Note that since <command > vfs_glusterfs</command> does not
require a Gluster mount, the share <command > path</command> is
treated differently than for other shares: It is interpreted as
the base path of the share relative to the gluster volume used.
Because this is usually not at the same time a system path, in a
ctdb cluster setup where ctdb manages Samba, you need to set
<command > CTDB_SAMBA_SKIP_SHARE_CHECK=yes</command> in ctdb's
configuration file. Otherwise ctdb will not get healthy.
</para>
<para >
Note that currently kernel share modes have to be disabled
in a share running with the glusterfs vfs module for file
serving to work properly.
</para>
2014-12-17 15:48:53 +03:00
</refsect1>
<refsect1 >
<title > OPTIONS</title>
<variablelist >
<varlistentry >
<term > glusterfs:logfile = path</term>
<listitem >
<para >
Defines whether and where to store a vfs_glusterfs specific
logfile. Client variable substitution is supported (i.e.
2015-02-13 03:03:21 +03:00
%M, %m, %I), hence per client log file can be specified.
2014-12-17 15:48:53 +03:00
</para>
<para >
Example: glusterfs:logfile =
2015-02-13 03:03:21 +03:00
/var/log/samba/glusterfs-vol2.%M.log
2014-12-17 15:48:53 +03:00
</para>
</listitem>
</varlistentry>
<varlistentry >
<term > glusterfs:loglevel = 0-9</term>
<listitem >
<para >
Defines the level of logging, with higher numbers corresponding to more verbosity.
0 - No logs; 9 - Trace log level; 7 being the info log level is preferred.
</para>
<para >
If this option is not defined with an explicit loglevel,
the glusterfs default is used (currently loglevel 7).
</para>
</listitem>
</varlistentry>
<varlistentry >
<term > glusterfs:volfile_server = servername</term>
<listitem >
<para >
Defines which volfile server to use, defaults to
2016-08-25 13:33:55 +03:00
localhost. It could be list of white space
2017-02-17 22:57:55 +03:00
separated elements where each element could be
2016-08-25 13:33:55 +03:00
</para>
<para >
1. unix+/path/to/socket/file
</para>
<para >
2. [tcp+]IP|hostname|\[IPv6\][:port]
</para>
<para >
Note the restriction on naming a IPv6 host, it follows
the same restriction that is based on IPv6 naming in
URL as per RFC 2732.
2014-12-17 15:48:53 +03:00
</para>
</listitem>
</varlistentry>
<varlistentry >
<term > glusterfs:volume = volumename</term>
<listitem >
<para >
Defines the glusterfs volumename to use for this share.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
2020-10-15 14:14:33 +03:00
<refsect1 >
<title > CAVEATS</title>
<para >
The GlusterFS write-behind performance translator, when used
with Samba, could be a source of data corruption. The
translator, while processing a write call, immediately returns
success but continues writing the data to the server in the
background. This can cause data corruption when two clients
relying on Samba to provide data consistency are operating on
the same file.
</para>
<para >
The write-behind translator is enabled by default on GlusterFS.
The vfs_glusterfs plugin will check for the presence of the
translator and refuse to connect if detected.
Please disable the write-behind translator for the GlusterFS
volume to allow the plugin to connect to the volume.
2020-11-24 17:38:41 +03:00
The write-behind translator can easily be disabled via calling
<programlisting >
gluster volume set < volumename> performance.write-behind off
</programlisting> on the commandline.
2020-10-15 14:14:33 +03:00
</para>
2020-11-05 13:42:09 +03:00
<para >
With GlusterFS versions >= 9, we silently bypass write-behind
2020-11-24 17:38:41 +03:00
translator during initial connect and failure is avoided.
2020-11-05 13:42:09 +03:00
</para>
2020-10-15 14:14:33 +03:00
</refsect1>
2014-12-17 15:48:53 +03:00
<refsect1 >
<title > VERSION</title>
<para >
2017-12-13 03:38:25 +03:00
This man page is part of version &doc.version; of the Samba suite.
2014-12-17 15:48:53 +03:00
</para>
</refsect1>
<refsect1 >
<title > AUTHOR</title>
<para > The original Samba software and related utilities
were created by Andrew Tridgell. Samba is now developed
by the Samba Team as an Open Source project similar
to the way the Linux kernel is developed.</para>
</refsect1>
</refentry>