Koozali.org: home of the SME Server

SME 7.4 Wins.dat file cleanup

Offline daniel

  • ****
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
SME 7.4 Wins.dat file cleanup
« on: March 25, 2010, 06:56:32 PM »
Having an issue with the SME7.4 server.  Its being used as a WINS and PDC with roaming profiles.  Switched the IP addresses of two other machines on the network.  Now part of the time requesting \\hostnameA shows the old machine shares and part of the time \\hostnameA shows the new machine shares.  This happens on multiple workstations in either domain login or workgroup login

In browsing around I find a /var/cache/samba/win.dat file with the associated host names and IP addresses.  What I find in this file are multiple lines with the same server name and pointing to the wrong IP address.  I manually edited the file and put the new IP address in for the server in question.  This seemed to fix the problem.  However today a workstation in workgroup mode tried going to \\server and ended up at the old IP address and not the new.  I checked the wins.dat file again today, and the old IP addresses are back in.

Is there a reason why a host name should appear more than once in this wins.dat file?  What creates it?  Is there a way I can dump the wins.dat and let it recreate itself?  I do have all the hosts set correctly in the hostnames so host.domain.com always goes to the right IP address.  I'm a bit stumped.  Perhaps some smbclient command would help? Suggestions?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME 7.4 Wins.dat file cleanup
« Reply #1 on: March 26, 2010, 03:23:36 PM »
Having an issue with the SME7.4 server.

Please report all problems via the bug tracker. Thanks.

Offline daniel

  • ****
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
Re: SME 7.4 Wins.dat file cleanup
« Reply #2 on: March 27, 2010, 02:27:08 AM »
I believe I solved my issue.  Google showed this in the bug tracker.
http://bugs.contribs.org/show_bug.cgi?id=3567

However the files are in /var/cache/samba not /var/cache.  I deleted the wins.dat file and let SME recreate it. 

I still don't understand why I get multiple lines in the wins.dat file with the same host name but a different HEX after the hostname, but I'm still researching.

I look forward to the update to Samba for Windows 7 connectivity.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: SME 7.4 Wins.dat file cleanup
« Reply #3 on: March 27, 2010, 03:34:58 AM »
daniel

Quote
I look forward to the update to Samba for Windows 7 connectivity.

Available now in sme8beta5.
May not be backported to sme7.4 as no suitable upstream Samba version exists.

Would your issue be related to browsemaster conflicts ?
See http://forums.contribs.org/index.php/topic,45731.msg222808.html#msg222808
You may need to reduce the os level on other machines on your network.
Windows workstations and servers can cause problems if not set appropriately.

Despite finding an old (not necessarily related) reference on the bug tracker, your problem will not get fully resolved unless you report it to bugzilla.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME 7.4 Wins.dat file cleanup
« Reply #4 on: March 27, 2010, 03:43:36 AM »
I still don't understand why I get multiple lines in the wins.dat file with the same host name but a different HEX after the hostname, but I'm still researching.

Please report all your problems, and all your research findings, in the bug tracker.