Re: [Samba] samba: problem in copying directories with many files
On Thu, Jan 15, 2004 at 12:08:52AM -0500, Mitch Crane wrote: I see. I can also reproduce the symptoms, btw, with: smbclient //some-server/some-share -U user%pass -c 'dir foo/*' | wc -l Though I see the missing entries less frequently (which is why I originally thought smbclient was ok). Does this happen using smbclient to smbd or does this only happen against a Windows server ? Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] samba: problem in copying directories with many files
On Thu, Jan 15, 2004 at 12:08:52AM -0500, Mitch Crane wrote: I see. I can also reproduce the symptoms, btw, with: smbclient //some-server/some-share -U user%pass -c 'dir foo/*' | wc -l Though I see the missing entries less frequently (which is why I originally thought smbclient was ok). Does this happen using smbclient to smbd or does this only happen against a Windows server ? Jeremy. I don't know. I suspect it's just against a Windows server, and possibly just 2000 and XP (maybe 2003). I've only seen it when accessing my Windows XP machine, and all the reports I googled involved Windows based shares. I run the one Linux web server which only uses the client to serve files which reside on my XP box. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba: problem in copying directories with many files
On Tue, Jan 13, 2004 at 06:55:15AM -0500, Mitch Crane wrote: That's why I added that no one from the samba team had acknowledged it--I wasn't sure you guys were aware of it, just that some people were. I only joined the samba list about 2 weeks ago (mainly in search of a solution for this problem) yet I've seen four reports of this problem (including this one and mine) or something similar. Ok - the problem is this looks like a smbfs problem, not a Samba server problem. The Samba Team doesn't maintain smbfs - one of our members (Steve French from IBM) has written and maintains cifsvfs, the replacement for smbfs. I don't think we can promise to fix any smbfs problem as we aren't the maintainers. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] samba: problem in copying directories with many files
-Original Message- From: Jeremy Allison [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 11:33 PM To: Mitch Crane Cc: 'Jeremy Allison'; [EMAIL PROTECTED] Subject: Re: [Samba] samba: problem in copying directories with many files Ok - the problem is this looks like a smbfs problem, not a Samba server problem. The Samba Team doesn't maintain smbfs - one of our members (Steve French from IBM) has written and maintains cifsvfs, the replacement for smbfs. I don't think we can promise to fix any smbfs problem as we aren't the maintainers. I see. I can also reproduce the symptoms, btw, with: smbclient //some-server/some-share -U user%pass -c 'dir foo/*' | wc -l Though I see the missing entries less frequently (which is why I originally thought smbclient was ok). -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] samba: problem in copying directories with many files
From: Jeremy Allison [mailto:[EMAIL PROTECTED] Subject: Re: [Samba] samba: problem in copying directories with many files On Mon, Jan 12, 2004 at 05:48:19PM -0500, Mitch Crane wrote: If you are mounting a share from your XP machine then yes, it's a known problem. Though I don't recall anyone from the samba team actually acknowledging it, I have the problem and I have seen several other reports of this problem. Not a known problem to us :-). This is the first I've seen of it. Do you have a reproducible test case for this ? That's why I added that no one from the samba team had acknowledged it--I wasn't sure you guys were aware of it, just that some people were. I only joined the samba list about 2 weeks ago (mainly in search of a solution for this problem) yet I've seen four reports of this problem (including this one and mine) or something similar. My post: http://groups.google.com/groups?hl=enlr=ie=UTF-8oe=utf-8safe=offselm=1 9W2K-6UJ-11%40gated-at.bofh.it Seems to be the same issue: http://groups.google.com/groups?hl=enlr=ie=UTF-8oe=utf-8safe=offselm=1 b1Ws-4Sl-13%40gated-at.bofh.it Possibly related: http://groups.google.com/groups?q=%5BSamba%5D+Issues+with+SMBFShl=enlr=i e=UTF-8oe=utf-8safe=offselm=19Dtg-6cT-23%40gated-at.bofh.itrnum=1 Also, searching Google reveals other reports of the same or similar issues (some fairly old). If so I'll commit to get it fixed for 3.0.2 final - but if it's a only happens sometimes kind of thing it will take longer and probably not make 3.0.2. I can reproduce it on my machine. I only have the one Linux box and one Windows box, but this problem has persisted for months while I've gone from Redhat 9 to SuSE 9, through various kernel versions (all 2.4.*) and a complete reinstall on the Windows side. (I'm running 3.0.1 now, btw, though I original discovered the issue in 2.2.x) It seems to happen fairly consistently, though it's worse at times than others. The more files in a directory, the more likely it is to occur. Send me details asap (I'm in Australia at the moment so will be working funny timezones). I filed a bug report which details some of my findings: https://bugzilla.samba.org/show_bug.cgi?id=939 I hope it wasn't too rambling. Take this with several hundred grains of salt, but it seems to me, from looking at Ethereal captures, that it could actually be a problem on the Windows side. The XP box appear to, at random times, skip a directory item on FIND_NEXT2 commands. Also, Michael Pflüger reported that using CIFS solved the problem. Unfortunately, I have no idea how to do that (though I did try, always ending in a target server not found and error 22). -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] samba: problem in copying directories with many files
We have setup samba share between XP and Redhat 8.0. We usually deal with copying directories with 1000 files over samba share. When we copy, we always find that few files are randomly skipped in copying and one has to copy few times to get all the files. Is this a known problem and is there any fix for this? If you are mounting a share from your XP machine then yes, it's a known problem. Though I don't recall anyone from the samba team actually acknowledging it, I have the problem and I have seen several other reports of this problem. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba: problem in copying directories with many files
On Mon, Jan 12, 2004 at 05:48:19PM -0500, Mitch Crane wrote: If you are mounting a share from your XP machine then yes, it's a known problem. Though I don't recall anyone from the samba team actually acknowledging it, I have the problem and I have seen several other reports of this problem. Not a known problem to us :-). This is the first I've seen of it. Do you have a reproducible test case for this ? If so I'll commit to get it fixed for 3.0.2 final - but if it's a only happens sometimes kind of thing it will take longer and probably not make 3.0.2. Send me details asap (I'm in Australia at the moment so will be working funny timezones). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba: problem in copying directories with many files
Suresh, I am sure that you know exactly what you are doing, but from your description it is not clear at all. I can see that you believe that you have a problem, a pretty bad one at that. If this is a Samba problem, we really ought to fix it, if it has not been fixed already. But please help us to understand what you are doing. Here are three possible interpretations of your posting: Case A -- A. You have configured Samba. Your RH 8.0 server is used as a file server and you have configured a directory on the hard disk storage of that Red Hat server for which you have in your smb.conf file created a share. In this situation, your Windows XP clients map a drive letter to the Samba server. Users on that machine make use of the network drive. Sometimes your users copy up to 1000 files off their local hard disk using Microsoft Windows Explorer and copy them to the Network drive that maps to the Samba server. When this operation completes, you find files missing. That is a serious problem, if it is a Samba problem. We would need to investigate that to find the cause. Case B -- B. You have shared data that resides on a Windows XP machine. The application runs locally and stores its data on the Windows XP machine. You have a Red Hat 8.0 machine. You log onto the Red Hat 8.0 machine and you mount the file system resource that is on the Windows XP machine as part of your Linux file system. In other words, you use the smbmount tool. You may be using: mount -t smbfs -ousername=x,password=xxx,rw,uid=xxx,gid=xxx \ //windowsxpmachine/share /mnt/windowsxp _OR_ you may be using: smbmount //windowsxpmachine/share /mnt/windowsxp -o 'options' _OR_ you may be using: smbmnt /mnt/windowsxp -s //windowsxpmachine/share -u xxx -g xxx When you have mounted the Windows share unto your local Linux file system you copy (Ipresume using the UNIX cp command) files from the /mnt/windowsxp directory to some part of the local Linux file system. Case C -- C. You log onto the Red Hat Linux 8.0 machine, change into a directory you want to copy files to, then you use the smbclient tool to copy the files across, just like yo would if you wree using FTP. - So please help us to understand precisely what you are doing. I makes a huge difference. Case A means we possibly have a serious bug in Samba. Case B means there is a bug in smbfs (well known). But smbfs is part of the Linux kernel and is not Samba. Case C means we may have a bug in the smbclient tool. One that needs to be fixed. I look forward to your clarification. - John T. On Fri, 9 Jan 2004, Suresh Narayanan wrote: Hi, We have setup samba share between XP and Redhat 8.0. We usually deal with copying directories with 1000 files over samba share. When we copy, we always find that few files are randomly skipped in copying and one has to copy few times to get all the files. Is this a known problem and is there any fix for this? Thanks. Suresh -- John H Terpstra Email: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba: problem in copying directories with many files
Hi, This problem is really bad in Win98. I would have thought MS would have that fixed in WinXP. Try XCOPY Source: Destination: /R /I /C /H /K /E /Y from the DOS prompt instead. I hope this helps. Suresh Narayanan ([EMAIL PROTECTED]) wrote: Hi, We have setup samba share between XP and Redhat 8.0. We usually deal with copying directories with 1000 files over samba share. When we copy, we always find that few files are randomly skipped in copying and one has to copy few times to get all the files. Is this a known problem and is there any fix for this? Thanks. Suresh -- Assured Computing When you need to be sure. [EMAIL PROTECTED] www.assuredcomp.com Voice - 541-868-0331 FAX - 541-463-1627 Eugene, Oregon -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba