Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Servers
Reload this Page Samba mount does not drop on timeout
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Servers Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Reply
 
Thread Tools Display Modes
Old 07-11-2007   #1 (permalink)
stimpy77
Just Joined!
 
Join Date: Jul 2007
Posts: 17
Samba mount does not drop on timeout

Hi guys,

I'm somewhat of a Linux newbie (been tinkering with Linux for a decade, but rarely).

We have a Linux server hosting a service that publishes files out to a Windows machine running IIS. We're using Samba for the file transfer since the service expects a file path (not, for example, an FTP path).

We've found that if the service publishes while the Windows machine goes down for maintenance--never a planned synchronous event but it does happen--Samba does not break the mount. Instead, it just sort of hangs there, and if you try to unmount it, it says it can't do it because it's "busy".

More specifically, the service on the Linux machine was publishing files out when the Windows machine rebooted. The Samba connection was never restored, and half a day later we were all looking at it and trying to figure out why the service running on Linux was hung. The Linux guys said that the Samba path to one Windows server was up but the path to another Windows server was down. We rebooted the Windows server whose link was down, but that didn't help. We then observed that Samba's link wasn't unmounted and we couldn't unmount it and remount it. We looked at the Event Viewer on Windows and saw that the machine had been rebooted half a day prior, from which we concluded that Samba simply failed to unmount the link when Windows went down.

What can we do on Samba configuration-wise to get a proper timeout or connection error / exception to be raised on Linux, or to write to a temp path, rather than let it just hang there in a broken state indefinitely?

Thanks,
Jon
stimpy77 is offline   Reply With Quote
Old 09-03-2007   #2 (permalink)
stimpy77
Just Joined!
 
Join Date: Jul 2007
Posts: 17
No one responded to this. We've since cleaned up our "going down for maintenance" periods on Windows and we've migrated the Linux environment to RHEL 5 so we don't know if the problem remains on Samba.

However, continuing the original discussion, ..

What should happen is a timeout should occur, an error should be raised to the calling application (the publishing service), the application (publishing service) if dependent upon the file I/O should halt at its own discretion, and then when the Windows server comes back up and the application (publishing service) on Linux reattempts to access the path, Samba should reattempt to build the link and either succeed or fail (obviously if Windows is back up, it should succeed).

That is the clean behavior of Windows and network mounted drives. If the server goes down, the network mounted drive will timeout and throw an error. Reattempting later just by double-clicking the drive will rebuild the link without having to re-map the drive or reboot the client machine.
stimpy77 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to mount a drive royeo Redhat / Fedora Linux Help 1 05-06-2007 07:23 PM
How to mount drive royeo Redhat / Fedora Linux Help 1 05-05-2007 08:26 PM
Samba, Web Server, Dual Homed (am I asking for it?) drhiii Servers 12 11-26-2006 01:21 PM
Samba mount delay issue bclark4444 Servers 0 09-07-2006 08:47 PM
linux ip table firewall Notorious Linux Security 1 04-27-2004 12:20 PM




All times are GMT. The time now is 08:14 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0