Reco <recovery...@gmail.com> writes: [...]
> And it gone haywire from here. Hehe... thats a good description... > Autofs has a concept of master map ( auto.master(5) ) which can contain > lines referring to either direct or indirect maps ( autofs(5) ). > > /etc/auto.master.d is intended for extending master map, and the files > inside it should contain master map entries, not indirect ones like you > did below. Thanks... and I got that all squared away. [...] Harry wrote >> created /etc/auto.master.d/prj-nfs.autofs like so (as suggested in >> auto.master): >> >> d0 --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/d0 >> dv --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/dv > Reco wrote: > Note that it be simplified to: > > * --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/& I created /etc/auto.nfs and tried that forumulation. Restarted autofs. Nothing gets mounted under (now simplified to /projects in auto.master) /projects when I do ls /projects/d0 or /projects/dv There is a bit of a pause with `ls /projects/dv (or d0) but then I get: ls: cannot access /projects/dv: No such file or directory To clarify my above comments: root # grep -v '^#\|^$' /etc/auto.master /projects /etc/auto.nfs --timeout=180 +dir:/etc/auto.master.d +auto.master root # grep -v '^#\|^$' /etc/auto.nfs * --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/& I also tried this: root # grep -v '^#\|^$' /etc/auto.nfs d0 --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/d0 dv --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/dv A `ls /projects/dv' pauses maybe 10 seconds and returns: ls: cannot access /projects/dv: No such file or directory One question... am I supposed to create the directories /projects/dv /projects/d0 ? It appears from the instructions I've seen that .. no I am not to create those dir... just /projects/. however, I did try it both ways and can report that nothing gets mounted in either test. > Also please note that they give you /etc/auto.net just for your case > (i.e. mounting nfs). Not sure what you mean by `give you'. Do you mean to use as is? I tried: root # grep -v '^#\|^$' /etc/auto.master /projects /etc/auto.net --timeout=180 (Note: It now says `auto.net') +dir:/etc/auto.master.d +auto.master Made sure auto.net is chmod 755 Changed (in auto.net) opts="-fstype=nfs,hard,intr,nodev,nosuid" #opts="-fstype=nfs4,hard,intr,nodev,nosuid,async" To: #opts="-fstype=nfs,hard,intr,nodev,nosuid" opts="-fstype=nfs4,hard,intr,nodev,nosuid,async" Restarted autofs Again, nothing is mounted under /projects/ A `ls /projects/dv (or d0)' returns immediately with output: ls: cannot access /projects/dv: No such file or directory And once again .. to test nfs: mount -t nfs 192.168.1.42:/projects/dv /nfs/dv ls /nfs/dv (Yup... lots of files under here) I'm not able to see what I am doing wrong...