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.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Samba mount does not drop on timeout

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

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-11-2007   #1 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 18
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)
Just Joined!
 
Join Date: Jul 2007
Posts: 18
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

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:01 AM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2