In linux, umount has the -l option:

Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and
> cleanup all references to the filesystem as soon as it is not busy anymore.
> (Requires kernel 2.4.11 or later.)


I've used this flag (in conjunction with -f) for this exact situation, and
it's really quite convenient.
OpenBSD doesn't seem to have it, though. Anyone know why?

-Thijs


On 10 September 2015 at 14:31, Dot Yet <dot....@gmail.com> wrote:

> That was a reasonable workaround! Going through the documentation and
> reading a bit, seems "intr" is what I should add to my mount options to
> avoid completely hung processes.
>
> That was helpful, Thanks Dag!
>
> On Wed, Sep 9, 2015 at 6:23 PM, Dag Richards <dagricha...@speakeasy.net>
> wrote:
>
> > I had this happen once before in the long long ago.
> >
> > I wound up creating a new nfs server with an export of the same name.
> > The client was then able to dismount.
> > Certainly a PITA, a reboot though cause for self loathing may be simpler.
> >
> > If you mount from fstab in the future make sure you soft mount it.
> >
> >
> >
> > Dot Yet wrote:
> >
> >> Hello,
> >>
> >> I've a stale nfs mount stuck on one of the client machines. The NFS
> server
> >> was powered down and decommissioned, but the client did not umount the
> nfs
> >> directory beforehand. Is there a way for me to clean up the stale nfs
> >> connection on the client side without restarting the machine? I've tried
> >> umount -f, but that did not help.
> >>
> >> Let me know if there is a simpler way.
> >>
> >> Thanks,
> >> dot.
> >>
> >>
> > --
> > Dag H. Richards  ( no title / no lettres )
> >
> > The first rule of tautology club is the first rule of tautology club.
> >
> > This message may or may not contain proprietary information.
> > Since it is being relayed by SMTP across an unknown number of
> > relays to its destination, using a protocol that is traditionally
> > plain ASCII, it's silly to pretend it is still confidential.
> > If you are not the intended recipient of this message,
> > there is simply nothing I can do about that. Attempting to bind you
> > to some destruction protocol through this windbag sig paragraph is
> > Quixotic at best..

Reply via email to