linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.com>
To: Karsten Hohmeier <karsten@hohmatik.de>, linux-nfs@vger.kernel.org
Subject: Re: Un-unmountable NFS mountpoints with "Stale NFS file handle" - is this normal behavior?
Date: Thu, 01 Sep 2016 18:09:50 +1000	[thread overview]
Message-ID: <87a8fsca7l.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <b0e2b37b-5d90-ea9c-46e9-be577c4da634@hohmatik.de>

[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]

On Sun, Aug 21 2016, Karsten Hohmeier wrote:

> Dear NFS list members,
>
> I recently contacted a few active NFS devs with an issue i ran into:
>
> We run a XenServer 6.5 (Kernel 3.10) with an older version of nfs-utils
> (1.0.9). NFS mountpoints on that machine acting as a client can not be
> unmounted (not even forcibly or lazy) after the connection to the NFS
> server broke for some reason.
>
> Most commands fail with "Stale NFS file handle".
>
> The Internet tells me this situation is unfixable and requires a reboot
> of the client to resolve. This is a pretty bad solution on a heavily
> loaded virtualization host.
>
> The response of Bruce Fields was: "Sounds like normal behavior, ..."
> (Sorry for not posting to the list in the first place, btw.)
>
> I'm still looking for some explanation why this happens, how it can be
> considered "normal behavior" and if it can be fixed/avoided/mitigated
> without rebooting.

This was fixed 3 years ago in Linux 3.12

Commit: 8033426e6bdb ("vfs: allow umount to handle mountpoints without revalidating them")

(and probably a few other related patches).

You need to be sure you have a version of util-linux where "umount -f"
and "umount -l" don't stat() the mount point.

NeilBrown

>
> Best regards
>
> Karsten Hohmeier
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

  reply	other threads:[~2016-09-01  8:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-20 19:03 Un-unmountable NFS mountpoints with "Stale NFS file handle" - is this normal behavior? Karsten Hohmeier
2016-09-01  8:09 ` NeilBrown [this message]
2016-09-01 19:07   ` Karsten Hohmeier

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=87a8fsca7l.fsf@notabene.neil.brown.name \
    --to=neilb@suse.com \
    --cc=karsten@hohmatik.de \
    --cc=linux-nfs@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).