[Samba] After update to 3.6.1 -> smbd dies often ? massive brl and lock database cleanup scheduled log entries

Kahle, Markus markus.kahle at brueckmann-gmbh.de
Tue May 29 03:50:49 MDT 2012





Hi ! 

We updated our NT4 domain-server samba from 3.0.27a to newest available 3.6.5 version this weekend. 
I've done various testing in a VM to make sure that everything is working under 3.6.5 and it all seems to run well. 
After updating the live system to 3.6.5 the following log entries occur really often, but users don't have any noticable problems. 
( Tried to find matching entries in the client logs - loglevel 2 ): 

-------------------------------------------------------------------------------- 
log.smbd: 
2012/05/29 10:21:18.261416, 1] smbd/server.c:300(remove_child_pid) 
Scheduled cleanup of brl and lock database after unclean shutdown 
[2012/05/29 10:21:38.262575, 1] smbd/server.c:272(cleanup_timeout_fn) 
Cleaning up brl and lock database after unclean shutdown 

log.bhs013: 
[2012/05/29 10:21:18.251213, 2] smbd/process.c:2455(deadtime_fn) 
Closing idle connection 
[2012/05/29 10:21:18.251618, 1] smbd/service.c:1345(close_cnum) 
bhs013 (10.0.1.12) closed connection to service tools13 
-------------------------------------------------------------------------------- 

-------------------------------------------------------------------------------- 
log.smbd: 
[2012/05/29 10:27:16.153040, 1] smbd/server.c:300(remove_child_pid) 
Scheduled cleanup of brl and lock database after unclean shutdown 
[2012/05/29 10:27:36.154652, 1] smbd/server.c:272(cleanup_timeout_fn) 
Cleaning up brl and lock database after unclean shutdown 

log.bel23: 
[2012/05/29 10:27:16.141301, 2] smbd/process.c:2455(deadtime_fn) 
Closing idle connection 
[2012/05/29 10:27:16.141510, 1] smbd/service.c:1345(close_cnum) 
bel023 (10.0.17.5) closed connection to service tools23 
-------------------------------------------------------------------------------- 


This one ist logged with loglevel 3: 
-------------------------------------------------------------------------------- 
log.smbd: 
[2012/05/29 11:13:09.888850, 3] smbd/server.c:292(remove_child_pid) 
smbd/server.c:292 Unclean shutdown of pid 11784 
[2012/05/29 11:13:09.888995, 1] smbd/server.c:300(remove_child_pid) 
Scheduled cleanup of brl and lock database after unclean shutdown 
[2012/05/29 11:13:29.890127, 1] smbd/server.c:272(cleanup_timeout_fn) 
Cleaning up brl and lock database after unclean shutdown 

log.bel076: 
[2012/05/29 11:02:09.927238, 1] smbd/service.c:1081(make_connection_snum) 
bel076 (10.0.17.2) connect to service gb_benutzer initially as user gb_benutzer (uid=1393, gid=513) (pid 11784) 
[2012/05/29 11:06:09.872325, 2] param/loadparm.c:7690(handle_include) 
Can't find include file /etc/samba/smb.conf.bel076 
[2012/05/29 11:06:09.873461, 2] param/loadparm.c:8327(do_section) 
Processing section "[homes]" 
[2012/05/29 11:06:09.873622, 2] param/loadparm.c:8327(do_section) 
Processing section "[netlogon]" 
[2012/05/29 11:06:09.873751, 2] param/loadparm.c:8327(do_section) 
Processing section "[profiles]" 
[2012/05/29 11:06:09.873962, 2] param/loadparm.c:8327(do_section) 
Processing section "[printers]" 
[2012/05/29 11:06:09.874120, 2] param/loadparm.c:8327(do_section) 
Processing section "[print$]" 
[2012/05/29 11:06:09.874287, 2] param/loadparm.c:8327(do_section) 
Processing section "[domaintools]" 
[2012/05/29 11:06:09.874522, 3] param/loadparm.c:6630(lp_add_ipc) 
adding IPC service 
[2012/05/29 11:06:09.874727, 2] lib/interface.c:341(add_interface) 
added interface eth1 ip=10.0.0.1 bcast=10.0.255.255 netmask=255.255.0.0 
[2012/05/29 11:13:09.879760, 2] smbd/process.c:2455(deadtime_fn) 
Closing idle connection 
[2012/05/29 11:13:09.879935, 3] smbd/server.c:179(msg_exit_server) 
got a SHUTDOWN message 
[2012/05/29 11:13:09.880019, 1] smbd/service.c:1345(close_cnum) 
bel076 (10.0.17.2) closed connection to service gb_benutzer 
[2012/05/29 11:13:09.880084, 3] smbd/connection.c:35(yield_connection) 
Yielding connection to gb_benutzer 
[2012/05/29 11:13:09.880315, 3] smbd/server_exit.c:180(exit_server_common) 
Server exit (normal exit) 
-------------------------------------------------------------------------------- 


It seems that a connection to a share gets dropped because it's idle (normal exit), but samba think it's "unclean" and rebuilds brl and lock databases. 
Any hints or suggestions for this errors ? Can it be ignored , or should I dig deeper (loglevel) ? 
Is it possible that any old stuff from samba 3.0.27a causes that errors in 3.6.5 ? 


Thanks in advance, 

Markus 


More information about the samba mailing list