All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: BUG in dm/dm-mirror module?
Date: Mon, 13 Aug 2007 12:48:06 -0400	[thread overview]
Message-ID: <46C08B46.8040401@cfl.rr.com> (raw)
In-Reply-To: <45517CCC-7B68-4B0F-92EC-04F4E81CDA0E@redhat.com>

Jonathan Brassow wrote:
> On a different topic, why are you mirroring the log?  Isn't this 
> somewhat dangerous?
> 
> Let's say that the primary copy of the log dies or goes offline.  You 
> continue on because the log device is still "good".  If your machine 
> crashes and the primary log device is "rediscovered" on bootup, what 
> happens?  The contents of the stale side will be copied - resulting in 
> your log not properly reflecting the state of your mirror device and 
> maybe even leaving inconsistencies.

This is a problem with any mirror, not just one holding a mirror log.

> You might argue that we should update the metadata to exclude the failed 
> primary at the point of failure.  Two things come to mind:
> 1) log I/O will continue until you take action - leaving you open to the 
> scenario above
> 2) it would be simpler to just allocate a new log (since you are 
> changing metadata anyway) and initialize the log as "in-sync" if the 
> mirror is already "in-sync".

Yes, once one drive fails, the metadata on the other drive should 
indicate that the mirror is broken and this is now the most up to date 
copy.

  reply	other threads:[~2007-08-13 16:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-11  1:08 BUG in dm/dm-mirror module? malahal
2007-08-11  8:52 ` Milan Broz
2007-08-13 15:18   ` Jonathan Brassow
2007-08-13 16:48     ` Phillip Susi [this message]
2007-08-13 20:18       ` Jonathan Brassow
2007-08-13 21:21         ` Phillip Susi
2007-08-14 15:55         ` malahal
2007-08-13 18:24     ` malahal

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=46C08B46.8040401@cfl.rr.com \
    --to=psusi@cfl.rr.com \
    --cc=dm-devel@redhat.com \
    /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.