LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-13-2011, 05:00 PM   #1
gqdabien
LQ Newbie
 
Registered: Oct 2011
Posts: 3

Rep: Reputation: Disabled
Talking RedHat and SuSE have unreliable cp over cifs network, resource temporarily unavailabl


Current setup:
Windows 2003 server machine has a CIFS/SMB share sharing something like C:\ = //windowshost/C is being shared.

Other Linux machines are mounting this share like so:
//windowshost/C on /mnt/windowshost/C type cifs (rw,mand)

Most of the time i am able to browse, copy, edit files through the mount but occasionally I will get the following error when copying files to the mount:
cp: accessing `/mnt/windowshost/C/some/path/here/': Resource temporarily unavailable

The thing is, an automated python script is copying files and sometimes getting this resource error, when i manually browse the mount its fine. The mount is also not heavily used, each Linux host is probably copying a 100KB file once every 3-4 minutes, and there are about 3 hosts.

The windows machine has not been down and no network outtages. Any known issues to "Resource temporarily unavailable" errors? The Windows box is 2003 so its probably using SMB 1.0

Thanks in advance for any support!
 
Old 10-16-2011, 10:51 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
According to the fcntl man page, you get EAGAIN when you attempt a nonblocking operation on a filesystem mounted with mandatory locking. Why are you setting the mand option? The default is advisory. Your other browsing is likely to open the files without setting O_NONBLOCK, so is not causing a problem.
 
Old 10-17-2011, 01:55 PM   #3
gqdabien
LQ Newbie
 
Registered: Oct 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
According to the fcntl man page, you get EAGAIN when you attempt a nonblocking operation on a filesystem mounted with mandatory locking. Why are you setting the mand option? The default is advisory. Your other browsing is likely to open the files without setting O_NONBLOCK, so is not causing a problem.
When I mount with -t cifs, it gives me RW, MAND by default. I tried giving it the option nomand, but it looks like it ignores it and still defaults to MAND.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C - Resource temporarily unavailable golmschenk Programming 1 03-07-2010 03:28 PM
Resource temporarily unavailable hostmaster Linux - Enterprise 2 02-14-2010 04:41 AM
Resource temporarily unavailable manoj.linux Linux - Enterprise 3 11-06-2009 08:21 AM
vfork: resource temporarily unavailable verbose Linux - General 5 02-04-2007 04:17 AM
Cifs "mount error 11 = Resource temporarily unavailable" humbletech99 Linux - Networking 1 09-26-2006 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration