All of lore.kernel.org
 help / color / mirror / Atom feed
* dead lock (autofs and/or mount)
@ 2006-11-03 17:07 cedric briner
  2006-11-03 18:56 ` Jeff Moyer
  2006-11-04  1:50 ` Ian Kent
  0 siblings, 2 replies; 6+ messages in thread
From: cedric briner @ 2006-11-03 17:07 UTC (permalink / raw)
  To: autofs

sarge
autofs-4.1.3
mount-2.12p
uname -r : 2.6.8-3-686

hello,
I'm having such difficulties between the mount and the autofs package.
When autofs want to mount a resource which is not available, i get into 
this situation:

in my situation a nested mount in unavailable!

# ps -efH

root      4588     1  0 Oct25 ?        00:00:00   /usr/sbin/automount
--pid-file=/var/run/autofs/_home_photom.pid --timeout=300 --ghost
/home/photom yp auto_home_photom

root     21442  4588  0 13:41 ?        00:00:00     /usr/sbin/automount
--pid-file=/var/run/autofs/_home_photom.pid --timeout=300 --ghost
/home/photom yp auto_home_photom

root     21444 21442  0 13:41 ?        00:00:00       [mount] <defunct>

root     21450     1  0 13:41 ?        00:00:00   mount --
obssb13:/export/diskA2/backup/carrier


# ypcat -k auto_home_photom | grep carrier
carrier -bg / obssb6:/export/diskA1/& /unsaved obssb6:/export/diskA2/&
  /backup obssb13:/export/diskA2/backup/&

do you have any idea how I can surpass such situation

thanks.

Ced

-- 

Cedric BRINER
Geneva - Switzerland

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

* Re: dead lock (autofs and/or mount)
  2006-11-03 17:07 dead lock (autofs and/or mount) cedric briner
@ 2006-11-03 18:56 ` Jeff Moyer
  2006-11-04  1:51   ` Ian Kent
  2006-11-04  1:50 ` Ian Kent
  1 sibling, 1 reply; 6+ messages in thread
From: Jeff Moyer @ 2006-11-03 18:56 UTC (permalink / raw)
  To: cedric briner; +Cc: autofs

==> Regarding [autofs] dead lock (autofs and/or mount); cedric briner <work@infomaniak.ch> adds:

work> # ypcat -k auto_home_photom | grep carrier
work> carrier -bg / obssb6:/export/diskA1/& /unsaved obssb6:/export/diskA2/&
work>   /backup obssb13:/export/diskA2/backup/&

Never ever use the "-bg" option in an automount map.  Ian, do we filter
that out in the new code?  If not, I'll make a note on my TODO list.

-Jeff

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

* Re: dead lock (autofs and/or mount)
  2006-11-03 17:07 dead lock (autofs and/or mount) cedric briner
  2006-11-03 18:56 ` Jeff Moyer
@ 2006-11-04  1:50 ` Ian Kent
  2006-11-07  8:35   ` cedric briner
  1 sibling, 1 reply; 6+ messages in thread
From: Ian Kent @ 2006-11-04  1:50 UTC (permalink / raw)
  To: cedric briner; +Cc: autofs

On Fri, 2006-11-03 at 18:07 +0100, cedric briner wrote:
> sarge
> autofs-4.1.3
> mount-2.12p
> uname -r : 2.6.8-3-686
> 
> hello,
> I'm having such difficulties between the mount and the autofs package.
> When autofs want to mount a resource which is not available, i get into 
> this situation:
> 
> in my situation a nested mount in unavailable!
> 
> # ps -efH
> 
> root      4588     1  0 Oct25 ?        00:00:00   /usr/sbin/automount
> --pid-file=/var/run/autofs/_home_photom.pid --timeout=300 --ghost
> /home/photom yp auto_home_photom
> 
> root     21442  4588  0 13:41 ?        00:00:00     /usr/sbin/automount
> --pid-file=/var/run/autofs/_home_photom.pid --timeout=300 --ghost
> /home/photom yp auto_home_photom
> 
> root     21444 21442  0 13:41 ?        00:00:00       [mount] <defunct>
> 
> root     21450     1  0 13:41 ?        00:00:00   mount --
> obssb13:/export/diskA2/backup/carrier
> 
> # ypcat -k auto_home_photom | grep carrier
> carrier -bg / obssb6:/export/diskA1/& /unsaved obssb6:/export/diskA2/&
>   /backup obssb13:/export/diskA2/backup/&

Don't use -bg.

How can autofs mount all entries of a multi-mount, with potential
nesting, if a mount operation is put into background. When a mount
operation is put into the background mount returns success which may not
actually true.

This is a sure way to break multi-mounts such as you are using here.

Ian

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

* Re: dead lock (autofs and/or mount)
  2006-11-03 18:56 ` Jeff Moyer
@ 2006-11-04  1:51   ` Ian Kent
  0 siblings, 0 replies; 6+ messages in thread
From: Ian Kent @ 2006-11-04  1:51 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: autofs

On Fri, 2006-11-03 at 13:56 -0500, Jeff Moyer wrote:
> ==> Regarding [autofs] dead lock (autofs and/or mount); cedric briner <work@infomaniak.ch> adds:
> 
> work> # ypcat -k auto_home_photom | grep carrier
> work> carrier -bg / obssb6:/export/diskA1/& /unsaved obssb6:/export/diskA2/&
> work>   /backup obssb13:/export/diskA2/backup/&
> 
> Never ever use the "-bg" option in an automount map.  Ian, do we filter
> that out in the new code?  If not, I'll make a note on my TODO list.

Yep. That was in the initial patch set merged into git for 4.1.5.

Ian

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

* Re: dead lock (autofs and/or mount)
  2006-11-04  1:50 ` Ian Kent
@ 2006-11-07  8:35   ` cedric briner
  2006-11-07 14:09     ` Peter Staubach
  0 siblings, 1 reply; 6+ messages in thread
From: cedric briner @ 2006-11-07  8:35 UTC (permalink / raw)
  To: autofs

> Don't use -bg.
> 
I'm not anymore... and it rocks

For the story, we were using this bg option on Solaris, and it perfeclty 
works.

thank you for your _precious_ help !

Ced.

-- 

Cedric BRINER
Geneva - Switzerland

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

* Re: dead lock (autofs and/or mount)
  2006-11-07  8:35   ` cedric briner
@ 2006-11-07 14:09     ` Peter Staubach
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Staubach @ 2006-11-07 14:09 UTC (permalink / raw)
  To: cedric briner; +Cc: autofs

cedric briner wrote:
>> Don't use -bg.
>>
>>     
> I'm not anymore... and it rocks
>
> For the story, we were using this bg option on Solaris, and it perfeclty 
> works.
>
> thank you for your _precious_ help !

Yes, that is because the Solaris automountd ignores the "bg" and "fg"
options.  They weren't correct to use there either, but it was harmless.

       ps

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

end of thread, other threads:[~2006-11-07 14:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 17:07 dead lock (autofs and/or mount) cedric briner
2006-11-03 18:56 ` Jeff Moyer
2006-11-04  1:51   ` Ian Kent
2006-11-04  1:50 ` Ian Kent
2006-11-07  8:35   ` cedric briner
2006-11-07 14:09     ` Peter Staubach

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.