Linux NFS development
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Jack Wang <jack.wang.usish@gmail.com>
Cc: "Martín Cigorraga" <msx@archlinux.us>,
	dahai_tian@usish.com, linux-nfs@vger.kernel.org
Subject: Re: hang problem when umount a nfs point
Date: Wed, 7 Nov 2012 14:01:11 -0500	[thread overview]
Message-ID: <20121107190111.GC7421@fieldses.org> (raw)
In-Reply-To: <CA+res+RhNJT1D0MpdSBJoywemainEJVZKSzG1BxhXTrQ3kQCbw@mail.gmail.com>

On Wed, Nov 07, 2012 at 09:05:51AM +0800, Jack Wang wrote:
> 2012/11/7 Martín Cigorraga <msx@archlinux.us>:
> > On Mon, Nov 5, 2012 at 10:27 PM, Jack Wang <jack.wang.usish@gmail.com>
> > wrote:
> >>
> >> Hi all,
> >>
> >> Anyone who can kindly give some suggestion? or we just put question to
> >> the wrong list?
> >>
> >> Thanks.
> >>
> >> Jack
> >>
> >> 2012/11/1 dahai_tian <dahai_tian@usish.com>:
> >> > Hi all:
> >> >         I mount a local directory to a nfs server. When nfs server is
> >> > stopped
> >> > for some accidental cause, I try to umount the mount point, the umount
> >> > command will hang and 'time out' messages are continually printed in the
> >> > terminal. How can I avoid hanging in this case? BTW, This issue does not
> >> > exist when I changed nfs version from 4 to 3.
> >> >         Look forward to your response, thanks!
> 
> >
> > Hi Jack, use the -l (lazy) switch:
> > # umount -l {your mounted nfs share}
> >
> > Also, I wouldn't recommend 'just to kill' the NFS proces(ses) as it (them)
> > may leave shared memory a mess.
> > (And I would like to see how do you make to mount any NFS share again
> > without booting)
> 
> Thanks Martin for kindly help.
> 
> umount -l did work, but why nfsv3 do not have this problem?

I don't know what it is exactly.  But in general I wouldn't expect
umount to work when the server's unavailable.

--b.

  reply	other threads:[~2012-11-07 19:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-01  8:58 hang problem when umount a nfs point dahai_tian
2012-11-06  1:27 ` Jack Wang
     [not found]   ` <CAJLw8+WJGPiWW6K7UEX72eYdgeYWsDLcoZKNP7V1UvvQGnMxXA@mail.gmail.com>
2012-11-07  1:05     ` Jack Wang
2012-11-07 19:01       ` J. Bruce Fields [this message]
2012-11-08  3:03         ` Jack Wang
2012-11-08 12:27           ` J. Bruce Fields
2012-11-09  1:36             ` Jack Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121107190111.GC7421@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=dahai_tian@usish.com \
    --cc=jack.wang.usish@gmail.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=msx@archlinux.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox