hi simon

> I'm trying to set up autofs' capability to do submounts. Is there any
> way to mount hosts under /hosts, and under the hostname, the exported
> filesystems, eg
> 
> /hosts/host1/shared_data1/
> /hosts/host1/shared_data2/
> /hosts/host45/shared_data/

try the following on each host:

/etc/auto.master looks like:
    /hosts       /etc/auto.hosts --timeout 60

/etc/auto.hosts looks like:
    host1        -fstype=nfs    host1:/shared_data1

restart autofs

-----------------------

and try ( per prev other posts)

/etc/auto.master:
    /net    /etc/auto.net

/etc/auto.net
    *       -fstype=autofs,-Dhost=&         file:/etc/auto.netsub

/etc/auto.netsub
    *                                       ${host}:/disk/&

have fun
alvin

> I already have ~40 Silicon Graphics machines that automount under
> /hosts, and I'd like to have the capability to seamlessly integrate my
> linux boxes the same way, preferably without changing the setup of the
> SGI machines in any way, and without maintaining a database of exports.
> Is this do-able?
> 
> Simon
> -- 
> /* "C makes it easy to shoot yourself in the foot.  C++ makes */
> /* it harder, but when you do, it blows away your whole leg." */
> /*   -- Bjarne Stroustrup                                     */
> /* Simon Burley, Double Negative Ltd, London.                 */
> 

Reply via email to