Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No remount option #217

Closed
jhihn opened this issue Jun 22, 2015 · 6 comments
Closed

No remount option #217

jhihn opened this issue Jun 22, 2015 · 6 comments

Comments

@jhihn
Copy link

jhihn commented Jun 22, 2015

I've been using autofs for a while on Linux laptop. I set up my new mac to use autofs in the same way, but found that the option list isn't nearly as long for OSX. One of these key options is remount, which, when the file system times out, will remount it. This is very cool on my laptop as by the time I get it out of the bag at the coffee shop, it's already to go for me. At the office, my internet cuts out a few times during the day. This usually makes me have to reboot OSX. Below is one such loop (repeats forever). I'm theorizing the lack of a reconnect option along with shoddy internet is breaking things.

Jun 22 15:39:25 Jasons-Mac-mini.local automountd[4846]: = mps_limit 0
Jun 22 15:39:25 Jasons-Mac-mini.local automountd[4846]: automountd running
Jun 22 15:39:25 Jasons-Mac-mini.local automountd[4846]: Can't open /dev/autofs: Resource busy
Jun 22 15:39:25 Jasons-Mac-mini com.apple.xpc.launchd[1] (com.apple.automountd[4846]): Service exited with abnormal code: 2
Jun 22 15:39:25 Jasons-Mac-mini com.apple.xpc.launchd[1] (com.apple.automountd): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Jun 22 15:39:35 Jasons-Mac-mini.local automountd[4847]: = mps_limit 0
Jun 22 15:39:35 Jasons-Mac-mini.local automountd[4847]: automountd running
Jun 22 15:39:35 Jasons-Mac-mini.local automountd[4847]: Can't open /dev/autofs: Resource busy
Jun 22 15:39:35 Jasons-Mac-mini com.apple.xpc.launchd[1] (com.apple.automountd[4847]): Service exited with abnormal code: 2
Jun 22 15:39:35 Jasons-Mac-mini com.apple.xpc.launchd[1] (com.apple.automountd): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Jun 22 15:39:45 Jasons-Mac-mini.local automountd[4849]: = mps_limit 0
Jun 22 15:39:45 Jasons-Mac-mini.local automountd[4849]: automountd running
Jun 22 15:39:45 Jasons-Mac-mini.local automountd[4849]: Can't open /dev/autofs: Resource busy
Jun 22 15:39:45 Jasons-Mac-mini com.apple.xpc.launchd[1] (com.apple.automountd[4849]): Service exited with abnormal code: 2
Jun 22 15:39:45 Jasons-Mac-mini com.apple.xpc.launchd[1] (com.apple.automountd): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
@jhihn
Copy link
Author

jhihn commented Jun 30, 2015

So I found the remount option, and I'm using it, but my experience is still horrible.

I use SSHFS on Linux, and it is marvelous and just works. I can walk into a coffee shop and it connects, I can come home and it connects, and is all around fantastic.

My experience with OSX is horrible. In that multiple times a day the mount hangs. I execute a few commands and sometimes it works:
sudo launchctl stop com.apple.autofsd
sudo diskutil unmount force /mnt/ssh/ta

But it usually hangs on the unmount, necessitating reboot.
It is guaranteed though that every morning when I come in I will have to reboot because the mount point is hanging, and those commands don't fix it. I can't say why. I've got the two configs (linux, OSX) as the same as I can (not all options are recognized between the two)

Any pointers in how I can get more resilient performance are appreciated.

@albertyw
Copy link

albertyw commented Oct 8, 2015

I was running into the same problem as you, though with not nearly the same frequency. I've found that umount -f /your/path fixes the hanging mounts for me.

@albertyw
Copy link

albertyw commented Oct 8, 2015

Also, this seems to be a duplicate of #45

@torarnv
Copy link

torarnv commented Jan 12, 2016

So I found the remount option, and I'm using it, but my experience is still horrible.

@jhihn, where did you find the remount option?

@jhihn
Copy link
Author

jhihn commented Jan 13, 2016

I don't have access to that Mac anymore. I'm sorry. I think it's just 'remount' in the mount options. But IIRC, it doesn't work nearly as well as linux. I saw still plagued with daily reboots

@eagle-r
Copy link

eagle-r commented Jan 20, 2016

I'm having a similar issue. I installed yesterday and mounted the remote folder using sshfs with zero issues.

Today when I tried to use it I received a Device not configured error. The only way to fix the problem was to use umount -f and then remount the volume.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants