Page 1 of 1

Samba: "error(11): Resource temporarily unavailable"

Posted: Mon May 21, 2012 4:51 pm
by ^rooker
[PROBLEM]
I'm trying to mount a windows share (from windows server) on a Debian Squeeze (6.0.4), using Samba (2:3.5.6~dfsg-3squeeze8), but I get the following error message:
mount error(11): Resource temporarily unavailable
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
It doesn't make any sense, as I'm happily accessing the exact same share from another Debian Squeeze system - and an identical /etc/fstab entry for it.

I'm suspecting another DFS-fuckup.
Update: After digging myself through a maze of inconsistent "click-each-folder-to-see-the-access-rights" GUI-fun, I've made sure that the access rights were correct..
Still the same error.

Then I googled the error message and found a page on "of-networks.co.uk" where it said:
Do you have another cifs share mounted from the same remote machine (and possibly as the same user)
...and "yes": I did have another share mounted on the same remote machine and the same user.
So I did an "ls" on the mounted share, and got an ugly listing, like this:
drwxrwxr-x 1 root root 0 14. Dez 11:23 .
drwxr-xr-x 6 root root 4096 21. Mai 12:50 ..
d????????? ? ? ? ? ? folder_1
d????????? ? ? ? ? ? folder_2
The instructions on the of-networks page didn't work for me, but it was interesting to see that the other share mounted, and got the first listing correct - and subsequent "ls" brought the broken listing... WTF?

"dmesg" revealed that there's something not working with forwarding from the main host "storage" to "storage2" (thanks DFS!):
[1047189.066708] CIFS VFS: dns_resolve_server_name_to_ip: unable to resolve: storage2
[1047189.066972] CIFS VFS: cifs_compose_mount_options: Failed to resolve server part of \\storage2\K to IP: -11

Re: Samba: "error(11): Resource temporarily unavailable"

Posted: Mon May 21, 2012 5:50 pm
by ^rooker
[SOLUTION]
Now I remember! I've already had this one before... (On Lenny):
http://www.das-werkstatt.com/forum/werk ... f=7&t=1828

So, on Squeeze, it's almost the same:
1) Install the package keyutils:

Code: Select all

apt-get install keyutils
2) Make sure you have the following 2 lines in "/etc/request-key.conf":
create cifs.spnego * * /usr/sbin/cifs.upcall %k
create dns_resolver * * /usr/sbin/cifs.upcall %k
(They had to be added on Lenny, but already exist on Squeeze)

Afterwards, you should be able to mount the shares properly! :)
Fuck DFS.