stuck: mount, umount, fuser, lsof

This is a discussion on stuck: mount, umount, fuser, lsof within the Linux Administration forums, part of the Linux Forums category; Hi! Suddenly several program that query resources stuck: when I run mount, umount, fuser, or lsof, the program just stuck / ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-17-2004
S P Arif Sahari Wibowo
 
Posts: n/a
Default stuck: mount, umount, fuser, lsof

Hi!

Suddenly several program that query resources stuck: when I run mount,
umount, fuser, or lsof, the program just stuck / hangup, no error show up,
just stuck.

Moreover, I cannot kill autofs. Even after I used SIGKILL, nothing happen.

BTW, I found out that accidentally I got to two autofs running, and both
mounted the same smb volume in a machine that was turned off. I turned
that machine back on but it was not helping.

Any idea what happen?
Any idea how to fix it without restarting the system?

Thanks!

--
Stephan Paul Arif Sahari Wibowo
_____ _____ _____ _____
/____ /____/ /____/ /____
_____/ / / / _____/ http://www.arifsaha.com/
Reply With Quote
  #2 (permalink)  
Old 11-17-2004
Dave Uhring
 
Posts: n/a
Default Re: stuck: mount, umount, fuser, lsof

On Tue, 16 Nov 2004 21:50:34 -0500, S P Arif Sahari Wibowo wrote:

> BTW, I found out that accidentally I got to two autofs running, and both
> mounted the same smb volume in a machine that was turned off. I turned
> that machine back on but it was not helping.


It's called a stale mount and the only recourse is reboot.

Do not automount from an unreliable remote system. Automounting from a
Windows system is particularly stupid.

Reply With Quote
  #3 (permalink)  
Old 11-17-2004
S P Arif Sahari Wibowo
 
Posts: n/a
Default Re: stuck: mount, umount, fuser, lsof

On Tue, 16 Nov 2004, Dave Uhring wrote:
> It's called a stale mount and the only recourse is reboot.


Oh well. Actually now that you said it, I remember it happened before.

> Do not automount from an unreliable remote system. Automounting from a
> Windows system is particularly stupid.


Well, in fact I think I used to have more problem before I use autofs,
since I often forgot to umount. Since using autofs, it happen much rarely
(never until now) because it umount automatically.

Thanks!

--
Stephan Paul Arif Sahari Wibowo
_____ _____ _____ _____
/____ /____/ /____/ /____
_____/ / / / _____/ http://www.arifsaha.com/
Reply With Quote
  #4 (permalink)  
Old 11-17-2004
Lawrence DčOliveiro
 
Posts: n/a
Default Re: stuck: mount, umount, fuser, lsof

In article <pan.2004.11.17.03.34.02.872997@yahoo.com>,
Dave Uhring <daveuhring@yahoo.com> wrote:

>On Tue, 16 Nov 2004 21:50:34 -0500, S P Arif Sahari Wibowo wrote:
>
>> BTW, I found out that accidentally I got to two autofs running, and both
>> mounted the same smb volume in a machine that was turned off. I turned
>> that machine back on but it was not helping.

>
>It's called a stale mount and the only recourse is reboot.


I'm surprised that's still true. I thought Linux was more robust than
that, and that the mounts should timeout and eventually unmount
themselves.
Reply With Quote
  #5 (permalink)  
Old 11-17-2004
Bill Unruh
 
Posts: n/a
Default Re: stuck: mount, umount, fuser, lsof

Lawrence DčOliveiro <ldo@geek-central.gen.new_zealand> writes:

]In article <pan.2004.11.17.03.34.02.872997@yahoo.com>,
] Dave Uhring <daveuhring@yahoo.com> wrote:

]>On Tue, 16 Nov 2004 21:50:34 -0500, S P Arif Sahari Wibowo wrote:
]>
]>> BTW, I found out that accidentally I got to two autofs running, and both
]>> mounted the same smb volume in a machine that was turned off. I turned
]>> that machine back on but it was not helping.
]>
]>It's called a stale mount and the only recourse is reboot.

]I'm surprised that's still true. I thought Linux was more robust than
]that, and that the mounts should timeout and eventually unmount
]themselves.

It would be nice. Also umount -f is supposed to free up such stale mounts,
but I have almost never had it work.
It is far too common to have a umount fail. umount -f should force an
unconditional unmount.
Reply With Quote
  #6 (permalink)  
Old 11-18-2004
S P Arif Sahari Wibowo
 
Posts: n/a
Default Re: stuck: mount, umount, fuser, lsof

On Wed, 17 Nov 2004, Lawrence DčOliveiro wrote:
> I'm surprised that's still true. I thought Linux was more robust than
> that, and that the mounts should timeout and eventually unmount
> themselves.


Well, I understand why this is not implemented generally for all kind of
mount, because if the mounted volume is a hardware device, forcing umount
may cause the hardware is broken / corrupted beyond repair. Moreover
different volume may have their own "normal unresponsive time". So
timeout, if any, should be implemented in each module / daemon.

--
Stephan Paul Arif Sahari Wibowo
_____ _____ _____ _____
/____ /____/ /____/ /____
_____/ / / / _____/ http://www.arifsaha.com/
Reply With Quote
  #7 (permalink)  
Old 11-19-2004
Lawrence DčOliveiro
 
Posts: n/a
Default Re: stuck: mount, umount, fuser, lsof

In article <Pine.LNX.4.61.0411181428560.2855@localhost.locald omain>,
S P Arif Sahari Wibowo <arifsaha@yahoo.com> wrote:

>On Wed, 17 Nov 2004, Lawrence DčOliveiro wrote:
>> I'm surprised that's still true. I thought Linux was more robust than
>> that, and that the mounts should timeout and eventually unmount
>> themselves.

>
>Well, I understand why this is not implemented generally for all kind of
>mount, because if the mounted volume is a hardware device, forcing umount
>may cause the hardware is broken / corrupted beyond repair.


But it's probably too late for that hardware anyway, if the machine has
to be rebooted to clear the stale mount. The mount is gone, and there's
no bringing it back. Might as well let the system recover gracefully
from it, why should it suffer from a problem caused by some other piece
of hardware?

>Moreover
>different volume may have their own "normal unresponsive time".


On old MacOS, the AppleShare file service implemented a 2-minute timeout
before deleting the stale mount. I figure that should be enough for most
purposes. Or you could even shorten it in certain cases, if you made it
a parameter of some kind.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:37 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0