All of lore.kernel.org
 help / color / mirror / Atom feed
* [Lustre-devel] SOM Recovery of open files
@ 2009-01-30 23:32 Andreas Dilger
  2009-01-31  0:51 ` Oleg Drokin
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Dilger @ 2009-01-30 23:32 UTC (permalink / raw)
  To: lustre-devel

Vitaly Fertman wrote:
> Oleg told me yesterday about one feature which seems destroying the
> SOM completely.  If a client is evicted and re-connects, we do not
> re-open files so that client thinks files are opened, whereas MDS
> thinks they are closed.

Right.  This issue has been around for a long time.  There is bug 971
dealing with this issue, about changing open file recovery to work by
generating new "open file" requests instead of saving the RPCs and
handling it at the ptlrpc level.  This is (AFAIK) being done for the
simplified interoperability fixes already.

> Thus MDS has no control over opened files, whereas clients may write
> to them.  To fix this we need at least to disable the file modification
> on clients until files are re-opened.

This is also going to be handled by the LOV EA lock that CEA is working
on for HSM and migration.  If the client is evicted from the MDS it will
have the LOV EA lock cancelled, and all IO will block until a new LOV EA
lock is gotten.

> The re-opening itself could be done by application or by us.  In the
> later case, the recovery mechanism is involved...

This is definitely not an application-level problem, it needs to be
fixed within Lustre.

> it was missed for the recovery, but it is a problem for interoperability
> as well. I remember Eric said that we will evict clients on downgrade
> and he said therefore all the files get closed. however, it seems it
> is not for clients unless we do some extra actions.

Even on upgrade, simplified interoperability will now have the server
requesting that all clients flush their state before the server is shut
down, so that the amount of interoperability needed is minimal.  The only
state that a client cannot completely remove is the open file handles,
so the "replay" of file open will now be driven by the file handles
themselves instead of the "saved RPC" mechanism we use today.  That would
also avoid bugs like 3632, 3633, etc.


Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-03-06 23:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-30 23:32 [Lustre-devel] SOM Recovery of open files Andreas Dilger
2009-01-31  0:51 ` Oleg Drokin
2009-02-01 14:45   ` Vitaly Fertman
2009-02-01 17:24     ` Vitaly Fertman
2009-02-21  0:21       ` Andreas Dilger
2009-02-23 14:56         ` Eric Barton
     [not found]         ` <49B16509.9000409@sun.com>
2009-03-06 19:16           ` [Lustre-devel] layout lock / extent lock interaction Andreas Dilger
2009-03-06 22:59             ` Nathaniel Rutman
2009-03-06 23:48               ` Andreas Dilger

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.