<div class="gmail_quote">On Sat, May 2, 2009 at 8:42 AM, Brandon Colbert <span dir="ltr"><<a href="mailto:colbert.brandon@gmail.com">colbert.brandon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
All,<br><br>I have searched all over the net about setting up AutoFS. I am able to mount the share: manually or through /etc/fstab. Can someone give me a hand? <br><br>My config:<br>Server: NFS share. /home/data <a href="http://192.168.100.0/255.255.255.0(ro)" target="_blank">192.168.100.0/255.255.255.0(ro)</a><br>
<br>Client:<br>auto.master:<br>/misc /etc/auto.misc<br>/net -hosts<br>+auto.master<br><br>auto.misc:<br>data -fstype=nfs,ro server.net:/home/data</blockquote><div><br></div><div>Brandon,</div><div><br>
</div><div>Your auto.misc looks right, but I'd probably change it to:</div><div>data -ro,soft,intr server.net:/home/data</div><div><br></div><div>The soft and intr options make nfs a little nicer on the client, like it can interrupt a process if the nfs server is having issues.</div>
<div><br></div><div>But you didn't tell us the problem. I'm guessing that you're expecting /misc/data to appear after you restart autofs? That's not going to happen with you setup because you're running autofs as a mount resource on demand, so it won't be until you actually try to use the contents of /misc/data that you'll see the mount point created and data available to your system, then, if you're idle for a while and haven't used the data, the directory will be umounted and the mountpoint will go away until you try to access it again. Try running ls /misc/data to see if autofs is working, if you get stuff back, working, if you get "no such file or directory", not working.</div>
<div><br></div><div>If you want autofs to always show you the mounted resource, you want to create a "direct map" with your configuration.</div><div><br></div><div>-Scott</div></div><br>