linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: malahal@us.ibm.com
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] LVM mirror resync
Date: Wed, 23 Sep 2009 18:26:48 -0700	[thread overview]
Message-ID: <20090924012648.GB16777@us.ibm.com> (raw)
In-Reply-To: <29ae894c0909230507g70719ab2ga2810256d10ae667@mail.gmail.com>

brem belguebli [brem.belguebli@gmail.com] wrote:
> My questions are:
> 
> 1) Am I using the right method to simulate a drive failure by echoing
> a scsi delete ? How would behave the scsi layer in case a disk came to
> physically disappear ?

You are using a right method. You could pull the cables physically but
it is not going to make any difference to LVM mirror behaviour.

> 2) If the above method is correct, isn't the role of the mirror log to
> keep track of region changes  in case of a drive failure to be able to
> incrementally resync the mirror when the missing drive is back to
> operation?

Yes, but the implementation is not complete yet! Without the mirror
log (corelog), every reboot needs a complete resync. Mirror log is used
to avoid that but nothing more at this point!

>  Missing drive is not replaced, the UUID is the same, the problem
> could have occured at scsi connectivity not on the physical media (SAN
> failure for instance).
> 
> 3) if so, why does disappear the log device from the VG though being
> on a physically present device ?

If you really look at your LV, it is no more a mirror. It is just a
linear LV! So your failed mirror leg as well as your mirror log are not
used. "dmeventd" will remove the failed mirror leg from the VG. It
probably removed the now unused mirror log also.

> 4) when the missing drive is back again,
>     4-1)  why does it appear as not belonging to its original VG ?

Because it was removed from the VG in the first place. The metadata on
other disks is the latest and is used.

>     4-2) why doesn't it get automatically resync'ed by dmeventd ? .

It doesn't know any better! It doesn't know that it was a mirror.

> The recover process seems to be to reconstruct from scratch the mirror
> treating the failed and back again drive as a totally new drive.

Yes! I heard that mdadm (raid1) can do (optimal resyncs) what you want
but I have no direct experience. You may want to try that if you need
this feature.

  reply	other threads:[~2009-09-24  1:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-23 12:07 [linux-lvm] LVM mirror resync brem belguebli
2009-09-24  1:26 ` malahal [this message]
2009-09-24  5:12   ` brem belguebli
2009-09-24  5:47     ` brem belguebli

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=20090924012648.GB16777@us.ibm.com \
    --to=malahal@us.ibm.com \
    --cc=linux-lvm@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 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).