HP Serviceguard Linux Contributed Toolkit Suite A.04.02.01 User Guide (696979-001, June 2012)

NOTE: If you plan only a single Samba instance running in a cluster, all default configuration
of the standard Samba installation will be fitted into this single instance. You can choose to
modify and use the default configuration file, /etc/samba/smb.conf. Alternatively, you
can generate a new Samba configuration file for the Samba server.
If you want to have multiple Samba instances available and distributed to cluster nodes, you
must create a base configuration file with similar contents as mentioned in the default Samba
configuration.
Additionally, you must create a sub-configuration file that contains Samba configuration for
a specific Samba logic instance. Each individual sub-configuration will be included by the
base configuration and, eventually, the base and sub-configurations becomes a single
configuration file for all Samba logic instances of a single cluster node.
Example of a multiple-instance configuration:
For a two-node cluster, you want to have two Samba instances to distribute to this two cluster
nodes. (Each node owns one Samba instance). Also, you want to share FS1 SMB/CIFS file
system for the first instance and FS2 SMB/CIFS file system for the second instance. You can
modify and use the default Samba configuration file /etc/samba/smb.conf to be a base
configuration file. After that, you must create two sub configuration files for each of the two
instances. The contents of these two sub configuration files are as follows:
For the first instance:
[FS1]
comment = File System 1
path = /shared/FS1
valid users = user1
public = yes
writable = yes
printable = no
create mask = 0765
For the second instance:
[FS2]
comment = File System 2
path = /shared/FS2
valid users = user2
public = yes
writable = yes
printable = no
create mask = 0765
2. Create a separate, distinct sub configuration file for each Samba SG/LX package. Each
package corresponds to a unique Samba logic instance with its associated sub configuration
file.
NOTE: The sub configuration file must be identical on all the cluster nodes that are configured
for a particular Samba toolkit package.
3. You must include all the Samba users and their passwords of all instances in all nodes. Each
node maintains the list of all users for all the instances in the /etc/samba/smbuser and
/etc/samba/smbpasswd files.
Setting up the Samba server in SG/LX environment 37