An XP client is having an issue with my 3.0.28a server. They do not have this problem on a native w2003 file server with the same amount of data. [2008/08/20 13:25:14, 5] smbd/dir.c:OpenDir(1079) OpenDir: Can't open DowningShotgun/DowningTest/DowningTest.files/sample. Too many open files [2008/08/20 13:25:14, 3] smbd/filename.c:scan_directory(586) scan dir didn't open dir [DowningShotgun/DowningTest/DowningTest.files/sample] [2008/08/20 13:25:14, 3] smbd/error.c:error_packet_set(106) error packet at smbd/nttrans.c(649) cmd=162 (SMBntcreateX) NT_STATUS_TOO_MANY_OPENED_FILES I adjusted the "max open files" parameter in smb.conf to 1,000,000 files: max open files = 1000000 Let me ask you this...is this max count tied to each smbd process or is this an aggregate number bound to all smbd processes? Thanks, Bill Pappas - Enterprise Network Storage Architect St. Jude Children's Research Hospital 332 North Lauderdale Memphis, TN 38105 901.495.4549
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pappas, Bill wrote:> An XP client is having an issue with my 3.0.28a server. They do not have this problem on a native w2003 file server with the same amount of data. > > > [2008/08/20 13:25:14, 5] smbd/dir.c:OpenDir(1079) > OpenDir: Can't open DowningShotgun/DowningTest/DowningTest.files/sample. Too many open files > [2008/08/20 13:25:14, 3] smbd/filename.c:scan_directory(586) > scan dir didn't open dir [DowningShotgun/DowningTest/DowningTest.files/sample] > [2008/08/20 13:25:14, 3] smbd/error.c:error_packet_set(106) > error packet at smbd/nttrans.c(649) cmd=162 (SMBntcreateX) NT_STATUS_TOO_MANY_OPENED_FILES > > I adjusted the "max open files" parameter in smb.conf to 1,000,000 files: > > max open files = 1000000 > > > Let me ask you this...is this max count tied to each smbd process or is this an aggregate number bound to all smbd processes?It depends on your OS. This is likely an OS message. Check Google -- this is a pretty common message. - -- ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$&| |__| | | |__/ | \| _| |novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIrG3nmb+gadEcsb4RAv7DAKDintUa7JvXO6xicodE+oZ7Oi80bACggT5+ XemBGIyvxhGDtXNmjpRUHzI=Wbh/ -----END PGP SIGNATURE-----
On Wed, Aug 20, 2008 at 01:41:21PM -0500, Pappas, Bill wrote:> An XP client is having an issue with my 3.0.28a server. They do not have this problem on a native w2003 file server with the same amount of data.What platform is Samba running on ?
RHEL 4 U4 EMT64 ________________________________________ From: Jeremy Allison [jra@samba.org] Sent: Wednesday, August 20, 2008 3:26 PM To: Pappas, Bill Cc: samba@lists.samba.org Subject: Re: [Samba] Too many opened files....samba 3.0.28a On Wed, Aug 20, 2008 at 01:41:21PM -0500, Pappas, Bill wrote:> An XP client is having an issue with my 3.0.28a server. They do not have this problem on a native w2003 file server with the same amount of data.What platform is Samba running on ?
On Wed, Aug 20, 2008 at 03:27:35PM -0500, Pappas, Bill wrote:> RHEL 4 U4 EMT64Ok, take a look inside /proc for all the existing smbd processes and see if any of them have an outrageous number of open file descriptors. Jeremy.
Ok. I matched /proc/sys/fs/file-max (i.e 1,000,000) to the "max open files" parameter in smb.conf. This did the trick. Apparently an application on a CIFS client (running WINXP) opens many, many files. I appreciate your help. Thanks, bp ________________________________________ From: Jeremy Allison [jra@samba.org] Sent: Wednesday, August 20, 2008 3:31 PM To: Pappas, Bill Cc: Jeremy Allison; samba@lists.samba.org Subject: Re: [Samba] Too many opened files....samba 3.0.28a On Wed, Aug 20, 2008 at 03:27:35PM -0500, Pappas, Bill wrote:> RHEL 4 U4 EMT64Ok, take a look inside /proc for all the existing smbd processes and see if any of them have an outrageous number of open file descriptors. Jeremy.
Pappas, Bill wrote:> Ok. I matched /proc/sys/fs/file-max (i.e 1,000,000) to the "max open files" parameter in smb.conf. > > This did the trick. > > Apparently an application on a CIFS client (running WINXP) opens many, many files. > > I appreciate your help.I had this problem also with a rogue XP client and Microsloth Outlook. Fixed by upgrading to 3.0.29 without altering any file system parameters. I do not know what the default max open files param is but I do not have that set in my smb.conf, and cat /proc/sys/fs/file-max yields 50776. This is on a Fedora 3 machine 2.6.12-2.3.legacy_FC3smp #1 SMP Sun Feb 19 08:53:09 EST 2006 i686 i686 i386 GNU/Linux that has a pretty long uptime 06:26:47 up 228 days, 22:43, 1 user, load average: 0.18, 0.06, 0.01 Cheers, Ray> > Thanks, > bp > ________________________________________ > From: Jeremy Allison [jra@samba.org] > Sent: Wednesday, August 20, 2008 3:31 PM > To: Pappas, Bill > Cc: Jeremy Allison; samba@lists.samba.org > Subject: Re: [Samba] Too many opened files....samba 3.0.28a > > On Wed, Aug 20, 2008 at 03:27:35PM -0500, Pappas, Bill wrote: >> RHEL 4 U4 EMT64 > > Ok, take a look inside /proc for all the existing smbd > processes and see if any of them have an outrageous > number of open file descriptors. > > Jeremy. > >>