[Samba] Samba 3.5 loses local master browser election to Win7 32bits

Lucas Brasilino lucas.brasilino at gmail.com
Tue Apr 29 16:38:48 MDT 2014


Hi!

It just stopped to be master browser :(

[2014/04/29 18:04:58.034094,  2] nmbd/nmbd_elections.c:200(run_elections)
  run_elections: >>> Won election for workgroup XXXX on subnet 10.6.0.12 <<<
[2014/04/29 18:04:58.034128,  2]
nmbd/nmbd_become_lmb.c:536(become_local_master_browser)
  become_local_master_browser: Starting to become a master browser for
workgroup XXXX on subnet 10.6.0.12
[2014/04/29 18:05:07.946197,  0]
nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
  *****

  Samba name server PDC01 is now a local master browser for workgroup
XXXX on subnet 10.6.0.12

  *****
[2014/04/29 18:05:16.714767,  2]
nmbd/nmbd_browsesync.c:107(announce_local_master_browser_to_domain_master_browser)
  announce_local_master_browser_to_domain_master_browser:
  We are both a domain and a local master browser for workgroup XXXX.
Do not announce to ourselves.
[2014/04/29 18:05:16.714892,  2] nmbd/nmbd_browsesync.c:151(sync_with_dmb)
  sync_with_dmb:
  Initiating sync with domain master browser PDC01<20> at IP 10.6.0.12
for workgroup XXXX
[2014/04/29 18:11:42.197398,  2] nmbd/nmbd_browsesync.c:60(sync_with_lmb)
  sync_with_lmb:
  Initiating sync with local master browser P5785<0x20> at IP
10.6.5.204 for workgroup XXXX
[2014/04/29 18:11:42.198430,  2] nmbd/nmbd_synclists.c:184(sync_browse_lists)
  Initiating browse sync for XXXX to P5785(10.6.5.204)
[2014/04/29 18:11:42.210011,  2] nmbd/nmbd_synclists.c:302(complete_sync)
  sync with P5785(10.6.5.204) for workgroup XXXX completed (2 records)
[2014/04/29 18:12:58.343799,  0]
nmbd/nmbd_incomingdgrams.c:308(process_local_master_announce)
  process_local_master_announce: Server P5785 at IP 10.6.5.204 is
announcing itself as a local master browser for workgroup XXXX and we
think we are master. Forcing election.
[2014/04/29 18:12:58.344015,  2]
nmbd/nmbd_become_lmb.c:279(unbecome_local_master_browser)
  unbecome_local_master_browser: unbecoming local master for workgroup
XXXX on subnet 10.6.0.12
[2014/04/29 18:12:58.344126,  0]
nmbd/nmbd_become_lmb.c:148(unbecome_local_master_success)
  *****

  Samba name server PDC01 has stopped being a local master browser for
workgroup XXXX on subnet 10.6.0.12

  *****
[2014/04/29 18:12:58.344323,  2] nmbd/nmbd_elections.c:40(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup XXXX on
subnet 10.6.0.12
[2014/04/29 18:13:01.140597,  2] nmbd/nmbd_elections.c:40(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup XXXX on
subnet 10.6.0.12
[2014/04/29 18:13:03.071973,  2] nmbd/nmbd_elections.c:40(send_election_dgram)
  send_election_dgram: Sending election packet for workgroup XXXX on
subnet 10.6.0.12


Where P5785 is a netbios name of a Win7 32bits machine.

regards
Lucas Brasilino

2014-04-29 17:08 GMT-03:00 Lucas Brasilino <lucas.brasilino at gmail.com>:
> Hi!
>
>> The Win 7 x32 clients are configured to use a Wins server?  I am assuming
>> you have this pushed out via DHCP?
>
> I did forget to mention that information. Yes, x32 and x64 are using
> the Samba server
> as WINS server, both configured by DHCP. To be more verbose, I have just one
> DHCP server, with one IP range and configurations (including
> 'netbios-name-servers') which
> configures both Win7 x32 and x64 the same way.
>
>>  Maybe it is something unique to a
>> batch of computers that just happen to be running x32 vs x64?
>
> Sorry, but... What do you mean ? :)
>
>> Apart from x32 vs x64 OS versions, is there any difference between the x32 and x64
>> machines?    Windows firewall settings?
>
> Well, probably not. I'll investigate. On the first x32 machine that
> becomes master browser, I did
> configured some registry keys like:
>
> HKLM\SYSTEM\CurrentControlSet\Services\Browser\Parameters\IsDomainMaster
> -> False
> HKLM\SYSTEM\CurrentControlSet\Services\Browser\Parameters\MaintainServerList
> -> False
>
> So this machine stops forcing election. But others starts to do.....
> so I realised I need some
> help :) It's weird since os level is set to its top value.
>
>> Do things like ipconfig and nbtstat show different results on the x32 vs x64
>> machines?
>
> I'll also investigate this and will post here.
>
> Thanks for you reply.
>
> Lucas
>>
>> On 04/29/14 13:44, Lucas Brasilino wrote:
>>>
>>> Hi All:
>>>
>>> I'm facing a weird behavior with Samba 3.5.10. It's a CentOS 6.3
>>> repository RPM. Samba is acting as a PDC and integrated with OpenLDAP
>>> 2.4.23, also a CentOS RPM, through smbldap-tools 0.9.3 (from EPEL).
>>>
>>> In my network I have Windows 7 64 bits and Windows 7 32 bits. The
>>> problem is that Samba is losing local master browser 'status' to Win7
>>> 32 bits machines. From time to time, some Win7 32bit forces an
>>> election and *wins* ! :( But I'm using os level 255!!!!
>>>
>>> At startup, nmbd forces an election and wins. Then some machines tries
>>> forces an election.. they looses for a while then after some time
>>> (say, one day to other), nmbd seems to give up and loses master
>>> browser 'status' :(
>>>
>>> The interesting fact is that Win7 64 bits seems not forcing/winning
>>> elections.
>>>
>>> my config (relevant part):
>>>
>>>          workgroup = XXXX
>>>          netbios name = PDC01
>>>          interfaces = eth0 10.6.
>>>          bind interfaces only = yes
>>>          hosts allow = 127. 10.6.
>>> [...]
>>>          security = user
>>>          passdb backend = ldapsam:ldap://ldapsrv.xxxx.com/
>>>          ldap suffix = ou=rec,o=xxx
>>>          ldap ssl = start_tls
>>>          ldap admin dn = cn=admin,ou=rec,o=xxx
>>>          ldap passwd sync = yes
>>>          ldap delete dn = yes
>>>          ldap user suffix = ou=users
>>>          ldap group suffix = ou=groups
>>>          ldap machine suffix = ou=computers
>>>
>>>          domain master = yes
>>>          domain logons = yes
>>>
>>> [... smbldaptools scripts ...]
>>>
>>>          os level = 255
>>>          preferred master = yes
>>>          local master = yes
>>>          wins support = yes
>>>          time server = yes
>>>
>>>
>>> Now I've increased nmbd's debug level to 2 to see if I get some clue.
>>>
>>> Any help ??
>>>
>>> thanks a lot in advance
>>> Lucas Brasilino
>>
>>
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba


More information about the samba mailing list