Language and Page Formatting Options
12.5. Samba Configuration
The Samba configuration file
smb.confis located at
/etc/samba/smb.confin this example. It contains the following parameters:
[global] guest ok = yes clustering = yes netbios name = csmb-server [csmb] comment = Clustered Samba public = yes path = /mnt/gfs2/share writeable = yes ea support = yes
This example exports a share with name
/mnt/gfs2/share. This is different from the GFS2 shared filesystem at
/mnt/ctdb/.ctdb.lockthat we specified as the
CTDB_RECOVERY_LOCKparameter in the CTDB configuration file at
In this example, we will create the
/mnt/gfs2when we mount it for the first time. The
clustering = yesentry instructs Samba to use CTDB. The
netbios name = csmb-serverentry explicitly sets all the nodes to have a common NetBIOS name. The
ea supportparameter is required if you plan to use extended attributes.
smb.confconfiguration file must be identical on all of the cluster nodes.
Samba also offers registry-based configuration using the
net confcommand to automatically keep configuration in sync between cluster members without having to manually copy configuration files among the cluster nodes. For information on the
net confcommand, see the
net(8) man page.