All of lore.kernel.org
 help / color / mirror / Atom feed
* automount doesn't expire nested nfs mounts for certain kernel configs
@ 2004-05-09 15:13 mack
  2004-05-10  1:20 ` Ian Kent
  0 siblings, 1 reply; 9+ messages in thread
From: mack @ 2004-05-09 15:13 UTC (permalink / raw)
  To: jmack, autofs

I have 6 similar systems, which automount and auto-expire floppy, zipdisk, cdrom
and nfs 
mounts just fine.

Except 2 of the systems won't umount nested nfs mounts on timeout.
These nfs mounts stay mounted forever. No messages appear the logs
not even messages to indicate that automount has timed out the 
mounts and is trying to umount them.

If I umount the lower dependant nfs mounts, leaving only the top
autofs nfs mount, the top level autofs nfs mount will expire normally.

here is a sample line from the auto.nfs file

routera         -fstype=nfs,soft        / routera:/ /usr routera:/usr /src
routera:/src

Google didn't have any answers when looking through the mailing list
with "autofs expire nested"

The systems are near identical (cloned progressively from each other,
so there will be some differences and some machines get updated more
often, but the differences should be small).

Comparing the kernels of a pair of machines, one of which auto expires
OK and one which doesn't, I find in the file system section

machine that does autoexpire nested nfs mounts

  < > Kernel automounter support
  <M> Kernel automounter version 4 support (also supports v3)

machine that doesn't autoexpire nested nfs mounts

  <M> Kernel automounter support
  <M> Kernel automounter version 4 support (also supports v3)

Re-compiling the kernel/modules on the machine that doesn't work
with the .config for the machine that does work, fixes the problem.
I assume having the first line turned on kills the auto expiration
for nested nfs mounts, but I don't know why.

I guess this is a bug report.

I'm using kernel 2.4.26, libc-2.3.2, gcc 2.95.3, autofs-4.0.0pre10

I can't get the automount from autofs-4.1.2 to load on the machine which 
doesn't autoexpire. automount runs and exits with no process in the ps table, 
no errors in the logs. Running with -d gives a few lines in the log files 
as it fires up, but no error messages. firing up the demon under strace,
looks the same in both cases, as I don't see anything after the fork().

autofs-4.1.2 works fine on the machine without the first module.

Request: Can the install script not overwrite any existing /etc/auto.* 
files please? You can install new ones as auto.*.NEW if you like.

Request: Can automount be loaded without going into demon mode, so that I can 
watch the logs on stdout?

Thanks Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: automount doesn't expire nested nfs mounts for certain kernel configs
  2004-05-09 15:13 automount doesn't expire nested nfs mounts for certain kernel configs mack
@ 2004-05-10  1:20 ` Ian Kent
  2004-05-10 12:28   ` Joseph Mack NA3T
  0 siblings, 1 reply; 9+ messages in thread
From: Ian Kent @ 2004-05-10  1:20 UTC (permalink / raw)
  To: mack; +Cc: autofs

On Sun, 9 May 2004, mack wrote:

> I have 6 similar systems, which automount and auto-expire floppy, zipdisk, cdrom
> and nfs 
> mounts just fine.
> 
> Except 2 of the systems won't umount nested nfs mounts on timeout.
> These nfs mounts stay mounted forever. No messages appear the logs
> not even messages to indicate that automount has timed out the 
> mounts and is trying to umount them.
> 
> If I umount the lower dependant nfs mounts, leaving only the top
> autofs nfs mount, the top level autofs nfs mount will expire normally.
> 
> here is a sample line from the auto.nfs file
> 
> routera         -fstype=nfs,soft        / routera:/ /usr routera:/usr /src
> routera:/src
> 
> Google didn't have any answers when looking through the mailing list
> with "autofs expire nested"
> 
> The systems are near identical (cloned progressively from each other,
> so there will be some differences and some machines get updated more
> often, but the differences should be small).
> 
> Comparing the kernels of a pair of machines, one of which auto expires
> OK and one which doesn't, I find in the file system section
> 
> machine that does autoexpire nested nfs mounts
> 
>   < > Kernel automounter support
>   <M> Kernel automounter version 4 support (also supports v3)

Yes. It loads the autofs4 module.

> 
> machine that doesn't autoexpire nested nfs mounts
> 
>   <M> Kernel automounter support
>   <M> Kernel automounter version 4 support (also supports v3)
> 
> Re-compiling the kernel/modules on the machine that doesn't work
> with the .config for the machine that does work, fixes the problem.
> I assume having the first line turned on kills the auto expiration
> for nested nfs mounts, but I don't know why.

Using autofs-4.0.0 you need to add

alias autofs autofs4

to your modules.conf to ensure that autofs4 gets loaded.

I wasn't aware expire didn't work with the autofs module and v4.

> 
> I guess this is a bug report.
> 

I reccommend using matching autofs and daemon.

> I'm using kernel 2.4.26, libc-2.3.2, gcc 2.95.3, autofs-4.0.0pre10
> 
> I can't get the automount from autofs-4.1.2 to load on the machine which 
> doesn't autoexpire. automount runs and exits with no process in the ps table, 
> no errors in the logs. Running with -d gives a few lines in the log files 
> as it fires up, but no error messages. firing up the demon under strace,
> looks the same in both cases, as I don't see anything after the fork().

Are you actually sending the *.debug to the log?

> 
> autofs-4.1.2 works fine on the machine without the first module.
> 
> Request: Can the install script not overwrite any existing /etc/auto.* 
> files please? You can install new ones as auto.*.NEW if you like.

OK. That bugs me as well.
 
> 
> Request: Can automount be loaded without going into demon mode, so that I can 
> watch the logs on stdout?

Not at the moment.

Ian

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: automount doesn't expire nested nfs mounts for certain kernel configs
  2004-05-10  1:20 ` Ian Kent
@ 2004-05-10 12:28   ` Joseph Mack NA3T
  2004-05-10 12:59     ` raven
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Mack NA3T @ 2004-05-10 12:28 UTC (permalink / raw)
  To: Ian Kent; +Cc: autofs

On Mon, 10 May 2004, Ian Kent wrote:

> > machine that does autoexpire nested nfs mounts
> >
> >   < > Kernel automounter support
> >   <M> Kernel automounter version 4 support (also supports v3)
>
> Yes. It loads the autofs4 module.
>
> >
> > machine that doesn't autoexpire nested nfs mounts
> >
> >   <M> Kernel automounter support
> >   <M> Kernel automounter version 4 support (also supports v3)

Looked at the kernel config help for these options to find that you don't
activate the first option if you want autofs v3 or v4 support. Since the
question is simple, and knew I wanted autofs support, it never occured to
me to read the help. I just said yes to the first option. I didn't know
what the first line did or why there were two lines for autofs. Perhaps I
thought that the first line was core autofs code while the 2nd line was
for v3 and v4.

Here's a suggestion for a fix

   < > Kernel automounter version 1,2 support (incompatible with v3,4)
   < > Kernel automounter version 3,4 support

> Using autofs-4.0.0 you need to add
>
> alias autofs autofs4
>
> to your modules.conf to ensure that autofs4 gets loaded.

autofs4 was loaded

> I wasn't aware expire didn't work with the autofs module and v4.

If you have the first option activated in the kernel config
then
 	expire with _nested_ nfs mounts doesn't work
	automount from autofs-4.1.2 won't load (well, loads and exits)
	automount from autofs-4.0.0pre10 loads OK
	expire with non-nested mounts works fine
fi

> > I can't get the automount from autofs-4.1.2 to load on the machine which
> > doesn't autoexpire. automount runs and exits with no process in the ps table,
> > no errors in the logs. Running with -d gives a few lines in the log files
> > as it fires up, but no error messages. firing up the demon under strace,
> > looks the same in both cases, as I don't see anything after the fork().
>
> Are you actually sending the *.debug to the log?

I was looking in the wrong spot. autofs-4.0.0pre10 on my machine sends the
logs to a file called debug (don't have machine here, so I don't know
what's in syslogd.conf). I expected the logs from autofs-4.1.2 to go to
the same file, but it's being sent to the file "messages". So I found
the output now.

Thanks Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: automount doesn't expire nested nfs mounts for certain kernel configs
  2004-05-10 12:28   ` Joseph Mack NA3T
@ 2004-05-10 12:59     ` raven
  2004-05-10 13:15       ` Joseph Mack NA3T
  0 siblings, 1 reply; 9+ messages in thread
From: raven @ 2004-05-10 12:59 UTC (permalink / raw)
  To: Joseph Mack NA3T; +Cc: autofs

On Mon, 10 May 2004, Joseph Mack NA3T wrote:

> On Mon, 10 May 2004, Ian Kent wrote:
> 
> > > machine that does autoexpire nested nfs mounts
> > >
> > >   < > Kernel automounter support
> > >   <M> Kernel automounter version 4 support (also supports v3)
> >
> > Yes. It loads the autofs4 module.
> >
> > >
> > > machine that doesn't autoexpire nested nfs mounts
> > >
> > >   <M> Kernel automounter support
> > >   <M> Kernel automounter version 4 support (also supports v3)
> 
> Looked at the kernel config help for these options to find that you don't
> activate the first option if you want autofs v3 or v4 support. Since the
> question is simple, and knew I wanted autofs support, it never occured to
> me to read the help. I just said yes to the first option. I didn't know
> what the first line did or why there were two lines for autofs. Perhaps I
> thought that the first line was core autofs code while the 2nd line was
> for v3 and v4.
> 
> Here's a suggestion for a fix
> 
>    < > Kernel automounter version 1,2 support (incompatible with v3,4)
>    < > Kernel automounter version 3,4 support
>

That's not right.

The first option is autofs (aka v3).

As far as I'm aware both should work with basic functionality.
 
> > Using autofs-4.0.0 you need to add
> >
> > alias autofs autofs4
> >
> > to your modules.conf to ensure that autofs4 gets loaded.
> 
> autofs4 was loaded

4.1.0 and above should automatically load the v4 module unless the v3 
module is already loaded.

> 
> > I wasn't aware expire didn't work with the autofs module and v4.
> 
> If you have the first option activated in the kernel config
> then
>  	expire with _nested_ nfs mounts doesn't work
> 	automount from autofs-4.1.2 won't load (well, loads and exits)
> 	automount from autofs-4.0.0pre10 loads OK
> 	expire with non-nested mounts works fine
> fi

autofs-4.0.0-1 was my first release. It added some fixes for submounts. 
pre10 was always a pre-release.

With autofs-4.1.2 add a -d to the master map line and send the log 
fragment.

> 
> > > I can't get the automount from autofs-4.1.2 to load on the machine which
> > > doesn't autoexpire. automount runs and exits with no process in the ps table,
> > > no errors in the logs. Running with -d gives a few lines in the log files
> > > as it fires up, but no error messages. firing up the demon under strace,
> > > looks the same in both cases, as I don't see anything after the fork().
> >
> > Are you actually sending the *.debug to the log?
> 
> I was looking in the wrong spot. autofs-4.0.0pre10 on my machine sends the
> logs to a file called debug (don't have machine here, so I don't know
> what's in syslogd.conf). I expected the logs from autofs-4.1.2 to go to
> the same file, but it's being sent to the file "messages". So I found
> the output now.

Depends on your syslog config.

Different severities may go to different locations.

Unless you add either -v or -d to the master map line you shouldn't see 
much output.

What is in your master map then?
And the map your trying to load?

Ian

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: automount doesn't expire nested nfs mounts for certain kernel configs
  2004-05-10 12:59     ` raven
@ 2004-05-10 13:15       ` Joseph Mack NA3T
  2004-05-10 13:29         ` raven
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Mack NA3T @ 2004-05-10 13:15 UTC (permalink / raw)
  To: raven; +Cc: autofs

On Mon, 10 May 2004 raven@themaw.net wrote:

> > Here's a suggestion for a fix
> >
> >    < > Kernel automounter version 1,2 support (incompatible with v3,4)
> >    < > Kernel automounter version 3,4 support
> >
>
> That's not right.
>
> The first option is autofs (aka v3).

OK, I don't know what's really going on here. I just know that to get what
I want (expiration of nested nfs mounts), I can't have the first one
activated, and you don't find this out till you read the kernel config
help file.

> 4.1.0 and above should automatically load the v4 module unless the v3
> module is already loaded.

no autofs.o, only autofs4.o loaded on my machine.

> With autofs-4.1.2 add a -d to the master map line and send the log
> fragment.

OK, not knowing where to add the -d, I'd put it in the autofs init.d
script with daemonoptions and it seemed to work

Let me set it up here and I'll post some logs (in another posting)

> What is in your master map then?

/nfs	/etc/auto.nfs.machine_name	-bg,intr,suid,nodev

> And the map your trying to load?

I sent a line with my first posting. It was

server	-fstype=nfs,soft	/ server:/ \
				/usr server:/usr \
				/src server:/src

Thanks Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: automount doesn't expire nested nfs mounts for certain kernel configs
  2004-05-10 13:15       ` Joseph Mack NA3T
@ 2004-05-10 13:29         ` raven
  2004-05-10 13:52           ` Joseph Mack NA3T
  2004-05-10 14:17           ` Joseph Mack NA3T
  0 siblings, 2 replies; 9+ messages in thread
From: raven @ 2004-05-10 13:29 UTC (permalink / raw)
  To: Joseph Mack NA3T; +Cc: autofs

On Mon, 10 May 2004, Joseph Mack NA3T wrote:

> 
> > With autofs-4.1.2 add a -d to the master map line and send the log
> > fragment.
> 
> OK, not knowing where to add the -d, I'd put it in the autofs init.d
> script with daemonoptions and it seemed to work

That should work fine.

> 
> Let me set it up here and I'll post some logs (in another posting)
> 
> > What is in your master map then?
> 
> /nfs	/etc/auto.nfs.machine_name	-bg,intr,suid,nodev
> 
> > And the map your trying to load?
> 
> I sent a line with my first posting. It was

Saw that afterward.

I'll check this out but I've been working on this multi mount 
stuff recently and it seemed OK.

Do you have anything running that may be scanning the directories?

The compaq stuff has done this in the past or sometimes gnome destops have 
this problem.

You might like to apply the 4.1.2 patches at the same location you got the 
tar.

> 
> server	-fstype=nfs,soft	/ server:/ \
> 				/usr server:/usr \
> 				/src server:/src
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: automount doesn't expire nested nfs mounts for certain kernel configs
  2004-05-10 13:29         ` raven
@ 2004-05-10 13:52           ` Joseph Mack NA3T
  2004-05-10 14:17           ` Joseph Mack NA3T
  1 sibling, 0 replies; 9+ messages in thread
From: Joseph Mack NA3T @ 2004-05-10 13:52 UTC (permalink / raw)
  To: raven; +Cc: autofs

On Mon, 10 May 2004 raven@themaw.net wrote:

> Do you have anything running that may be scanning the directories?

thought of that. There's nothing I know of that's doing it at 10sec
intervals (my timeout) and I saw nothing with lsof or fuser.  Also didn't
see anything the logs (although didn't regard this as definitive). If
anything was scanning directories, then disabling the first line in the
kernel config wouldn't have fixed it.

> The compaq stuff has done this in the past or sometimes gnome destops have
> this problem.

I use fvwm2 with a pile of xterms. I can't handle the fancy graphics
interfaces.

> You might like to apply the 4.1.2 patches at the same location you got the
> tar.

OK, will go get them

Thanks

Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: automount doesn't expire nested nfs mounts for certain kernel configs
  2004-05-10 13:29         ` raven
  2004-05-10 13:52           ` Joseph Mack NA3T
@ 2004-05-10 14:17           ` Joseph Mack NA3T
  2004-05-10 15:02             ` raven
  1 sibling, 1 reply; 9+ messages in thread
From: Joseph Mack NA3T @ 2004-05-10 14:17 UTC (permalink / raw)
  To: raven; +Cc: autofs

On Mon, 10 May 2004 raven@themaw.net wrote:

> You might like to apply the 4.1.2 patches at the same location you got the
> tar.

are the 2.4.22 patches OK if I'm using 2.4.26?

Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: automount doesn't expire nested nfs mounts for certain kernel configs
  2004-05-10 14:17           ` Joseph Mack NA3T
@ 2004-05-10 15:02             ` raven
  0 siblings, 0 replies; 9+ messages in thread
From: raven @ 2004-05-10 15:02 UTC (permalink / raw)
  To: Joseph Mack NA3T; +Cc: autofs

On Mon, 10 May 2004, Joseph Mack NA3T wrote:

> On Mon, 10 May 2004 raven@themaw.net wrote:
> 
> > You might like to apply the 4.1.2 patches at the same location you got the
> > tar.
> 
> are the 2.4.22 patches OK if I'm using 2.4.26?

Haven't checked 2.4.26.
Would like to hear if it applies cleanly.

Ian

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-05-10 15:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-09 15:13 automount doesn't expire nested nfs mounts for certain kernel configs mack
2004-05-10  1:20 ` Ian Kent
2004-05-10 12:28   ` Joseph Mack NA3T
2004-05-10 12:59     ` raven
2004-05-10 13:15       ` Joseph Mack NA3T
2004-05-10 13:29         ` raven
2004-05-10 13:52           ` Joseph Mack NA3T
2004-05-10 14:17           ` Joseph Mack NA3T
2004-05-10 15:02             ` raven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.