Installation guide
120 Chapter 6:Network File Sharing Services
workgroup = RHCLUSTER
lock directory = /var/cache/samba/acct
log file = /var/log/samba/%m.log
encrypt passwords = yes
bind interfaces only = yes
interfaces = 10.0.0.10
[acct]
comment = High Availability Samba Service
browsable = yes
writable = no
public = yes
path = /mnt/service12
The following are descriptions of the most relevant fields, from a clustering perspective,
in the /etc/samba/smb.conf.
sharename
file. In this example, the file is named
/etc/samba/smb.conf.
acct
in accordance with the share name being specified as acct while
running cluadmin. Only the cluster specific fields are described below. The remaining fields
follow standard Samba convention and should be tailored accordingly.
Global Parameters
These parameters pertain to all shares which are specified in the smb.conf.
sharename
file. Note that it is possible to designate more than one share within this file, provided that the
directories described within it are within the service’s filesystem mounts.
lock directory
Dictates the name of the directory in which the Samba daemons smbd/nmbd will place
their locking files. This must be set to /var/cache/samba/
sharename
, where
sharename varies based on the parameter specified in cluadmin. Specification of a lock
directory is required in order to allow a separate per-service instance of smbd/nmbd.
bind interfaces only
This parameter must be set to
yes in order to allow each smbd/nmbd pair to bind to the
floating IP address associated with this clustered Samba service.
interfaces
Specifies the IP address associated with the Samba service. If a netmask is specified
within the service, this field would appear like the following example: interfaces =
10.0.0.10/255.255.254.0
Share specific parameters
These parameters pertain to a specific Samba share.