Alvin Oga <[EMAIL PROTECTED]> writes:
> hi simon
>
> > Will this mean you will be able to mount hostname:/ onto /net/hostname
> > and then hostname:/usr onto /net/hostname/usr ?
>
> it can do that now...
Do you mean by submounting, I have been trying that and it nearly does
what I want. BTW, I can't get the variable definition to work as below:
#
# Sample /etc/auto.net
# ------
* -fstype=autofs,-Dmachine=& file:/etc/auto.net.sub
#
# end of file
#
# Sample /etc/auto.net.sub
# ------
#
* ${machine}:/&
#
# end of file
It ends up mounting the local filesystem:
root@rayleigh:~# dir /try/hartley/usr
lrwxrwxrwx 1 root root 4 Jul 16 13:53 /try/hartley/usr -> /usr/
root@rayleigh:~#
Is there any documentation on the mapfile format for autofs?
> > This would be really useful with the new knfsd which doesn't give
> > access to partitions mounted below / when / is exported. Or do you
> > know of some other way around this?
>
> for autofs.... I kludged it to do /net/hostname...works fine...
> diff /Net/server1/etc/passwd /Net/home1/etc/passwd
> ls -l /Net/*/etc/group
>
> diff /.autofs/server1/etc/passwd /.autofs/home1/etc/passwd
>
> if you have 5 machines or 500.... I'm fairly sure this schem will still
> work.... just need a way to distribute the files to the 500 machines
> and each one has to have a minimum level of tweeks ( autofs_fix.pl for example )
>
snip ...
Thanks, that was the kind of thing I was doing before I upgraded to
RH6.0 and therefore knfsd. I was basically doing a Sun style /net but
listing every host I wanted explicitly.
e.g.
nyquist -posix,soft,intr,nosuid,nodev nyquist.ecs.soton.ac.uk:/
This used to give me access to /net/nyquist/etc/* etc and
/net/nyquist/usr/src/redhat/RPMS/* for example. But now, because knfsd
no longer gives me access to /net/nyquist/usr (because it doesn't
export mounted partitions when the directory they are mounted on has
been exported from a higher level directory), I can't access
/net/nyquist/usr/src/redhat/RPMS anymore.
I have nearly managed to get round it by doing the submounting thing I
mentioned earlier (specifying the host explicitly) but this only gives
me access to partitions etc. mounted off the root directory. So I
still can't access /net/nyquist/mnt/cdrom/* for example.
If I could automount nyquist:/ /net/nyquist/ and then mount
nyquist:/usr onto /net/nyquist/usr I would be happy but then this is a
direct mount isn't it. Hence, my original question.
--
-----------------------------------------------------------------------
| Simon Liddington | |
| E-Mail : [EMAIL PROTECTED] | Tel (work) : +44 (0)1703 592422 |
-----------------------------------------------------------------------