[Samba] Samba 4.1.7 clustering not using private dir

Jonn Taylor jonnt at taylortelephone.com
Fri Apr 25 13:16:06 MDT 2014


On 4/25/2014 11:56 AM, Rowland Penny wrote:
> On 25/04/14 16:46, Taylor, Jonn wrote:
>> I originally posted this on the dev list and opened a bug for this 
>> but was asked to post this to the users list.
>>
>> https://bugzilla.samba.org/show_bug.cgi?id=10565
>>
>> Using sernet 4.1 packages. I am unable to get smbd to use private dir.
>> Set option in smb.conf and on command line.
>>
>> sernet-samba-libsmbclient0-4.1.7-7.el6.x86_64
>> sernet-samba-libs-4.1.7-7.el6.x86_64
>> sernet-samba-client-4.1.7-7.el6.x86_64
>> sernet-samba-4.1.7-7.el6.x86_64
>> sernet-samba-common-4.1.7-7.el6.x86_64
>> sernet-samba-winbind-4.1.7-7.el6.x86_64
>>
>> [global]
>>         workgroup = TAYLORTELEPHONE
>>         realm = TAYLORTELEPHONE.COM
>>         netbios name = SHR01
>>         server string = Cluster Share
>>         interfaces = eth0, lo
>>         security = ADS
>>         private dir = /clusterdata/private
>>         log file = /var/log/samba/log.samba
>>         server min protocol = NT1
>>         client signing = if_required
>>         server signing = if_required
>>         clustering = Yes
>>         printcap name = /etc/printcap
>>         wins server = 192.168.173.13, 192.168.173.14
>>         template shell = /bin/bash
>>         winbind enum users = Yes
>>         winbind enum groups = Yes
>>         winbind use default domain = Yes
>>         winbind refresh tickets = Yes
>>         winbind offline logon = Yes
>>         idmap config * : schema_mode = rfc2307
>>         idmap config TAYLORTELEPHONE:backend = rid
>>         idmap config TAYLORTELEPHONE:range = 500-4000000
>>         idmap config * : range = 1000-4000000
>>         idmap config * : backend = tdb2
>>         admin users = "@TAYLORTELEPHONE\Domain Admins"
>>         inherit acls = Yes
>>         map acl inherit = Yes
>>
>> # SAMBA_START_MODE defines how Samba should be started. Valid options
>> are one of
>> #   "none"    to not enable it at all,
>> #   "classic" to use the classic smbd/nmbd/winbind daemons
>> #   "ad"      to use the Active Directory server (which starts the smbd
>> on its own)
>> # (Be aware that you also need to enable the services/init scripts that
>> # automatically start up the desired daemons.)
>> SAMBA_START_MODE="classic"
>>
>> # SAMBA_RESTART_ON_UPDATE defines if the the services should be
>> restarted when
>> # the RPMs are updated. Setting this to "yes" effectively enables the
>> # functionality of the try-restart parameter of the init scripts.
>> SAMBA_RESTART_ON_UPDATE="yes"
>>
>> # NMBD_EXTRA_OPTS may contain extra options that are passed as 
>> additional
>> # arguments to the nmbd daemon
>> NMBD_EXTRA_OPTS=""
>>
>> # WINBINDD_EXTRA_OPTS may contain extra options that are passed as
>> additional
>> # arguments to the winbindd daemon
>> WINBINDD_EXTRA_OPTS=""
>>
>> # SMBD_EXTRA_OPTS may contain extra options that are passed as 
>> additional
>> # arguments to the smbd daemon
>> SMBD_EXTRA_OPTS="private-dir=/clusterdata/private"
> Hi,
>
> I think that this should be:
> SMBD_EXTRA_OPTS="--private-dir=/clusterdata/private"
>
> Rowland
>
What I was told is that the private dir is disabled when clustering = 
yes is set in samba 4.1. I started all over and tried the setup from the 
samba wiki. I still had to do a net ads join on both servers but it is 
working. The only thing I need to check is if CTDB is really replicating 
the databases for samba and winbind.

Any know how to check this?
>>
>> # SAMBA_EXTRA_OPTS may contain extra options that are passed as 
>> additional
>> # arguments to the samba daemon
>> SAMBA_EXTRA_OPTS=""
>>
>> # SAMBA_IGNORE_NSUPDATE_G defines whether the samba daemon should be 
>> started
>> # when 'nsupdate -g' is not available. Setting this to "yes" would 
>> mean that
>> # samba will be started even without 'nsupdate -g'. This will lead to 
>> severe
>> # problems without a proper workaround!
>> SAMBA_IGNORE_NSUPDATE_G="no"
>>
>>
>>
>



More information about the samba mailing list