From: Mikhail Pershin <Mikhail.Pershin@Sun.COM>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] Recovering opens by reconstruction
Date: Sat, 04 Jul 2009 11:10:41 +0400 [thread overview]
Message-ID: <op.uwi7j3uaatmt0c@garden> (raw)
In-Reply-To: <20090703215528.GY15302@Sun.COM>
On Sat, 04 Jul 2009 01:55:28 +0400, Nicolas Williams
<Nicolas.Williams@sun.com> wrote:
> On Fri, Jul 03, 2009 at 11:02:16PM +0400, Mikhail Pershin wrote:
>
> They've been seen, indeed, but when replayed not all the same
> permissions checks may be done, so the server needs to know that the
> replay is safe to process. There's two ways to do that: never skip any
> permissions checks when processing replayed RPCs, or have the server
> sign replayable RPCs so the server can know validate any replays. I've
> not looked at a complete list of checks that are skipped on replays --
> perhaps we should have such a list before we go down the replay
> signature path.
OK, so it is not about fake/malformed client only, that is interesting, is
there any preliminary arch/hld document describing that? I am interesting
in more backgrounds if any
> In my proposal open state recovery for opens associated with completed
> transactions would always be done by generating new anonymous open by
> FID RPCs (not replayed ones).
Well, I see no difference yet. Currently all open 'replays' are passed
right to open_by_fid(), open file and create mfd structure for it, so it
is the same on server side at least. Did I miss something?
>> >Open recovery must precede uncommitted transaction recovery so as to
>> >ensure that open state is re-established before unlinks can be replayed
>> >that would cause the file to be destroyed.
>>
>> That requires the server shouldn't start replays from all clients until
>> 'open recovery' is finished from all of them. In fact there is another
>
> Correct.
That is more regression than benefit, having such kind of 'barrier' during
recovery leads to longer recovery with not balanced server load. There are
couple improvements on the way already to make recovery of each client
more independent from others if possible, e.g. the transaction-based
recovery can be replaced with version-based only. So adding new barriers
is not good case in this terms
>> solution for open-unlink problem that was implemented in 1.8. During
>> recovery the unlink replay doesn't delete file but makes it orphan even
>> if
>> open count is 0. After recovery orphans are cleaned up already, so open
>> replay after unlink will find orphan and open it.
>
> That idea did cross my mind. The MDS would have to keep a list of such
> unlinks so it can drop their open count if they truly aren't open. That
> seems like a extra work that the MDS shouldn't have to do.
There is already such mechanism on MDS to handle open-unlink cases. MDS
keeps orphaned files while they are opened and deletes all non-reopened
after recovery. We can just use this mechanism during recovery moving
unlinked files to orphans. It work so already in 1.8 and should be even
simpler in 2.0 due to FIDs. There are extra checks only, no need to keep
extra list or so. I think this is preferable way to go because we avoid
'barriers' in recovery mentioned above
--
Mikhail Pershin
Staff Engineer
Lustre Group
Sun Microsystems, Inc.
next prev parent reply other threads:[~2009-07-04 7:10 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 22:39 [Lustre-devel] Recovering opens by reconstruction Nicolas Williams
2009-07-03 19:02 ` Mikhail Pershin
2009-07-03 21:55 ` Nicolas Williams
2009-07-04 0:48 ` Nicolas Williams
2009-07-04 7:14 ` Mikhail Pershin
2009-07-04 7:10 ` Mikhail Pershin [this message]
2009-07-06 17:34 ` Nicolas Williams
2009-07-06 22:42 ` Nicolas Williams
2009-07-07 9:56 ` Alex Zhuravlev
2009-07-07 14:38 ` Andreas Dilger
2009-07-08 6:46 ` Alex Zhuravlev
2009-07-07 16:03 ` Nicolas Williams
2009-07-07 13:56 ` Mikhail Pershin
2009-07-07 15:21 ` Andreas Dilger
2009-07-07 16:42 ` Mikhail Pershin
2009-07-07 16:50 ` Nicolas Williams
2009-07-07 16:14 ` Nicolas Williams
2009-07-08 17:15 ` Alex Zhuravlev
2009-07-06 17:20 ` Nicolas Williams
2009-07-06 22:37 ` Nicolas Williams
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=op.uwi7j3uaatmt0c@garden \
--to=mikhail.pershin@sun.com \
--cc=lustre-devel@lists.lustre.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.