Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have 2 x MacBook Pro's (OSX 10.6.7) that access files stored on a 64-bit and a 32-bit Windows 7 PC.

The MBP clients can connect to the Windows shares and transfer files with no problem.

However, after a day or so, the shares become unresponsive. If you click on the server name under "SHARED" in Finder, you get a "Connecting..." status message. Once this happens neither PC can be accessed.

In Terminal, the network shares show as mounted. If you try to access the mounts, e.g. "ls /Volumes/data", the command hangs and cannot be ctrl/C'd.

The shares cannot be unmounted, eg. sudo umount -f /Volumes/data" hangs as well.

The only way to restore access to the Windows computers is to reboot the MBP's.

Any suggestions on how to prevent this happening, diagnose the cause, or restore service without a reboot would be much appreciated.

share|improve this question
    
FWIW, I get the same thing with Win 7 shares but have no problems with Server 2003 shares. –  John Gardeniers Apr 12 '11 at 1:20
    
Does another protocols work in case of freeze? SSH, http? –  BobC Apr 12 '11 at 8:29
    
@BobC yes can use RDP, ping, PostgreSQL. The mounted SMB file systems have appear to die on the OSX side. Any attempt to access any of the mounted smbfs hangs –  John McC Apr 12 '11 at 9:29
    
John McC, how are your Mac clients establishing the mounts initially -- using the Finder, or hand-editing autofs-related files, or using smbclient? Second, for clarification, do you mean there's a period of, say, a day of inactivity between the Mac clients and PC servers, after which there's a dead/stale connection? Third, are the clocks all correct with little skew, say under five minutes? –  flumignan Apr 24 '11 at 1:28
    
1. mounts are established using finder. 2. I mean that every day or so the SMB (client) stops working. Any attempted use of any SMB network resource (incl other servers) results in a hang. File access, mount, unmount, where through finder or in the shell stop working. I can't see any pattern to it, e.g., length of inactivity. The server shares work fine from other machines. 3. All the machines involved are time sync'd so wouldn't be more than a few seconds apart. –  John McC Apr 25 '11 at 6:01

3 Answers 3

This is probably a bug in samba, Apple is replacing it in 10.7 for just these reasons.

That being said I would assume your connection is dropping and not being re-created. Take a look at this post where users are having similar issues: http://superuser.com/questions/144327/mac-os-cant-connect-to-smb-shares-after-sleep

share|improve this answer

Nope, Apple is replacing Samba in 10.7 because it's GPLv3. (And Apple is avoiding GPL like plague. See, they're also slowly moving away from GCC).

Now, to answer the original question, it seems like the connection is "simply" lost. And as the mounting is done at the kernel level, it can completly hang the machine.

I think your issue comes from a sudden loss of network connectivity. Here's what I would look for :

  • A change of IP address (server or client) : maybe a DHCP lease is expiring ?
  • Maybe some form of WiFi issue if you're over WiFi
share|improve this answer

What do you get when you view shares using smbclient [share] -L in Terminal? Does it hang there as well? Have you checked event viewer on the Windows 7 machine? From my last experiences with configuring SMB for OS X, I had to change some SMB properties on the Windows end to get everything working well.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.