[Samba] Samba BDC in the same subnet not getting connection requests

Prakash Velayutham Prakash.Velayutham at cchmc.org
Tue May 10 14:07:52 GMT 2005


>>> Ian Clancy <clancyian at cel.ie> 05/10/05 9:33 AM >>>
Prakash Velayutham wrote:

>Hi,
>
>Sorry for posting again. I would really appreciate any help with this.
>
>I have a Samba 3 PDC running with around 20 Windows XP/2K clients. The
>PDC and clients are in different subnets. Rrecently I decided to add
>a Samba 3 BDC in the same subnet as the clients, to give some failover
>and also to reduce across-switch traffic.
>After creating the BDC, I restarted one of the clients but don't see it
>establishing connection with the BDC, instead it connects as before
with
>the PDC. How can I make a BDC effective in this case?
>
>Thanks,
>Prakash
>  
>

Hi Prakash,
Some questions before we can help.
When you start the BDC what kind of output do you get in
/var/log/messages ?
Is your BDC registering itself as a logon server ?.
In your smb.conf what is your log level setting ?.
Is your WINS Server configured correctly and are your clients configured
to use it ?.
What does 'nmblookup -S YOURBDC' return ?

Hi Ian,

What log level do you want me to set in smb.conf before getting the
output of /var/log/samba/* (I think you meant this when you said
/var/log/messages, as I do not get anything in /var/log/messages when I
restart smb and nmb daemons). With log level at 3, here is the output
*********************************************************
[2005/05/10 10:03:13, 3] smbd/server.c:exit_server(614)
  Server exit (Caught TERM signal)
[2005/05/10 10:03:16, 0] nmbd/nmbd.c:terminate(54)
  Got SIGTERM: going down...
[2005/05/10 10:03:16, 3]
nmbd/nmbd_sendannounce.c:send_local_master_announcement(166)
  send_local_master_announcement: type 0 for name FRONTIER on subnet
10.10.80.111 for workgroup CMC-NT
[2005/05/10 10:03:16, 3]
nmbd/nmbd_sendannounce.c:send_host_announcement(208)
  send_host_announcement: type 0 for host FRONTIER on subnet
10.10.80.111 for workgroup CMC-NT
  become_logon_server_success: Samba is now a logon server for workgroup
CMC-NT on subnet UNICAST_SUBNET
[2005/05/10 10:03:18, 2] lib/interface.c:add_interface(79)
  added interface ip=10.10.80.111 bcast=255.255.255.255 nmask=0.0.0.0
[2005/05/10 10:03:18, 3] smbd/server.c:main(790)
  loaded services
[2005/05/10 10:03:18, 3] smbd/server.c:main(805)
  Becoming a daemon.
[2005/05/10 10:03:18, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
  Registered MSG_REQ_POOL_USAGE
[2005/05/10 10:03:18, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2005/05/10 10:03:18, 3]
printing/printing.c:start_background_queue(1168)
  start_background_queue: Starting background LPQ thread
[2005/05/10 10:03:18, 2] smbd/server.c:open_sockets_smbd(324)
  waiting for a connection
[2005/05/10 10:03:20, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name FRONTIER<20> with first IP
10.10.80.111 ttl=0 nb_flags=60 to subnet 10.10.80.111
[2005/05/10 10:03:20, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name FRONTIER<03> with first IP
10.10.80.111 ttl=0 nb_flags=60 to subnet 10.10.80.111
[2005/05/10 10:03:20, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name FRONTIER<00> with first IP
10.10.80.111 ttl=0 nb_flags=60 to subnet 10.10.80.111
[2005/05/10 10:03:20, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name CMC-NT<00> with first IP
10.10.80.111 ttl=0 nb_flags=e0 to subnet 10.10.80.111
[2005/05/10 10:03:20, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name CMC-NT<1e> with first IP
10.10.80.111 ttl=0 nb_flags=e0 to subnet 10.10.80.111
[2005/05/10 10:03:20, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name CMC-NT<1c> with first IP
10.10.80.111 ttl=0 nb_flags=e0 to subnet 10.10.80.111
[2005/05/10 10:03:20, 0]
nmbd/nmbd_logonnames.c:become_logon_server_success(124)
  become_logon_server_success: Samba is now a logon server for workgroup
CMC-NT on subnet 10.10.80.111
[2005/05/10 10:03:20, 3] nmbd/nmbd_elections.c:check_elections(362)
  check_elections: >>> Starting election for workgroup CMC-NT on subnet
10.10.80.111 <<<
[2005/05/10 10:03:22, 3] nmbd/nmbd_serverlistdb.c:write_browse_list(421)
  write_browse_list: Wrote browse list into file
/var/lib/samba/browse.dat
[2005/05/10 10:03:23, 2] nmbd/nmbd_elections.c:send_election_dgram(41)
  send_election_dgram: Sending election packet for workgroup CMC-NT on
subnet 10.10.80.111
[2005/05/10 10:03:25, 2] nmbd/nmbd_elections.c:send_election_dgram(41)
  send_election_dgram: Sending election packet for workgroup CMC-NT on
subnet 10.10.80.111
[2005/05/10 10:03:27, 2] nmbd/nmbd_elections.c:send_election_dgram(41)
  send_election_dgram: Sending election packet for workgroup CMC-NT on
subnet 10.10.80.111
[2005/05/10 10:03:28, 2] nmbd/nmbd_elections.c:send_election_dgram(41)
  send_election_dgram: Sending election packet for workgroup CMC-NT on
subnet 10.10.80.111
[2005/05/10 10:03:31, 2] nmbd/nmbd_elections.c:send_election_dgram(41)
  send_election_dgram: Sending election packet for workgroup CMC-NT on
subnet 10.10.80.111
[2005/05/10 10:03:31, 2] nmbd/nmbd_elections.c:run_elections(201)
  run_elections: >>> Won election for workgroup CMC-NT on subnet
10.10.80.111 <<<
[2005/05/10 10:03:31, 2]
nmbd/nmbd_become_lmb.c:become_local_master_browser(537)
  become_local_master_browser: Starting to become a master browser for
workgroup CMC-NT on subnet 10.10.80.111
[2005/05/10 10:03:31, 3]
nmbd/nmbd_become_lmb.c:become_local_master_browser(539)
  become_local_master_browser: first stage - attempt to register
^1^2__MSBROWSE__^2^1
[2005/05/10 10:03:31, 3] nmbd/nmbd_serverlistdb.c:write_browse_list(421)
  write_browse_list: Wrote browse list into file
/var/lib/samba/browse.dat
[2005/05/10 10:03:35, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name __MSBROWSE__<01> with first IP
10.10.80.111 ttl=0 nb_flags=e0 to subnet 10.10.80.111
[2005/05/10 10:03:35, 3]
nmbd/nmbd_become_lmb.c:become_local_master_stage1(452)
  become_local_master_stage1: go to stage 2: register the CMC-NT<1d>
name.
[2005/05/10 10:03:35, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name __MSBROWSE__<01> with first IP
10.10.80.111 ttl=0 nb_flags=e0 to subnet UNICAST_SUBNET
[2005/05/10 10:03:39, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name CMC-NT<1d> with first IP
10.10.80.111 ttl=0 nb_flags=60 to subnet 10.10.80.111
[2005/05/10 10:03:39, 3]
nmbd/nmbd_become_lmb.c:become_local_master_stage2(353)
  become_local_master_stage2: registered as master browser for workgroup
CMC-NT on subnet 10.10.80.111
[2005/05/10 10:03:39, 3]
nmbd/nmbd_sendannounce.c:broadcast_announce_request(69)
  broadcast_announce_request: sending announce request for workgroup
CMC-NT to subnet 10.10.80.111
[2005/05/10 10:03:39, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name CMC-NT<1d> with first IP
10.10.80.111 ttl=0 nb_flags=60 to subnet UNICAST_SUBNET
[2005/05/10 10:03:39, 0]
nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****

  Samba name server FRONTIER is now a local master browser for workgroup
CMC-NT on subnet 10.10.80.111

  *****
[2005/05/10 10:03:39, 3]
nmbd/nmbd_sendannounce.c:send_local_master_announcement(166)
  send_local_master_announcement: type 49b3b for name FRONTIER on subnet
10.10.80.111 for workgroup CMC-NT
[2005/05/10 10:03:39, 3]
nmbd/nmbd_sendannounce.c:send_workgroup_announcement(185)
  send_workgroup_announcement: on subnet 10.10.80.111 for workgroup
CMC-NT
[2005/05/10 10:03:39, 3]
nmbd/nmbd_incomingdgrams.c:process_host_announce(118)
  process_host_announce: from CMCCLIENT7<08> IP 10.10.80.99 to
CMC-NT<1d> for server CMCCLIENT7.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry CMCCLIENT7 of type
40011003 () on workgroup CMC-NT.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_browsesync.c:domain_master_node_status_success(187)
  domain_master_node_status_success:
  Success in node status for workgroup CMC-NT from ip 10.1.3.166
[2005/05/10 10:03:39, 2] nmbd/nmbd_browsesync.c:sync_with_dmb(154)
  sync_with_dmb:
  Initiating sync with domain master browser MCPILDAP1<20> at IP
10.1.3.166 for workgroup CMC-NT
[2005/05/10 10:03:39, 2] nmbd/nmbd_synclists.c:sync_browse_lists(169)
  Initiating browse sync for CMC-NT to MCPILDAP1(10.1.3.166)
[2005/05/10 10:03:39, 3] lib/util_sock.c:open_socket_out(752)
  Connecting to 10.1.3.166 at port 139
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry CMCCLIENT1 of type
31003 () on workgroup CMC-NT.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry CMCCLIENT2 of type
11003 (cmcclient2) on workgroup CMC-NT.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry CMCCLIENT3 of type
2031003 (cmcclient3) on workgroup CMC-NT.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry CMCCLIENT4 of type
11007 () on workgroup CMC-NT.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry CMCCLIENT5 of type
1003 () on workgroup CMC-NT.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry CMCCLIENT6 of type
11003 (cmcclient6) on workgroup CMC-NT.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry CMCCLIENT7 of type
11003 () on workgroup CMC-NT.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry CMCCLIENT8 of type
11003 (cmcclient8) on workgroup CMC-NT.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry MCPILDAP1 of type
d9b2b (SAMBA-LDAP PDC) on workgroup CMC-NT.
[2005/05/10 10:03:39, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry RIBOSOME of type
59b3b (SAMBA-LDAP BDC) on workgroup CMC-NT.
[2005/05/10 10:03:39, 2] nmbd/nmbd_synclists.c:complete_sync(283)
  sync with MCPILDAP1(10.1.3.166) for workgroup CMC-NT completed (70
records)
[2005/05/10 10:03:42, 3] nmbd/nmbd_serverlistdb.c:write_browse_list(421)
  write_browse_list: Wrote browse list into file
/var/lib/samba/browse.dat
[2005/05/10 10:03:42, 3]
nmbd/nmbd_incomingdgrams.c:process_host_announce(118)
  process_host_announce: from CMCCLIENT1<08> IP 10.10.80.123 to
CMC-NT<1d> for server CMCCLIENT1.
[2005/05/10 10:03:42, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry CMCCLIENT1 of type
40011003 () on workgroup CMC-NT.
[2005/05/10 10:03:52, 3]
nmbd/nmbd_incomingrequests.c:process_name_query_request(454)
***********************************************************************************************

Yes, my BDC has "domain logons = yes" and "domain master = no" set.

Currently I have set the log level to 10.

I have no control over the WINS server, but my clients are looking at
the WINS server correctly. What exactly do I need to look at in the WINS
server configuration?

nmblookup -S frontier from a different Linux box in the same subnet as
the BDC returns (frontier is the BDC)
(I temporarily set log level to 3 here)
querying frontier on 10.10.80.255
10.10.80.111 frontier<00>
Looking up status of 10.10.80.111
        FRONTIER        <00> -         H <ACTIVE>
        FRONTIER        <03> -         H <ACTIVE>
        FRONTIER        <20> -         H <ACTIVE>
        ..__MSBROWSE__. <01> - <GROUP> H <ACTIVE>
        CMC-NT          <00> - <GROUP> H <ACTIVE>
        CMC-NT          <1c> - <GROUP> H <ACTIVE>
        CMC-NT          <1d> -         H <ACTIVE>
        CMC-NT          <1e> - <GROUP> H <ACTIVE>

        MAC Address = 00-00-00-00-00-00

Thanks for the help,
Prakash


More information about the samba mailing list