linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Martin Hicks <mort@bork.org>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: NeilBrown <neilb@suse.de>, linux-nfs@vger.kernel.org
Subject: Re: server mountpoint busy after unexporting nfs4 share
Date: Thu, 22 Aug 2013 09:44:26 -0400	[thread overview]
Message-ID: <CAJUS3XkJjGxevUi3gLZACdfQXLhar7qxrnNgE3ogAuyMZrFt-w@mail.gmail.com> (raw)
In-Reply-To: <20130821112700.GD25198@fieldses.org>

On Wed, Aug 21, 2013 at 7:27 AM, J. Bruce Fields <bfields@fieldses.org> wrote:
> On Wed, Aug 21, 2013 at 12:43:43PM +1000, NeilBrown wrote:
>> On Fri, 16 Aug 2013 17:12:18 -0400 "J. Bruce Fields" <bfields@fieldses.org>
>> wrote:
>>
>> > On Thu, Aug 15, 2013 at 12:04:33PM -0400, Martin Hicks wrote:
>> > > I'm wondering if I'm missing something or if this is a bug.
>> > >
>> > > A NFS4 export has active clients.  The mount is removed from
>> > > /etc/exports and 'exportfs -r' is run.  Clients immediately start
>> > > getting 'Stale file handle' errors, but the mountpoint is still busy
>> > > and cannot be unmounted.  Killing off nfsd solves the problem, but is
>> > > undesirable for obvious reasons.
>> > >
>> > > On debian linux, kernel version 3.10-2-amd64,  with nfs-utils 1.2.8.
>> >
>> > Yeah, the clients may hold opens or locks on the filesystem and those
>> > don't get removed on exports -r.
>> >
>> > For now shutting down the server is the only solution.
>>
>> How far does:
>>   echo /path/to/export > /proc/fs/nfsd/unlock_filesystem
>> get you? Or does that just drop 'lockd' locks and not NFSv4 locks?
>
> Right, it just does lockd locks.  It should also do NFSv4 locks, opens,
> and delegations.  Happy if somebody wants to finish that job off--it
> probably wouldn't be too hard?  Although there may be a bit of work to
> get the error returns right in the v4 case--I think we'd want to keep
> the relevant stateid's around and return NFS4ERR_ADMIN_REVOKED when a
> client continues to use them.

I don't have the bandwidth to take this on right now, but I may in the future.
Thanks for your help,
mh

-- 
Martin Hicks P.Eng.      |         mort@bork.org
Bork Consulting Inc.     |   +1 (613) 266-2296

      reply	other threads:[~2013-08-22 13:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-15 16:04 server mountpoint busy after unexporting nfs4 share Martin Hicks
2013-08-16 21:12 ` J. Bruce Fields
2013-08-19 15:55   ` Martin Hicks
2013-08-19 18:42     ` J. Bruce Fields
2013-08-20 17:49       ` Martin Hicks
2013-08-21  2:43   ` NeilBrown
2013-08-21 11:27     ` J. Bruce Fields
2013-08-22 13:44       ` Martin Hicks [this message]

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=CAJUS3XkJjGxevUi3gLZACdfQXLhar7qxrnNgE3ogAuyMZrFt-w@mail.gmail.com \
    --to=mort@bork.org \
    --cc=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neilb@suse.de \
    /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).