On 16:02 28 Mar 2002, Patrick Nelson <[EMAIL PROTECTED]> wrote: | I've read through all of docs and all of the man pages and I'm either | retarded (could be) or missing some amount of information to get it working. | | I was trying to take existing nfs exports and use automount as the mounting | process on the client systems. When I run a status of autofs it lists my | configured automounts but when I go to the directory that they suppose to be | mounted on, the dir is empty. | | My auto.master file looks like: | / /etc/auto.netstf | My auto.netstf file looks like: | /home/netstf -rw usrsvr.pn:/home/netstf
Ok. You have the wrong mental image. The auto.master file specifies directories and maps for those directories. For example, mine at home reads like this: /mnt /etc/auto/mnt --timeout 60 /nfs/amadeus /etc/auto/amadeus --timeout 300 /nfs/cerebus /etc/auto/cerebus --timeout 300 /nfs/hyde /etc/auto/hyde --timeout 60 /nfs/janus /etc/auto/janus --timeout 300 /nfs/jekyll /etc/auto/jekyll --timeout 300 /nfs/msdog /etc/auto/msdog --timeout 60 /nfs/pan /etc/auto/pan --timeout 60 Each directory in the auto.master is _entirely_ controlled by the autofs stuff. So you can't put it on / - that would mangle your system. Each directory named here has NFS (or loopback etc) mountpoints _under_ it. For example, my /etc/auto/mnt file (the map for /mnt above) says: cdrom -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom dvd -fstype=udf,ro,nosuid,nodev :/dev/dvd dvdram -fstype=ext2,nosuid,nodev :/dev/dvdram zip -fstype=ext2,nosuid,nodev :/dev/zip floppy -fstype=vfat :/dev/fd0 So: /mnt is controlled by the automounter and /mnt/cdrom is a mountpoint. Second example: janus. The file /etc/auto/janus (the map for /nfs/janus) says: * -soft,intr janus:/& This is a wildcard map, so that references to, say, /nfs/janus/home causes the directory janus:/home to be mounted on /nfs/janus/home. For your example, you'd say: file auto.master: /home /etc/auto.netstf file auto.netstf: netstf -rw usrsvr.pn:/home/netstf Which would cause use of /home/netstf to trigger the mount. However, that means /home is _entirely_ an automount map (no local home dirs). We do this at my work where we have lots of machines which cross mounted home directories, and my homedir there is /home/zapff/cameron (zapff == my workstation, cameron == my login). For your usual Linux box peoples' homes are /home/loginname, which is why the scheme outlined higher up: mountpoints off in /nfs/hostname/... and /home left alone. My home directory is in /home/cameron on amadeus. On janus /home/cameron is a symlink to /nfs/amadeus/home/cameron and it all just works. Does this clarify things for you? -- Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/ We _like_ the starter! Wouldn't have it any other way. If it doesn't grind, take it back to the dealer and make them fix it! - Jon N. Steiger, DoD#1038, <[EMAIL PROTECTED]> _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list