The Samba files are located where the Samba shares and smb.conf files are stored. The HA for Samba data service requires that these files be stored within a configuration directory that reflects the NetBIOS name, which in this example is samba-lh for the Samba or winbind instance.
zc-node-1# mkdir /failover/samba/samba-lh zc-node-1# cd /failover/samba/samba-lh zc-node-1# mkdir -p lib logs private shares/data var/locks zc-node-1# chmod 1777 /failover/samba/samba-lh/shares/data
For more information about possible configuration options, see the example configuration file /etc/samba/smb.conf-example, the smb.conf(5) man page, and the online documentation available at https://www.samba.org.
zc-node-1# vi /failover/samba/samba-lh/lib/smb.conf [global] workgroup = OSC server string = Samba (%v) Server (%h) security = ADS log file = /failover/samba/samba-lh/logs/log.%m max log size = 50 realm = OSC.EXAMPLE.COM passdb backend = smbpasswd interfaces = 192.168.0.10/24 wins support = yes dns proxy = no netbios name = samba-lh bind interfaces only = yes pid directory = /failover/samba/samba-lh/var/locks private dir = /failover/samba/samba-lh/private smb passwd file = /failover/samba/samba-lh/private/smbpasswd lock dir = /failover/samba/samba-lh/var/locks winbind cache time = 30 allow trusted domains = no idmap config * : backend = tdb idmap config * : range = 10001-20000 idmap config DOMAIN : backend = rid idmap config DOMAIN : range = 10000-20000 idmap config DOMAIN : base_rid = 0 winbind enum groups = yes winbind enum users = yes winbind use default domain = yes [homes] comment = Home Directories browseable = no writable = yes [scmondir] comment = Monitor directory for Oracle Solaris Cluster path = /tmp browsable = no [data] path = /failover/samba/samba-lh/shares/data comment = Data Share read only = no writable = yes
zc-node-1# testparm -s /failover/samba/samba-lh/lib/smb.conf