Adam.Read@excellus.com
2002-Mar-25 09:13 UTC
[Samba] sys_gethostbyname error causing large delay in session setup
I am running Samba version 2.2.3-pre and have run into a slowdown. This doesn't seem to be a problem for my account (mapped as root), but it creates a delay in the session setup for my users. The delay can be anywhere from 30 seconds to over a minute. I cannot find a true cause, as the computer name is resolved correctly. These are NT4.0 clients, and they are only in WINS, so no DNS entries for them or /etc/hosts / lmhosts entries. Consequently, I don't even have an lmhosts file. Here is a snippet of the log @ level 3 (sorry, don't have too much disk space, have 6 gigs of logs currently). I have 900 users on this particular server, though load is low. The only similiar errors I could find where reported back in 1997. Thanks for your help, and let me know if there is anything else needed. Adam D. Read Linux SA SAMBA Team IT, Univera HealthCare WNY [2002/03/22 07:49:11, 3] smbd/sec_ctx.c:get_current_groups(162) get_current_groups: user is in 1 groups: 100 [2002/03/22 07:49:11, 3] smbd/password.c:register_vuid(320) uid 1129 registered to name smith_w [2002/03/22 07:49:11, 3] smbd/password.c:register_vuid(322) Clearing default real name [2002/03/22 07:49:11, 3] smbd/password.c:register_vuid(324) User name: smith_w Real name: Samba smith_w [2002/03/22 07:50:05, 0] lib/util_sock.c:matchname(939) sys_gethostbyname(bn006097): lookup failure. [2002/03/22 07:50:05, 0] lib/util_sock.c:get_socket_name(1006) Matchname failed on bn006097 10.8.39.37 [2002/03/22 07:50:05, 3] smbd/process.c:chain_reply(1000) Chained message [2002/03/22 07:50:05, 3] smbd/process.c:switch_message(662) switch message SMBtconX (pid 24412)
Rashkae
2002-Mar-25 10:43 UTC
[Samba] sys_gethostbyname error causing large delay in session setup
Quickfix, create /etc/hosts entries on Samba box for internal IP's. On Mon, 25 Mar 2002 Adam.Read@excellus.com wrote: I am running Samba version 2.2.3-pre and have run into a slowdown. This doesn't seem to be a problem for my account (mapped as root), but it creates a delay in the session setup for my users. The delay can be anywhere from 30 seconds to over a minute. I cannot find a true cause, as the computer name is resolved correctly. These are NT4.0 clients, and they are only in WINS, so no DNS entries for them or /etc/hosts / lmhosts entries. Consequently, I don't even have an lmhosts file. Here is a snippet of the log @ level 3 (sorry, don't have too much disk space, have 6 gigs of logs currently). I have 900 users on this particular server, though load is low. The only similiar errors I could find where reported back in 1997. Thanks for your help, and let me know if there is anything else needed. Adam D. Read Linux SA SAMBA Team IT, Univera HealthCare WNY [2002/03/22 07:49:11, 3] smbd/sec_ctx.c:get_current_groups(162) get_current_groups: user is in 1 groups: 100 [2002/03/22 07:49:11, 3] smbd/password.c:register_vuid(320) uid 1129 registered to name smith_w [2002/03/22 07:49:11, 3] smbd/password.c:register_vuid(322) Clearing default real name [2002/03/22 07:49:11, 3] smbd/password.c:register_vuid(324) User name: smith_w Real name: Samba smith_w [2002/03/22 07:50:05, 0] lib/util_sock.c:matchname(939) sys_gethostbyname(bn006097): lookup failure. [2002/03/22 07:50:05, 0] lib/util_sock.c:get_socket_name(1006) Matchname failed on bn006097 10.8.39.37 [2002/03/22 07:50:05, 3] smbd/process.c:chain_reply(1000) Chained message [2002/03/22 07:50:05, 3] smbd/process.c:switch_message(662) switch message SMBtconX (pid 24412)
Gerald Carter
2002-Mar-26 07:20 UTC
[Samba] sys_gethostbyname error causing large delay in session setup
On Mon, 25 Mar 2002 Adam.Read@excellus.com wrote:> I am running Samba version 2.2.3-pre and have run into a slowdown. This > doesn't seem to be a problem for my account (mapped as root), but it > creates a delay in the session setup for my users. The delay can be > anywhere from 30 seconds to over a minute. I cannot find a true cause, as > the computer name is resolved correctly. These are NT4.0 clients, and they > are only in WINS, so no DNS entries for them or /etc/hosts / lmhosts > entries. > Consequently, I don't even have an lmhosts file. > > Here is a snippet of the log @ level 3 (sorry, don't have too much diskDo you have "hosts allow = <hostnames>"? Try using the IP addresses in this line instead. Also try setting "log level = 0". cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--