From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,900491c89c31b2e4 X-Google-Attributes: gidfee84,public From: Erik Persson (eripe@ikp.liu.se) Subject: Re: automount Date: 1996/04/18 Message-ID: #1/1 X-Deja-AN: 148072715 sender: erik@ravel.ikp.liu.se references: <316C8ADC.2225@ona.gov.au> content-type: text/plain; charset=us-ascii organization: IKP - Linkoping University mime-version: 1.0 newsgroups: comp.unix.osf.osf1 What you are experiencing is quite normal as the automounter just does what it is told. One way (the in one my opinion easiest and most consistent way is to keep any data you wish to export (and possibly want to automount) in directories separate from the directories you want to use when you access your data. Example: You've got two machines which both exports and mounts data from each other - we can call them "laurel" and "hardy". Laurel could have a disk with home directories which would be physically mounted on /export/home while hardy maybe has a disk with applications (your ordinary everyday /usr/local perhaps?) which would be mounted on /export/local. The /etc/exports files would look something like: On laurel: /export/home -access=laurel:hardy On hardy: /export/local -access=laurel:hardy You now have the option to use the automounter i two different ways by either letting you mount the exported directories directly on their designated mount points (/home and /usr/local are maybe appropriate). This is done by using direct automount maps: /etc/auto.master /- auto.direct /etc/auto.direct /home -rw,nosuid laurel:/export/home /usr/local -rw hardy:/export/local I do not remember if you have to create the /home and /usr/local directories as i myself never use the "direct" method as it has some disadvantages. I use the automounter with indirect maps instead, which can be done in the following way: Create a /mp (or whatever you like to call it) directory and make your automount maps look something like /etc/auto.master: /mp auto.mp /etc/auto.mp home laurel:/export/home local hardy:/export/local Now do 'ln -s /mp/home /' and 'ln -s /mp/local /usr/' (/home and /usr/local must not exist). Why do it with indirect maps instead of with direct maps? Both ways will get the job done and (un)mount/symlink your automounted directories. Practice has shown that the automounter provides greater flexiblity with direct maps - especially if you serve the automount maps via YP. If you change a direct automount map chances are very big that the automounter won't use the new configuration unless you kill it and start it anew. If you use indirect maps it is sufficient to change the map on the YP server (add a new directory to be mounted for example) and run "make" on the YP server to make the automounter use a new configuration. This should also be true for indirect automount maps in /etc but I don't know. Hope this helps /Erik -- Erik Persson, System Manager e-mail: eripe@ikp.liu.se Dept. of Mech. Engineering Voice: +46 13 28 2464 Division of Solid Mechanics Fax: +46 13 21 2717 University of Link�ping, Sweden