[Bug 569384] New: "mount -t cifs" hangs for about 2 minutes
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c0 Summary: "mount -t cifs" hangs for about 2 minutes Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Samba AssignedTo: samba-maintainers@SuSE.de ReportedBy: ciriarte@personal.net.py QAContact: samba-maintainers@SuSE.de Found By: --- Blocker: --- Created an attachment (id=335707) --> (http://bugzilla.novell.com/attachment.cgi?id=335707) Strace of the mount process User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.0.16) Gecko/2009120208 Firefox/2.0.0.1 MEGAUPLOAD 1.0 (.NET CLR 3.5.30729) Mounting a cifs share by hand or using automount hangs for about 2 minutes, once it's mounted everything works fine (I can read and write without noticeable speed issues) Reproducible: Always Steps to Reproduce: 1.mount -t cifs -o rw,uid=1000,username=DOM\\user,password=pass //machine/c\$ /mnt 2. 3. Actual Results: The share is mounted, but only after 1 or 2 minutes. Using autofs with this share makes dolphin unresponsive until mount returns... Expected Results: The share should be mounted, without the long delay. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c1 Lars Müller <lmuelle@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |samba-maintainers@SuSE.de Info Provider| |ciriarte@personal.net.py AssignedTo|samba-maintainers@SuSE.de |sjayaraman@novell.com --- Comment #1 from Lars Müller <lmuelle@novell.com> 2010-01-09 17:29:41 UTC --- Please provide the information as described at http://en.openSUSE.org/Bugs/Samba#Debugging_cifs_vfs_client -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c2 --- Comment #2 from Suresh Jayaraman <sjayaraman@novell.com> 2010-01-13 15:38:19 UTC --- Also, check the latency of the machines (AD domain) and CIFS server, perhaps attach ping output of those machines. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c3 --- Comment #3 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-13 21:15:47 UTC --- Created an attachment (id=336487) --> (http://bugzilla.novell.com/attachment.cgi?id=336487) CIFS debug from dmesg -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c4 Ciro Iriarte <ciriarte@personal.net.py> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|ciriarte@personal.net.py | --- Comment #4 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-13 21:16:23 UTC --- Created an attachment (id=336488) --> (http://bugzilla.novell.com/attachment.cgi?id=336488) Ping from linux client -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c5 --- Comment #5 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-13 21:16:57 UTC --- Created an attachment (id=336489) --> (http://bugzilla.novell.com/attachment.cgi?id=336489) Ping to DCs from XP machine sharing the folder -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c Ciro Iriarte <ciriarte@personal.net.py> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #336488|Ping from linux client |Ping from linux client to description| |DCs -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c6 --- Comment #6 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-13 21:17:57 UTC --- Created an attachment (id=336490) --> (http://bugzilla.novell.com/attachment.cgi?id=336490) Info from /proc/fs/cifs/DebugData after mounting the share -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c7 --- Comment #7 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-13 21:28:42 UTC --- Created an attachment (id=336497) --> (http://bugzilla.novell.com/attachment.cgi?id=336497) Output from "echo t > /proc/sysrq-trigger && dmesg" -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c8 --- Comment #8 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-13 21:29:09 UTC --- Created an attachment (id=336498) --> (http://bugzilla.novell.com/attachment.cgi?id=336498) uname -r -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c9 Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ciriarte@personal.net.py --- Comment #9 from Suresh Jayaraman <sjayaraman@novell.com> 2010-01-15 06:11:48 UTC --- I don't see anything obviously wrong from the logs. I couldn't reproduce this issue on openSUSE 11.2. Can you try adding dns entries to the AD server and CIFS server in /etc/hosts and see whether this problem go away. This will tell us whether the delay has anything to do with the DNS or not. Also try mounting as guest by doing mount -t cifs -o guest //server/share /path_to/mount The above will tell us whether the delay is introduced in looking up user in AD or not. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c10 Ciro Iriarte <ciriarte@personal.net.py> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|ciriarte@personal.net.py | --- Comment #10 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-18 15:23:01 UTC --- (In reply to comment #9)
I don't see anything obviously wrong from the logs. I couldn't reproduce this issue on openSUSE 11.2.
Can you try adding dns entries to the AD server and CIFS server in /etc/hosts and see whether this problem go away. This will tell us whether the delay has anything to do with the DNS or not.
DNS resolution is instantaneous, I've added the 2 DCs and the XP machine to /etc/hosts anyway, same outcome.
Also try mounting as guest by doing mount -t cifs -o guest //server/share /path_to/mount
The above will tell us whether the delay is introduced in looking up user in AD or not.
Tried the guest mount, but even that was slow to fail. roamer:~ # time mount -t cifs -o guest //pcsissto-asu03/c\$ /mnt mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) real 3m9.094s user 0m0.002s sys 0m0.004s -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c11 Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #11 from Suresh Jayaraman <sjayaraman@novell.com> 2010-01-18 18:02:27 UTC --- Few more info is required: 1. What is the server running? Is it also a linux box (which kernelversion) or some filer? 2. Please attach a network capture of cifs packets by doing as root: start the packet capture #tcpdump -s0 -w cifs-debug.cap 'port 137 || 138 || 139 || 445' do the mount stop the packet capture attach cifs-debug.cap 3. run the mount command in verbose mode ('-v' option) and attach output. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |ciriarte@personal.net.py -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c12 Ciro Iriarte <ciriarte@personal.net.py> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|ciriarte@personal.net.py | --- Comment #12 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-18 19:07:38 UTC --- 1. Windows XP SP2 2. Added 3. Output from command: roamer:~ # mount -v -t cifs -o rw,uid=1000,username=TPPY\\iriartec,password=magaasu23 //pcsissto-asu03/c\$ /mnt mount.cifs kernel mount options: unc=//pcsissto-asu03\c$,domain=TPPY,ver=1,rw,username=iriartec,,,,,,uid=1000,ip=10.129.5.214,pass=******** roamer:~ # -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c13 --- Comment #13 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-18 19:08:51 UTC --- Created an attachment (id=337207) --> (http://bugzilla.novell.com/attachment.cgi?id=337207) SMB capture -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c14 --- Comment #14 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-19 20:50:16 UTC --- (In reply to comment #12)
1. Windows XP SP2
2. Added
3. Output from command:
roamer:~ # mount -v -t cifs -o rw,uid=1000,username=TPPY\\iriartec,password=magaasu23 //pcsissto-asu03/c\$ /mnt
mount.cifs kernel mount options: unc=//pcsissto-asu03\c$,domain=TPPY,ver=1,rw,username=iriartec,,,,,,uid=1000,ip=10.129.5.214,pass=******** roamer:~ #
Just to correct number 1, it's WinXP SP3 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c15 Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |ciriarte@personal.net.py --- Comment #15 from Suresh Jayaraman <sjayaraman@novell.com> 2010-01-20 17:45:30 UTC --- Looking at the packet capture there is no delay in the actual SMB calls (can be verified by changing Time format in wireshark (view->Time Display format). But, there are so many BROWSER calls announcement prior to this, not sure, why? Are they more than one Domain Master Browsers configured? Could you please check your domain controller configuration? also to find out where is the delay, you could run #strace -o cifsmount.trace -r "mount -t //server/share .." It appears to me from the traces that the problem is more of Windows domain configuration than a cifs problem. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c16 Ciro Iriarte <ciriarte@personal.net.py> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|ciriarte@personal.net.py | --- Comment #16 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-25 17:06:40 UTC --- The strace doesn't help a lot.. ######## fstat(3, {st_mode=S_IFREG|0644, st_size=26050, ...}) = 0 mmap(NULL, 26050, PROT_READ, MAP_SHARED, 3, 0) = 0x7faa9635d000 close(3) = 0 umask(022) = 022 open("/dev/null", O_RDWR) = 3 close(3) = 0 getuid() = 0 geteuid() = 0 stat("/sbin/mount.cifs", {st_mode=S_IFREG|0755, st_size=36480, ...}) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7faa963478a0) = 874 wait4(-1, <--- delay here ---> ######## Is there any way to get the Master Browser list from a client?, I don't have access to the AD configuration in our network. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c17 --- Comment #17 from Lars Müller <lmuelle@novell.com> 2010-01-25 17:12:31 UTC --- You might try nmblookup -M -- - -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c18 Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |ciriarte@personal.net.py --- Comment #18 from Suresh Jayaraman <sjayaraman@novell.com> 2010-01-25 17:45:37 UTC --- It might also be worth trying to mount with "-vvvv" (more verbose mode) before -o and see whether we could get some pointers about the delay. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c19 Ciro Iriarte <ciriarte@personal.net.py> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|ciriarte@personal.net.py | --- Comment #19 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-25 19:56:48 UTC ---
You might try
nmblookup -M -- -
This is the output with time taken to conclude. ciro@roamer:~> time nmblookup -M -- - querying __MSBROWSE__ on 172.16.100.255 querying __MSBROWSE__ on 192.168.56.255 querying __MSBROWSE__ on 10.129.7.255 10.129.7.39 __MSBROWSE__<01> 10.129.7.68 __MSBROWSE__<01> 10.129.6.147 __MSBROWSE__<01> 10.129.6.25 __MSBROWSE__<01> 10.129.6.165 __MSBROWSE__<01> 10.129.6.61 __MSBROWSE__<01> 10.129.6.78 __MSBROWSE__<01> 10.129.6.214 __MSBROWSE__<01> 10.129.4.176 __MSBROWSE__<01> 10.129.4.175 __MSBROWSE__<01> 10.129.4.199 __MSBROWSE__<01> 10.129.4.166 __MSBROWSE__<01> 10.129.5.139 __MSBROWSE__<01> 10.129.4.144 __MSBROWSE__<01> 10.129.4.88 __MSBROWSE__<01> 10.129.4.68 __MSBROWSE__<01> 192.168.1.1 __MSBROWSE__<01> real 0m1.910s user 0m0.004s sys 0m0.007s -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c20 --- Comment #20 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-25 21:31:21 UTC --- (In reply to comment #18)
It might also be worth trying to mount with "-vvvv" (more verbose mode) before -o and see whether we could get some pointers about the delay.
roamer:~ # time mount -t cifs -vvvv -o rw,uid=1000,username=TPPY\\iriartec,password=magaasu23 //pcsissto-asu03/c\$ /mnt mount: fstab path: "/etc/fstab" mount: mtab path: "/etc/mtab" mount: lock path: "/etc/mtab~" mount: temp path: "/etc/mtab.tmp" mount: UID: 0 mount: eUID: 0 mount: spec: "//pcsissto-asu03/c$" mount: node: "/mnt" mount: types: "cifs" mount: opts: "rw,uid=1000,username=TPPY\iriartec,password=magaasu23" mount: external mount: argv[0] = "/sbin/mount.cifs" mount: external mount: argv[1] = "//pcsissto-asu03/c$" mount: external mount: argv[2] = "/mnt" mount: external mount: argv[3] = "-v" mount: external mount: argv[4] = "-o" mount: external mount: argv[5] = "rw,uid=1000,username=TPPY\iriartec,password=replaced" mount.cifs kernel mount options: unc=//pcsissto-asu03\c$,domain=TPPY,ver=1,rw,username=iriartec,,,,,,uid=1000,ip=10.129.5.214,pass=******** real 3m9.018s user 0m0.001s -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c21 --- Comment #21 from James McDonough <jmcdonough@novell.com> 2010-01-25 21:43:40 UTC --- I noticed that your capture is smb only. I think it's important to have other protocols involved. My hunch is that somehow ipv6 dns lookups (AAAA records) are involved. Just a hunch... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c22 Paul Fransen <send.me@xs4all.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |send.me@xs4all.nl --- Comment #22 from Paul Fransen <send.me@xs4all.nl> 2010-01-28 12:44:16 UTC --- When you look in man 8 mount.cifs the explanation of the "port=" parameter reads: "If the CIFS server is not listening on this port or if it is not specified, the default ports will be tried i.e. port 445 is tried and if no response then port 139 is tried." Indeed, when specifying the port number in the mount command: /sbin/mount.cifs //[ip address server]/[share name] /[mount point] \ -o user=[user name],password=[password],rw,port=139 a share is mounted instantaneously. This would suggest that the delay results from contacting the server first at port 445 and only after that at port 139. Samba servers are listening to ports 445 and 139 by default. However, most authors recommend to keep firewall port 445 closed, e.g. http://en.opensuse.org/Firewall_on_simple_samba_LAN. Opening this port in the server firewall, or specifying port=139 in the mount.cifs command on the client, removes the delay, in my hands at least..... I have been using OpenSUSE 10.3 a lot and never encountered this behaviour then. Perhaps, one of the samba developers corrected the mount.cifs command to make it behave in accordance with the man page. Regards, Paul. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c23 --- Comment #23 from Ciro Iriarte <ciriarte@personal.net.py> 2010-01-28 13:48:56 UTC --- Neither of the involved machines have the native firewall active, but the windows host have a corporative antivirus that acts as a firewall apparently. Specifying the port 139 fixed my mount execution time, don't remember needing this before in this evironment before. Thanks! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=569384 http://bugzilla.novell.com/show_bug.cgi?id=569384#c24 Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #24 from Suresh Jayaraman <sjayaraman@novell.com> 2010-01-28 15:02:52 UTC --- Thanks for pitching in, Paul. Yeah, the behavior was corrected recently in upstream and it has been documented. All is well, I'll mark this as FIXED. Thanks! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com