The Samba smb.conf file is a configuration file that is used by the Samba and winbind instances.
The Sun Cluster HA for Samba data service requires that these files are located at configuration-directory/lib/smb.conf. Depending on how Samba is deployed the following restrictions apply.
Each Samba instance requires a unique configuration directory that reflects the NetBIOS name of the Samba instance.
A winbind instance may share a Samba instance configuration directory and subsequent smb.conf file, together with the NetBIOS name of the Samba instance, if the Samba and winbind instances are deployed within the same failover resource group.
If a winbind instance is configured within a scalable resource group, a unique configuration directory that reflects the NetBIOS name for the winbind instance is required.
Each Samba instance smb.conf file must have a [scmondir] share. The Sun Cluster HA for Samba fault monitor uses smbclient to access the directory specified within [scmondir] to verify that smnd is operating correctly.
[scmondir] comment = Monitor directory for Sun Cluster path = /tmp browseable = No |
For illustration purposes the following example shows Samba installed from http://www.samba.org onto a cluster file system with two Samba instances (smb1 and smb2) and a winbind instance (winbind).
The Samba instances will run as failover services within separate failover resource groups on highly available local file systems with their own unique configuration directories. winbind will run as a scalable service on a cluster file system with it's own unique configuration directory.
Within this example:
Samba has been downloaded into /global/samba/software.
Samba has been compiled into /global/samba/3.0.22.
The NetBIOS name for the Samba instances are smb1 and smb2.
The NetBIOS name for the winbind instance is winbind.
The Samba instance smb1 has its configuration directory as /local/samba/config/smb1.
The Samba instance smb2 has its configuration directory as /local/samba/config/smb2.
The winbind instance winbind has its configuration directory as /global/samba/config/winbind.
The Samba instance smb1 has its smb.conf file located at /local/samba/config/smb1/lib/smb.conf.
The Samba instance smb2 has its smb.conf file located at /local/samba/config/smb2/lib/smb.conf.
The winbind instance winbind has its smb.conf file located at /global/samba/config/winbind/lib/smb.conf.
bash-3.00# ls -l /opt/samba lrwxrwxrwx 1 root root 20 Jul 13 11:24 /opt/samba -> /global/samba/latest bash-3.00# bash-3.00# ls -l /global/samba total 8 drwxrwx--- 2 root root 512 Jul 13 11:20 3.0.22 drwxrwx--- 3 root root 512 Jul 13 11:20 config lrwxrwxrwx 1 root root 20 Jul 13 11:20 latest -> /global/samba/3.0.22 drwxrwx--- 2 root root 512 Jul 13 11:20 software bash-3.00# bash-3.00# ls -l /global/samba/config total 2 drwxrwx--- 2 root root 512 Jul 13 11:20 winbind bash-3.00# bash-3.00# ls -l /local/samba/config total 4 drwxrwx--- 2 root root 512 Jul 13 11:25 smb1 drwxrwx--- 2 root root 512 Jul 13 11:25 smb2 bash-3.00# |