Jan Mostert
2002-Mar-06 07:20 UTC
[Samba] Locking problems with upgrade from 2.0.7 to 2.2.3a
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: Jan Mostert.vcf Type: text/x-vcard Size: 715 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20020306/e36726e6/JanMostert.vcf
thomas_tiedtke@de.schindler.com
2002-Mar-06 09:05 UTC
[Samba] Locking problems with upgrade from 2.0.7 to 2.2.3a
Sorry, I have make a mistake ... Hi, disable the parameter posix locking = no (if no nfs or local access possible, or set this in the share section without nfs or local access -- this eats the file locks) kernel oplocks = no (if no nfs or local access possible, or set this in the share section without nfs or local access -- this eats the file locks) use mmap= no (not possible on HP/UX 10.20) ... in the global section. It maybe helps! Regards, Thomas Gesendet von: samba-admin@lists.samba.org An: <samba@lists.samba.org> Kopie: "Jan Mostert" <J.Mostert@GeoDelft.nl> Thema: [Samba] Locking problems with upgrade from 2.0.7 to 2.2.3a Hello, Last weekend we tried to upgrade our Samba servers from 2.0.7 to 2.2.3a. This resulted in a small disaster. We did not change the smb.conf file, but after one hour users had problems with their Samba share. The log file contained many of the following messages: [2002/03/01 08:41:01, 0] printing/nt_printing.c:nt_printing_init(246) nt_printing_init: Failed to open nt drivers database /opt/samba/var/locks/ntdrivers.tdb (No locks available) [2002/03/01 08:41:01, 0] printing/nt_printing.c:nt_printing_init(253) nt_printing_init: Failed to open nt printers database /opt/samba/var/locks/ntprinters.tdb (No locks available) [2002/03/01 08:41:05, 1] smbd/service.c:make_connection(615) dg-sv21 (145.3.1.64) connect to service kff as user kff (uid=14480, gid=905) (pid 9531) [2002/03/01 08:41:12, 1] smbd/service.c:close_cnum(655) dg-sv20 (145.3.1.63) closed connection to service logging [2002/03/01 08:41:12, 1] smbd/service.c:close_cnum(655) dg-sv20 (145.3.1.63) closed connection to service logging [2002/03/01 08:41:12, 1] smbd/service.c:close_cnum(655) dg-sv20 (145.3.1.63) closed connection to service dfe [2002/03/01 08:41:12, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:12, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:15, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:15, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:19, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:19, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:23, 1] smbd/service.c:make_connection(615) dg-sv22 (145.3.1.65) connect to service swi as user swi (uid=18115, gid=300) (pid 407) [2002/03/01 08:41:27, 1] smbd/service.c:make_connection(615) dg-sv22 (145.3.1.65) connect to service logging as user gd (uid=228, gid=20) (pid 407) [2002/03/01 08:41:31, 1] smbd/service.c:make_connection(615) dg-sv22 (145.3.1.65) connect to service swi as user swi (uid=18115, gid=300) The kernel parameter NFLOCKS of the HP-UX 10.20 machine was already increased in the past to 1000. With Samba 2.0.7 these messages never showed up. I unsderstand something has been changed in the file locking part of Samba, but how can I solve this problem? Kind regards, Jan Mostert GeoDelft -------------- next part -------------- A non-text attachment was scrubbed... Name: Jan Mostert.vcf Type: application/octet-stream Size: 735 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20020306/8d39e4a1/JanMostert-0001.obj
Jeremy Allison
2002-Mar-06 11:57 UTC
[Samba] Locking problems with upgrade from 2.0.7 to 2.2.3a
On Wed, Mar 06, 2002 at 04:13:39PM +0100, Jan Mostert wrote:> The kernel parameter NFLOCKS of the HP-UX 10.20 machine was already increased in the past to 1000. With Samba 2.0.7 these messages never showed up. I unsderstand something has been changed in the file locking part of Samba, but how can I solve this problem?Yes, Samba now uses *lots* of fcntl locks. You need to multiply this parameter in the kernel by 10 (at least). Jeremy.
Derivas, Eduardo V
2002-Mar-06 14:10 UTC
Antwort: [Samba] Locking problems with upgrade from 2.0.7 to 2.2.3a
Hi, I have been having the same problem when I upgraded from 2.0.7 to 2.2.3a. I worked great for the first 16 users, but after that it gave me the same errors and nobody else could get in. Please let me know if the recommended parameters help. Eduardo -----Original Message----- From: thomas_tiedtke@de.schindler.com [mailto:thomas_tiedtke@de.schindler.com] Sent: Wednesday, March 06, 2002 8:36 AM To: Jan Mostert Cc: samba@lists.samba.org Subject: Antwort: [Samba] Locking problems with upgrade from 2.0.7 to 2.2.3a Hi, disable the parameter posix locking = no (if no nfs access possible, or set this in the share section without nfs access -- this eats the file locks) kernel oplocks = no (not possible on HP/UX 10.20) use mmap= no (not possible on HP/UX 10.20) ... in the global section. It maybe helps! Regards, Thomas Gesendet von: samba-admin@lists.samba.org An: <samba@lists.samba.org> Kopie: "Jan Mostert" <J.Mostert@GeoDelft.nl> Thema: [Samba] Locking problems with upgrade from 2.0.7 to 2.2.3a Hello, Last weekend we tried to upgrade our Samba servers from 2.0.7 to 2.2.3a. This resulted in a small disaster. We did not change the smb.conf file, but after one hour users had problems with their Samba share. The log file contained many of the following messages: [2002/03/01 08:41:01, 0] printing/nt_printing.c:nt_printing_init(246) nt_printing_init: Failed to open nt drivers database /opt/samba/var/locks/ntdrivers.tdb (No locks available) [2002/03/01 08:41:01, 0] printing/nt_printing.c:nt_printing_init(253) nt_printing_init: Failed to open nt printers database /opt/samba/var/locks/ntprinters.tdb (No locks available) [2002/03/01 08:41:05, 1] smbd/service.c:make_connection(615) dg-sv21 (145.3.1.64) connect to service kff as user kff (uid=14480, gid=905) (pid 9531) [2002/03/01 08:41:12, 1] smbd/service.c:close_cnum(655) dg-sv20 (145.3.1.63) closed connection to service logging [2002/03/01 08:41:12, 1] smbd/service.c:close_cnum(655) dg-sv20 (145.3.1.63) closed connection to service logging [2002/03/01 08:41:12, 1] smbd/service.c:close_cnum(655) dg-sv20 (145.3.1.63) closed connection to service dfe [2002/03/01 08:41:12, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:12, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:15, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:15, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:19, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:19, 0] printing/nt_printing.c:nt_printing_init(260) nt_printing_init: Failed to open nt forms database /opt/samba/var/locks/ntforms.tdb (No locks available) [2002/03/01 08:41:23, 1] smbd/service.c:make_connection(615) dg-sv22 (145.3.1.65) connect to service swi as user swi (uid=18115, gid=300) (pid 407) [2002/03/01 08:41:27, 1] smbd/service.c:make_connection(615) dg-sv22 (145.3.1.65) connect to service logging as user gd (uid=228, gid=20) (pid 407) [2002/03/01 08:41:31, 1] smbd/service.c:make_connection(615) dg-sv22 (145.3.1.65) connect to service swi as user swi (uid=18115, gid=300) The kernel parameter NFLOCKS of the HP-UX 10.20 machine was already increased in the past to 1000. With Samba 2.0.7 these messages never showed up. I unsderstand something has been changed in the file locking part of Samba, but how can I solve this problem? Kind regards, Jan Mostert GeoDelft