There could be a problem with the script that starts the automounter.
Try running /sbin/automount outside of the init script, something like:

# /etc/init.d/autofs stop
# /sbin/automount /clamscan/master/ file /clamscan/mapfiles/clam-av.map
-t 0 --ghost

On Mon, 2008-01-07 at 14:57 -0600, James Melin wrote:
> My auto.master entry for this is:
>
> /clamscan/master/          /clamscan/mapfiles/clam-av.map    -t 0 --ghost
>
> Originally I had tried : /clamscan/master/          
> /clamscan/mapfiles/clam-av.map    -t 0 -g
>
> that is supposed to be valid. Either way the status from autofs returns 
> expected information
>
> I can try specifying --timeout=0 and see what happens.
>
>
>       /etc/init.d/autofs status
>       Checking for service autofs:                                          
> running
>       Configured Mount Points:
>       ------------------------
>       /usr/sbin/automount /clamscan/master/ file 
> /clamscan/mapfiles/clam-av.map t 0 ghost
>
>       Active Mount Points:
>       --------------------
>       /usr/sbin/automount /clamscan/master/ file 
> /clamscan/mapfiles/clam-av.map t 0 ghost
>
> So I am a little puzzled as to why the behavior is the way it is.
>
>
>
>
>
>              Brad Hinson <[EMAIL PROTECTED]>
>              Sent by: Linux on 390 Port
>              <[email protected]>                                        
>                                                                      To
>                                                                      
> [email protected]
>                                                                               
>                                                                      cc
>              01/07/2008 02:27 PM
>                                                                               
>                                                                 Subject
>                                                                      Re: 
> Automount/autofs and the --ghost option
>                             Please respond to
>                Linux on 390 Port <[email protected]>
>
>
>
>
>
>
>
>
> I set this up based on your config files (RHEL instead of SLES), and it
> works as expected.  The only difference I see is with the arguments
> passed to the automount daemon itself (from 'ps aux' output).
>
> Mine:
> # ps aux | grep automount
> [snip] /usr/sbin/automount --timeout=0 --ghost /mnt/test
> file /etc/clam-av.map
>
> Yours:
> /usr/sbin/automount /clamscan/master/
> file /clamscan/mapfiles/clam-av.map t 0 ghost
>
> Perhaps the 't 0 ghost' is the problem.  Try starting automount by hand
> with '--timeout=0 --ghost' or '-t 0 -g'.  The '-d' debug option is also
> really useful.. usually points right to the problem (but you have to
> configure syslog to capture debug messages first).
>
> hth,
> -Brad
>
> On Mon, 2008-01-07 at 12:56 -0600, James Melin wrote:
> > I'm trying to implement the --ghost option for a particular group of 
> > automounted items but it doesn't seem to work.
> >
> > This is on a SLES 10 system.
> >
> > The auto.master entry reads:
> >
> >       /clamscan/master/          /clamscan/mapfiles/clam-av.map    -t 0 
> > --ghost
> >
> > and the status from autofs shows:
> >
> >       Checking for service autofs:                                          
> > running
> >       Configured Mount Points:
> >       ------------------------
> >       /usr/sbin/automount /clamscan/master/ file 
> > /clamscan/mapfiles/clam-av.map t 0 ghost
> >
> >       Active Mount Points:
> >       --------------------
> >       /usr/sbin/automount /clamscan/master/ file 
> > /clamscan/mapfiles/clam-av.map t 0 ghost
> >
> > but when I go to the directory specified in the map file:
> >
> >       abinodji        -fstype=nfs,soft        
> > zebulon:/clamscan/scanlogs/abinodji
> >       aitkin          -fstype=nfs,soft        
> > lookout:/clamscan/scanlogs/aitkin
> >
> > which if I have this right should be /clamscan/master there are no 
> > directories showing
> >
> >       ingram:/clamscan/master # l
> >       total 4
> >       drwxr-xr-x 2 root root    0 Jan  7 12:48 ./
> >       drwxr-xr-x 5 root root 4096 Jan  7 12:32 ../
> >
> > unless I navigate to it like I would expect in an on-demand fashion
> >
> >       ingram:/clamscan/master # cd aitkin
> >       ingram:/clamscan/master/aitkin # l
> >       total 12
> >       drwxr-xr-x 2 root root 4096 Dec 17 16:42 ./
> >       drwxr-xr-x 3 root root    0 Jan  7 12:51 ../
> >       -rw-r--r-- 1 root root  205 Jan  7 00:35 aitkin.rootdir.log
> >       -rw-r--r-- 1 root root   11 Jan  7 00:01 lastscan.txt
> >       ingram:/clamscan/master/aitkin # df
> >       Filesystem           1K-blocks      Used Available Use% Mounted on
> >       --snip---
> >       lookout:/clamscan/scanlogs/aitkin
> >                             10325728    313984   9487232   4% 
> > /clamscan/master/aitkin
> >
> > So what do I do? According to everything I've read, the ghost option should 
> > display all the mountpoints specified in the map file but it does not
> > appear to work. Any input appreciated.
> >
> > -J
> >
> > ----------------------------------------------------------------------
> > For LINUX-390 subscribe / signoff / archive access instructions,
> > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
> > http://www.marist.edu/htbin/wlvindex?LINUX-390
> --
> Brad Hinson <[EMAIL PROTECTED]>
> Sr. Support Engineer Lead, System z
> Red Hat, Inc.
> (919) 754-4198
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
--
Brad Hinson <[EMAIL PROTECTED]>
Sr. Support Engineer Lead, System z
Red Hat, Inc.
(919) 754-4198

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to