Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Erik Persson (eripe@ikp.liu.se)
Subject: Re: automount
Date: 1996/04/18	[thread overview]
Message-ID: <t0lojuh096.fsf@ravel.ikp.liu.se> (raw)
In-Reply-To: 316C8ADC.2225@ona.gov.au

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 2696 bytes --]

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




  reply	other threads:[~1996-04-18  4:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-11  4:00 automount ONA Library
1996-04-18  4:00 ` Erik [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-10-17  4:00 Automount Scott Owens
1996-10-18  4:00 ` Automount Eric Werme
1996-10-21  4:00   ` Automount Paul M. Aoki
1996-10-24  4:00     ` Automount Eric Werme
1996-10-18  4:00 ` Automount WEILL Philippe
1996-10-20  4:00   ` Automount Thilo Kielmann
1996-10-25  4:00 ` Automount Pang Wai Man Raymond
1999-06-10  4:00 automount Jeroen Berning
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox