Upgraded to Samba 3.5.6 from 3.5.2. Samba is running as a standalone server on a box that was upgraded from Slackware 13.1 to Slackware 13.37. All Win XP Pro and Win 7 Pro clients can connect to the workgroup and browse shares and folders exactly as before; however, many complain of intermittent pauses, slowdowns and "Not Responding" messages when traversing directories. The samba server and users are all on the same LAN segment behind a firewall/router box (slackware linux 13.1) that also acts as the DHCP server for the LAN. No firewall changes have been made from the time of Samba 3.5.2 to 3.5.6. I'm wondering if there is a dns problem problem since I noticed openssh logins to the samba server box also became very slow upon upgrading the Samba server. It was not until I changed the openssh server to "useDNS no" that the login speed went back to "normal." I don't see anything of note in the samba logs; but, I may not have them tuned to the proper level. I can provide the smb.conf if that's helpful, but it's very simple and has not changed in two years. I would appreciate any guidance in how to troubleshoot this scenario. Thank you for your help. Mike
Follow-up on first post: /var/log/samba/nmbd.log -- [2011/09/19 13:13:07.959554, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) find_domain_master_name_query_fail: Unable to find the Domain Master Browser name MW<1b> for the workgroup MW. Unable to sync browse lists in this workgroup. [2011/09/19 13:28:07.204633, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) root at a1:/var/log/samba# smbclient -N -L a1 -- Anonymous login successful Domain=[MW] OS=[Unix] Server=[Samba 3.5.6] Sharename Type Comment --------- ---- ------- Ac Disk Ma Disk Ca Disk Ne Disk Ol Disk Ka Disk Mz Disk Fa Disk Sc Disk IPC$ IPC IPC Service (A1 Server) Anonymous login successful Domain=[MW] OS=[Unix] Server=[Samba 3.5.6] Server Comment --------- ------- A1 A1 Server Workgroup Master --------- ------- MW A1 /etc/samba/smb.conf -- #======================= Global Settings ====================================[global] netbios name = a1 workgroup = mw server string = A1 Server security = user hosts allow = 192.168.1. 127.0.0. hosts deny = 0.0.0.0/0 log file = /var/log/samba.%m max log size = 500 passdb backend = tdbsam encrypt passwords = Yes local master = yes os level = 99 time server = yes preferred master = yes wins support = yes wide links = no #============================ Share Definitions ============================= [Ac] writable = yes read only = no guest ok = yes public = yes oplocks = true level2 oplocks = true path = /abc/def create mask = 0777 directory mask = 0777 security mask = 0777 directory security mask = 0777 [Ma] writable = yes read only = no guest ok = yes public = yes oplocks = true level2 oplocks = true path = /abc/ghi create mask = 0777 directory mask = 0777 security mask = 0777 directory security mask = 0777 the settings on all other shares are precisely the same.
I am now using log level 3 in samba and the nmbd process shows the following just about every 15 minutes: [2011/09/23 12:09:35.535017, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) find_domain_master_name_query_fail: Unable to find the Domain Master Browser name MW<1b> for the workgroup MW. Unable to sync browse lists in this workgroup. [2011/09/23 12:24:42.934861, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) find_domain_master_name_query_fail: Unable to find the Domain Master Browser name MW<1b> for the workgroup MW. Unable to sync browse lists in this workgroup. [2011/09/23 12:39:50.847643, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) find_domain_master_name_query_fail: Unable to find the Domain Master Browser name MW<1b> for the workgroup MW. Unable to sync browse lists in this workgroup. [2011/09/23 12:55:00.264436, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) find_domain_master_name_query_fail: Unable to find the Domain Master Browser name MW<1b> for the workgroup MW. Unable to sync browse lists in this workgroup. smbd process shows the following: [2011/09/23 12:35:40.645624, 0] lib/util_sock.c:1432(get_peer_addr_internal) getpeername failed. Error was Transport endpoint is not connected [2011/09/23 12:42:15.882985, 0] lib/util_sock.c:1432(get_peer_addr_internal) getpeername failed. Error was Transport endpoint is not connected
On Fri, Sep 23, 2011 at 1:01 PM, Mike <1100100 at gmail.com> wrote:> I am now using log level 3 in samba and the nmbd process shows the > following just about every 15 minutes: > > [2011/09/23 12:09:35.535017, 0] > nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) > > find_domain_master_name_query_fail: > Unable to find the Domain Master Browser name MW<1b> for the workgroup > MW. > Unable to sync browse lists in this workgroup. > [2011/09/23 12:24:42.934861, 0] > nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) > > find_domain_master_name_query_fail: > Unable to find the Domain Master Browser name MW<1b> for the workgroup > MW. > Unable to sync browse lists in this workgroup. > [2011/09/23 12:39:50.847643, 0] > nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) > > find_domain_master_name_query_fail: > Unable to find the Domain Master Browser name MW<1b> for the workgroup > MW. > Unable to sync browse lists in this workgroup. > [2011/09/23 12:55:00.264436, 0] > nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) > > find_domain_master_name_query_fail: > Unable to find the Domain Master Browser name MW<1b> for the workgroup > MW. > Unable to sync browse lists in this workgroup. > > > smbd process shows the following: > > [2011/09/23 12:35:40.645624, 0] > lib/util_sock.c:1432(get_peer_addr_internal) > getpeername failed. Error was Transport endpoint is not connected > [2011/09/23 12:42:15.882985, 0] > lib/util_sock.c:1432(get_peer_addr_internal) > getpeername failed. Error was Transport endpoint is not connected > >Has anyone seen these kinds of log messages before and provide guidance on how to follow-up? Thank you for your help.
hello, why do you use samba as preferred master ?? . it seems that you are using samba only for shares security=user so you can set preferred master = no and remove the OS entries since it only helps in master election, and regarding the wins (nmblookup) you need to run the nmb service. and to clarify the problem in more understandable way. can you dump the output of testparam -vv Saddam Abu Ghaida -- View this message in context: http://samba.2283325.n4.nabble.com/Slow-Directory-Access-after-upgrade-to-3-5-6-tp3830496p3842178.html Sent from the Samba - General mailing list archive at Nabble.com.
saddam abu ghaida
2011-Sep-27 09:30 UTC
[Samba] Slow Directory Access after upgrade to 3.5.6
set local master to yes and domain master to no On Tue, Sep 27, 2011 at 12:07 PM, Mike <1100100 at gmail.com> wrote:> > > On Tue, Sep 27, 2011 at 4:35 AM, sghaida <saddam.abughaida at gmail.com>wrote: > >> hello again, >> >> can you make the os level 15 or 20 in order to force SAMBA not to become >> preferred master by election. and check if you will still have the same >> issue >> >> > Would the following configuration be acceptable to test your suggestion: > > > domain master = yes > local master = yes > os level = 15 > > Thanks for your help. > >
On Tue, Sep 27, 2011 at 5:30 AM, saddam abu ghaida < saddam.abughaida at gmail.com> wrote:> set local master to yes and domain master to no > >Excellent, will give it a try.
I tried the settings but still no luck with "find_domain_master_name_query_fail" message. ~# cat /etc/samba/smb.conf #======================= Global Settings ====================================[global] netbios name = a1 workgroup = mw server string = A1 Server security = user hosts allow = 192.168.1. 127. hosts deny = 0.0.0.0/0 log file = /var/log/samba.%m max log size = 500 passdb backend = tdbsam encrypt passwords = Yes domain master = no local master = yes os level = 15 ## time server = yes ## preferred master = yes wins support = yes name resolve order = wins host bcast lmhosts wide links = no log level = 3 ============================================ ~#cat /var/log/samba.nmbd: [2011/09/27 07:06:13.170424, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) find_domain_master_name_query_fail: Unable to find the Domain Master Browser name MW<1b> for the workgroup MW. Unable to sync browse lists in this workgroup. [2011/09/27 07:21:18.364603, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) find_domain_master_name_query_fail: Unable to find the Domain Master Browser name MW<1b> for the workgroup MW. Unable to sync browse lists in this workgroup. [2011/09/27 07:36:25.026395, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) find_domain_master_name_query_fail: Unable to find the Domain Master Browser name MW<1b> for the workgroup MW. Unable to sync browse lists in this workgroup. [2011/09/27 07:51:32.479213, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) find_domain_master_name_query_fail: Unable to find the Domain Master Browser name MW<1b> for the workgroup MW. Unable to sync browse lists in this workgroup.