Oracle® Solaris Cluster Data Service for Samba Guide

Exit Print View

Updated: July 2014, E40565-01
 
 

Requirements and Restrictions for Samba smb.conf File

The Samba smb.conf file is a configuration file that is used by the Samba and winbind instances.

The HA for Samba data service requires that such files be located at configuration-directory/lib/smb.conf. The following guidelines apply:

  • Each Samba instance requires a unique configuration-directory that reflects the NetBIOS name of the Samba instance.

  • A winbind instance can 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 both deployed in the same failover resource group.

  • If a winbind instance is configured in 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 HA for Samba fault monitor uses smbclient to access the directory specified within [scmondir] to verify that smnd is operating correctly. The following is an example of the [scmondir] share in an smb.conf file.

    [scmondir]
    comment = Monitor directory for Oracle Solaris Cluster
    path = /tmp
    browseable = No

    The Samba instances run as failover services within separate failover resource groups on highly available local file systems with their own unique configuration-directories. The winbind runs as a scalable service on a cluster file system with its own unique configuration-directory.

      The following example uses the following component names:

    • 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.

    phys-schost# ls -l /global/samba/config
    total 2
    drwxrwx---   2 root     root     512 Jul 13 11:20 winbind
    
    phys-schost# 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