Hi Alvin,
Here are the contents of the auto.master, auto.misc, auto.nfs, auto.nfssub,
and /etc/exports.
All machines on the network contain the sio_files directory and have an
identical /etc/exports file which exports /.
Thanks,
Andrew
<snip>
auto.master
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/misc /etc/auto.misc --timeout=60
/nfs /etc/auto.nfs
/etc/exports
/ *(rw,root_squash)
auto.nfs
* -fstype=autofs,-Dhost=& file:/etc/auto.nfssub
auto.nfssub
* ${host}:/&
auto.misc
# $Id: auto.misc,v 1.2 1997/10/06 21:52:04 hpa Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
kernel -ro,soft,intr ftp.kernel.org:/pub/linux
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
# the following entries are samples to pique your imagination
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Andrew Moore" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 6:19 PM
Subject: Re: automount root-level symlink
>
> hi andrew
>
> what is the contents of:
>
> your local PC
> pc:/etc/auto.master and files it reference ( auto.misc ? )
>
> do you have /nfs directory
>
> remote machine with the sio_files
> remote:/etc/exports
>
>
> thanx
> alvin
> http://www.linux-Consulting.com/AutoFS/autofs-howto.html
>
> On Tue, 5 Jun 2001, Andrew Moore wrote:
>
> > Hi everyone,
> >
> > I am new to the list. I have a question about automount on
> > a root-level symlink on the local node.
> >
> > At / I have the following:
> >
> > export
> > sio_files -> export/etms7/sio_files
> >
> > When I attempt the following:
> >
> > ls -alp /nfs/mdw(my local machine name)/sio_files
> >
> > I receive an error stating that the directory does not exist.
> > Subsequent attempts show the following:
> >
> > /nfs/mdw/sio_files -> /sio_files
> >
> > I see from the log files that the automounter attempted a
> > mount --bind which failed but then successfully created
> > a symbolic link.
> >
> > The follwing command:
> >
> > /nfs/mdw/export
> >
> > always succeeds without error and an actual mount is performed
> > instead of a symbolic link.
> >
> > Shouldn't a success status be returned whether a symbolic link is
> > created or an actual mount --bind is completed? Will this work
> > with symbolic links?
> >
> > I am enclosing a snippet of my /var/log/messages.
> >
> > Thank you for your assistance.
> >
> > Andrew Moore
> > e-mail: [EMAIL PROTECTED]
> >
> > <snip>
> >
> > /*Attempting /nfs/mdw/sio_files where sio_files is a symlink to
> > /export/etms7/sio_files.
> >
> >
> > Jun 5 13:49:26 mdw automount[661]: attempting to mount entry /nfs/mdw
> > Jun 5 13:49:26 mdw automount[2527]: lookup(file): looking up mdw
> > Jun 5 13:49:26 mdw automount[2527]: lookup(file):
> > mdw -> -fstype=autofs,-Dhost=& file:/etc/auto.nfssub
> > Jun 5 13:49:26 mdw automount[2527]: expanded
> > entry: -fstype=autofs,-Dhost=mdw file:/etc/auto.nfssub
> > Jun 5 13:49:26 mdw automount[2527]: parse(sun): gathered options:
> > fstype=autofs,-Dhost=mdw
> > Jun 5 13:49:26 mdw automount[2527]: parse(sun): core of entry:
> > file:/etc/auto.nfssub
> > Jun 5 13:49:26 mdw automount[2527]: do_mount file:/etc/auto.nfssub
/nfs/mdw
> > type autofs options -Dhost=mdw using module autofs
> > Jun 5 13:49:26 mdw automount[2527]: mount(autofs): calling mkdir
/nfs/mdw
> > Jun 5 13:49:26 mdw automount[2527]: mount(autofs): fullpath=/nfs/mdw
> > what=file:/etc/auto.nfssub options=-Dhost=mdw
> > Jun 5 13:49:26 mdw automount[2528]: starting automounter version 3.1.7,
> > path = /nfs/mdw, maptype = file, mapname = /etc/auto.nfssub
> > Jun 5 13:49:26 mdw automount[2528]: Map argc = 2
> > Jun 5 13:49:26 mdw automount[2528]: Map argv[0] = /etc/auto.nfssub
> > Jun 5 13:49:26 mdw automount[2528]: Map argv[1] = -Dhost=mdw
> > Jun 5 13:49:26 mdw automount[2528]: mount(bind): Testing if
"mount --bind"
> > works correctly...
> > Jun 5 13:49:26 mdw automount[2528]: mount(bind): calling mount --bind
> > /tmp/autofs-bind-3b1ce366-9e0/dir1 /tmp/autofs-bind-3b1ce366-9e0/dir2
> > Jun 5 13:49:26 mdw automount[2528]: using kernel protocol version 3
> > Jun 5 13:49:26 mdw automount[2527]: mount(autofs): mounted
> > file:/etc/auto.nfssub on /nfs/mdw
> > Jun 5 13:49:26 mdw automount[2528]: attempting to mount entry
> > /nfs/mdw/sio_files
> > Jun 5 13:49:26 mdw automount[2532]: lookup(file): looking up sio_files
> > Jun 5 13:49:26 mdw automount[2532]: lookup(file): sio_files ->
${host}:/&
> > Jun 5 13:49:26 mdw automount[2532]: expanded entry: mdw:/sio_files
> > Jun 5 13:49:26 mdw automount[2532]: parse(sun): core of entry:
> > mdw:/sio_files
> > Jun 5 13:49:26 mdw automount[2532]: mount(nfs): sio_files is local,
doing
> > bind
> > Jun 5 13:49:26 mdw automount[2532]: mount(bind): calling mkdir
> > /nfs/mdw/sio_files
> > Jun 5 13:49:26 mdw automount[2532]: mount(bind): calling mount --bind
> > /sio_files /nfs/mdw/sio_files
> > Jun 5 13:49:26 mdw automount[2532]: >> mount: wrong fs type, bad
option,
> > bad superblock on /sio_files,
> > Jun 5 13:49:26 mdw automount[2532]: >> or too many mounted file
> > systems
> > Jun 5 13:49:26 mdw automount[2532]: mount(bind): failed to mount --bind
> > /sio_files on /nfs/mdw/sio_files, trying symlink
> > Jun 5 13:49:26 mdw automount[2532]: mount(bind): symlinked
> > /nfs/mdw/sio_files -> /sio_files
> >
> >
> > /*Attempting /nfs/mdw/export/etms7/sio_files */
> >
> > Jun 5 15:25:59 mdw automount[661]: attempting to mount entry /nfs/mdw
> > Jun 5 15:25:59 mdw automount[3271]: lookup(file): looking up mdw
> > Jun 5 15:25:59 mdw automount[3271]: lookup(file):
> > mdw -> -fstype=autofs,-Dhost=& file:/etc/auto.nfssub
> > Jun 5 15:25:59 mdw automount[3271]: expanded
> > entry: -fstype=autofs,-Dhost=mdw file:/etc/auto.nfssub
> > Jun 5 15:25:59 mdw automount[3271]: parse(sun): gathered options:
> > fstype=autofs,-Dhost=mdw
> > Jun 5 15:25:59 mdw automount[3271]: parse(sun): core of entry:
> > file:/etc/auto.nfssub
> > Jun 5 15:25:59 mdw automount[3271]: do_mount file:/etc/auto.nfssub
/nfs/mdw
> > type autofs options -Dhost=mdw using module autofs
> > Jun 5 15:25:59 mdw automount[3271]: mount(autofs): calling mkdir
/nfs/mdw
> > Jun 5 15:25:59 mdw automount[3271]: mount(autofs): fullpath=/nfs/mdw
> > what=file:/etc/auto.nfssub options=-Dhost=mdw
> > Jun 5 15:25:59 mdw automount[3272]: starting automounter version 3.1.7,
> > path = /nfs/mdw, maptype = file, mapname = /etc/auto.nfssub
> > Jun 5 15:25:59 mdw automount[3272]: Map argc = 2
> > Jun 5 15:25:59 mdw automount[3272]: Map argv[0] = /etc/auto.nfssub
> > Jun 5 15:25:59 mdw automount[3272]: Map argv[1] = -Dhost=mdw
> > Jun 5 15:25:59 mdw automount[3272]: mount(bind): Testing if
"mount --bind"
> > works correctly...
> > Jun 5 15:25:59 mdw automount[3272]: mount(bind): calling mount --bind
> > /tmp/autofs-bind-3b1cfa07-cc8/dir1 /tmp/autofs-bind-3b1cfa07-cc8/dir2
> > Jun 5 15:25:59 mdw automount[3272]: using kernel protocol version 3
> > Jun 5 15:25:59 mdw automount[3271]: mount(autofs): mounted
> > file:/etc/auto.nfssub on /nfs/mdw
> > Jun 5 15:25:59 mdw automount[3272]: attempting to mount entry
> > /nfs/mdw/export
> > Jun 5 15:25:59 mdw automount[3276]: lookup(file): looking up export
> > Jun 5 15:25:59 mdw automount[3276]: lookup(file): export -> ${host}:/&
> > Jun 5 15:25:59 mdw automount[3276]: expanded entry: mdw:/export
> > Jun 5 15:25:59 mdw automount[3276]: parse(sun): core of entry:
mdw:/export
> > Jun 5 15:25:59 mdw automount[3276]: mount(nfs): export is local, doing
bind
> > Jun 5 15:25:59 mdw automount[3276]: mount(bind): calling mkdir
> > /nfs/mdw/export
> > Jun 5 15:25:59 mdw automount[3276]: mount(bind): calling mount --bind
> > /export /nfs/mdw/export
> > Jun 5 15:25:59 mdw automount[3276]: mount(bind): mounted /export type
bind
> > on /nfs/mdw/export
> >
> > <snip>
> >
> >
>
>