Hello!

I have small network in my work. Workstations that connects to it runs various kind of OS. This includes:

1x Windows 95 (Brother Printer)
8x Windows XP <=problematic!
2x Windows Visa
2x Windows 7
1x Samba 3.5.8 (WINS,DNS, supose to be LMB)

There is a serious problem with a browselist. Ever single windows XP workstations disapear from browselist after an about 24 - 28 minutes after workstation powerup or smbd restart. After this they are still accesable by hostname, netbiosname, and ip. Other workstations are visible as they should be and don't disapear.

First i thought it is an name resolution problem but i run correctly configured dns server. This server answers for both types of querry: straight (domain->ip) and reverse (address->ip).It is well tested. Also i've made /etc/hosts and /etc/samba/lmhosts files. They contains same ip=domain setup as named.

Next thing was an firewall on my server (smbd and nmbd runs on it) but i found that it does not matter. Even turning off tcp_syncookies and rp_filter. Without success.

I have found an article suggesting that windows xp firewall is to blame. I dont think it is a true, because workstations runs diffrent types of firewall. One of them use windows firewall but others use another firewalling sollution. Both of theese disapear from browselist in the same way. Complete disabling of XP workstation firewall does not solve problem.

Every switch in my network was tested. I have excluded damaged one from topology. It was an device connecting 2 XP workstations (+uplink) on a edge of network. Still, no success with improving browselist stability.

Also i have tried diffrent configurations of samba. No succes. Now i run following configuration:


#=================================================
[global]

#tested
max protocol = NT1
syslog = 0
unix charset = UTF-8
dos charset = CP852
time server = yes
#tested
#smb ports = 139
name resolve order = wins bcast hosts lmhosts
#tested
#interfaces = eth0 192.168.7.1 lo 127.0.0.1
#tested
#bind interfaces only = Yes
#tested
hosts allow = 192.168.7.0/24 127.0.0.1
#tested
enhanced browsing = no
keepalive = 30
loglevel = all:10
show add printer wizard = no
socket options = TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384

workgroup = ENELPC
server string = Serwer
netbios name = belphegor
security = share
load printers = no
printcap name = /etc/printcap
printing = cups
guest account = nobody
log file = /var/log/samba/samba.%m
max log size = 10000
#tested
local master = yes
#tested
os level = 255
#tested
domain master = no
#tested
preferred master = yes
domain logons = no
#tested
wins support = yes
wins proxy = no
#tested
dns proxy = no
passdb backend = tdbsam

#shares below
#[...]

#=================================================

Lines followed by "#tested" were changed to find sollution but with no success.




There is log piece covering period of time while BARTEKR disappears:

#=================================================

[2011/05/06 20:04:03.848346, 4] nmbd/nmbd_workgroupdb.c:170(find_workgroup_on_subnet) find_workgroup_on_subnet: workgroup search for ENELPC on subnet 192.168.7.1: found. [2011/05/06 20:04:03.848486, 10] nmbd/nmbd_sendannounce.c:381(announce_myself_to_domain_master_browser) announce_myself_to_domain_master_browser: t (1304705033) - last(1304704509) < 900 [2011/05/06 20:04:13.851328, 4] nmbd/nmbd_workgroupdb.c:170(find_workgroup_on_subnet) find_workgroup_on_subnet: workgroup search for ENELPC on subnet 192.168.7.1: found. [2011/05/06 20:04:13.851467, 10] nmbd/nmbd_sendannounce.c:381(announce_myself_to_domain_master_browser) announce_myself_to_domain_master_browser: t (1304705043) - last(1304704509) < 900 [2011/05/06 20:04:13.851514, 4] nmbd/nmbd_workgroupdb.c:281(dump_workgroups)
  dump_workgroups()
   dump workgroup on subnet     192.168.7.1: netmask=  255.255.255.0:
  <---->ENELPC(1) current master browser = ENELPC
  <----><------>ENELPC 408c9a23 (Serwer)
  <----><------>BARTEKR 40011003 (Laptop)
  <----><------>DRUK-KOLOR 40002003 ()
[2011/05/06 20:04:13.851589, 4] nmbd/nmbd_workgroupdb.c:281(dump_workgroups)
  dump_workgroups()
   dump workgroup on subnet  UNICAST_SUBNET: netmask=      127.0.0.1:
  <---->ENELPC(1) current master browser = UNKNOWN
  <----><------>ENELPC 40899a23 (Serwer)
[2011/05/06 20:04:13.851669, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.851706, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.851740, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.851774, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.851807, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.851841, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.851874, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.851907, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.851941, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.852024, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.852065, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
[2011/05/06 20:04:13.852583, 4] nmbd/nmbd_winsserver.c:2384(wins_write_database)
  wins_write_database: Dump of WINS name list.
[2011/05/06 20:04:13.852742, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  *<20>               TTL = PERMANENT                     192.168.7.1 64
[2011/05/06 20:04:13.852840, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  ENELPC<20>          TTL = Mon May  9 19:59:50 2011      192.168.7.1 66
[2011/05/06 20:04:13.852961, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  __SAMBA__<20>       TTL = PERMANENT                     192.168.7.1 64
[2011/05/06 20:04:13.853013, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  ENELPC<1b>          TTL = Mon May  9 19:59:50 2011      192.168.7.1 66
[2011/05/06 20:04:13.853081, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  BARTEKR<20>         TTL = Tue May 10 07:22:53 2011    192.168.7.121 44
[2011/05/06 20:04:13.853139, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  ENELPC<00>          TTL = Mon May  9 19:59:50 2011      192.168.7.1 66
[2011/05/06 20:04:13.853204, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  *<00>               TTL = PERMANENT                     192.168.7.1 64
[2011/05/06 20:04:13.853260, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  __SAMBA__<00>       TTL = PERMANENT                     192.168.7.1 64
[2011/05/06 20:04:13.853309, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  ENELPC<1e>          TTL = Tue May 10 07:22:53 2011          0.0.0.0 e6
[2011/05/06 20:04:13.853367, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  BARTEKR<00>         TTL = Tue May 10 07:22:53 2011    192.168.7.121 44
[2011/05/06 20:04:13.853424, 18] lib/util_tdb.c:358(tdb_unpack)
  tdb_unpack(wbddddddd, 35) -> 31
  ENELPC<03>          TTL = Mon May  9 19:59:50 2011      192.168.7.1 66
[2011/05/06 20:04:13.853923, 4] nmbd/nmbd_workgroupdb.c:170(find_workgroup_on_subnet) find_workgroup_on_subnet: workgroup search for ENELPC on subnet 192.168.7.1: found. [2011/05/06 20:04:13.853985, 10] nmbd/nmbd_sendannounce.c:381(announce_myself_to_domain_master_browser) announce_myself_to_domain_master_browser: t (1304705053) - last(1304704509) < 900 [2011/05/06 20:04:13.854018, 3] nmbd/nmbd_serverlistdb.c:195(expire_servers)
  expire_old_servers: Removing timed out server BARTEKR
[2011/05/06 20:04:13.854045, 4] nmbd/nmbd_workgroupdb.c:281(dump_workgroups)
  dump_workgroups()
   dump workgroup on subnet     192.168.7.1: netmask=  255.255.255.0:
  <---->ENELPC(1) current master browser = ENELPC
  <----><------>ENELPC 408c9a23 (Serwer)
  <----><------>DRUK-KOLOR 40002003 ()
[2011/05/06 20:04:13.854109, 4] nmbd/nmbd_workgroupdb.c:281(dump_workgroups)
  dump_workgroups()
   dump workgroup on subnet  UNICAST_SUBNET: netmask=      127.0.0.1:
  <---->ENELPC(1) current master browser = UNKNOWN
  <----><------>ENELPC 40899a23 (Serwer)
[2011/05/06 20:04:13.854212, 4] nmbd/nmbd_workgroupdb.c:170(find_workgroup_on_subnet) find_workgroup_on_subnet: workgroup search for ENELPC on subnet 192.168.7.1: found. [2011/05/06 20:04:13.854253, 4] nmbd/nmbd_workgroupdb.c:170(find_workgroup_on_subnet) find_workgroup_on_subnet: workgroup search for ENELPC on subnet 192.168.7.1: found. [2011/05/06 20:04:13.854283, 4] nmbd/nmbd_workgroupdb.c:170(find_workgroup_on_subnet) find_workgroup_on_subnet: workgroup search for ENELPC on subnet UNICAST_SUBNET: found.
[2011/05/06 20:04:13.854318,  8] lib/util.c:1869(is_myname)
  is_myname("ENELPC") returns 1
[2011/05/06 20:04:13.854343,  8] lib/util.c:1869(is_myname)
  is_myname("DRUK-KOLOR") returns 0
[2011/05/06 20:04:13.854371,  8] lib/util.c:1869(is_myname)
  is_myname("ENELPC") returns 1
[2011/05/06 20:04:13.854550, 3] nmbd/nmbd_serverlistdb.c:423(write_browse_list)
  write_browse_list: Wrote browse list into file /var/lib/samba/browse.dat
[2011/05/06 20:04:23.864807, 4] nmbd/nmbd_workgroupdb.c:170(find_workgroup_on_subnet) find_workgroup_on_subnet: workgroup search for ENELPC on subnet 192.168.7.1: found. [2011/05/06 20:04:23.864932, 10] nmbd/nmbd_sendannounce.c:381(announce_myself_to_domain_master_browser) announce_myself_to_domain_master_browser: t (1304705053) - last(1304704509) < 900 [2011/05/06 20:04:33.875148, 4] nmbd/nmbd_workgroupdb.c:170(find_workgroup_on_subnet) find_workgroup_on_subnet: workgroup search for ENELPC on subnet 192.168.7.1: found. [2011/05/06 20:04:33.875243, 10] nmbd/nmbd_sendannounce.c:381(announce_myself_to_domain_master_browser) announce_myself_to_domain_master_browser: t (1304705063) - last(1304704509) < 900 [2011/05/06 20:04:33.875274, 4] nmbd/nmbd_workgroupdb.c:281(dump_workgroups)
  dump_workgroups()
   dump workgroup on subnet     192.168.7.1: netmask=  255.255.255.0:
  <---->ENELPC(1) current master browser = ENELPC
  <----><------>ENELPC 408c9a23 (Serwer)
  <----><------>DRUK-KOLOR 40002003 ()
[2011/05/06 20:04:33.875332, 4] nmbd/nmbd_workgroupdb.c:281(dump_workgroups)
  dump_workgroups()
   dump workgroup on subnet  UNICAST_SUBNET: netmask=      127.0.0.1:
  <---->ENELPC(1) current master browser = UNKNOWN
  <----><------>ENELPC 40899a23 (Serwer)

#=================================================


There is an interesting communicate:


#=================================================
[2011/05/06 20:04:13.854018, 3] nmbd/nmbd_serverlistdb.c:195(expire_servers)
  expire_old_servers: Removing timed out server BARTEKR
#=================================================

I can't get rid of it no matter of configuration.

Other interesting thing:

#=================================================
[2011/05/06 20:04:13.854109, 4] nmbd/nmbd_workgroupdb.c:281(dump_workgroups)
  dump_workgroups()
   dump workgroup on subnet  UNICAST_SUBNET: netmask=      127.0.0.1:
  <---->ENELPC(1) current master browser = UNKNOWN
  <----><------>ENELPC 40899a23 (Serwer)
#=================================================

Current master browser unknown ? Why ? Always when i use smbclient -L belphegor i get MASTER = BELPHEGOR. Whenever i issue smbclient -L dissappeared-machine i get something like this:

#=================================================
[root@belphegor zanik2]# smbclient -L 192.168.7.121
Enter root's password:
Domain=[BARTEKR] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       Zdalne wywołanie IPC
        ETYKIETY        Disk
        ADMIN$          Disk      Administracja zdalna
        C$              Disk      Domyślny udział
Domain=[BARTEKR] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
#=================================================


By using hostname i get this:

#=================================================
[root@belphegor zanik2]# smbclient -L bartekr
Enter root's password:
Domain=[BARTEKR] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       Zdalne wywołanie IPC
        ETYKIETY        Disk
        ADMIN$          Disk      Administracja zdalna
        C$              Disk      Domyślny udział
Domain=[BARTEKR] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
#=================================================



Asking from server about server:

#=================================================
[root@belphegor zanik2]# smbclient -L \\192.168.7.1
Enter root's password:
Domain=[ENELPC] OS=[Unix] Server=[Samba 3.5.8]

        Sharename       Type      Comment
        ---------       ----      -------
        wymiana         Disk      Do wymiany plikow
        sterowniki      Disk      Sterowniki do urządzeń
        IPC$            IPC       IPC Service (Serwer)
Domain=[ENELPC] OS=[Unix] Server=[Samba 3.5.8]

        Server               Comment
        ---------            -------
#Those machines are visible from my XP testing machine:

        BELPHEGOR            Serwer
        DRUK-KOLOR

        Workgroup            Master
        ---------            -------
        ENELPC               BELPHEGOR
#=================================================




Now i dont know what is to blame ... samba or maybe workstations ?
What should i do next ? I have found simillar questions on internet but all of them was without an successful sollution. Maybe someone here solved this ? For me it looks like XP workstation loosing it's browser or perhaps another machine wining election ( even two LMB in one network segment!).

Is there any way of debugging tis from M$ side ?

Should i supply wiresharck dump or another information?

If you find this post unproper for this list please let me know. I'll try another.

Big THANKS



Looking forward for hearing from You
Thanks in advance
Sorry for mine poor english ...

Bartek R.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to