From: malahal@us.ibm.com
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Mirroring implementation
Date: Mon, 27 Jul 2009 06:56:28 -0700 [thread overview]
Message-ID: <20090727135628.GA3782@us.ibm.com> (raw)
In-Reply-To: <29ae894c0907260312m3b2ffb2ex5cbef456f3c49bee@mail.gmail.com>
brem belguebli [brem.belguebli@gmail.com] wrote:
> Hi,
> I have a few questions concerning LVM mirror implementation, and I
> couldn't find any suitable design doc
> I need to setup a dual site ( a few miles between the 2 sites, around 1 ms
> RTD) mirror based cluster system.
You need asynchronous mirroring (remote replication module). This is not
in mainline (not sure if included in the latest RHEL release). The
following comments apply to dm-mirror module that is already in the
mainline.
> - *what is the default behaviour of the mirroring, writing in parallel to
> both mirror legs or serialized ? what about read requests ?
It writes in parallel. Reads from a single device (switches on a device
failure only).
> - for write requests, is the ack returned to the application (thru VFS)
> when the 2 legs are updated or only when the first is updated ?
When two are updated. (you need 'remote replication' module for the
latter behaviour)
> - Is there a way to control it ?
I don't think so.
> - what happens if the log device is lost ?
The mirror stops and a daemon re-allocates the log and the mirror should
be back to business (this depends on your lvm configuration though).
> I saw a post about LVM mirror vs mdadm where it is about the location of
> the mirror log
> ([1]https://www.redhat.com/archives/linux-lvm/2009-July/msg00012.html)
> someone gave the answer that when creating the LV's with --alloc anywhere
> it will auto locate the log on any of the PV's.
> According to what I could read, the --alloc doesn't intend for that, am I
> right ?
Replace your "auto locate" to "allocate the log on any of the PV's".
What is the intention of the "--alloc anywhere" from your reading?
--Malahal.
next prev parent reply other threads:[~2009-07-27 13:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-26 10:12 [linux-lvm] Mirroring implementation brem belguebli
2009-07-27 13:56 ` malahal [this message]
2009-07-27 14:10 ` Lars Ellenberg
2009-07-27 14:45 ` brem belguebli
2009-07-28 12:38 ` Roy Sigurd Karlsbakk
2009-07-28 13:50 ` 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=20090727135628.GA3782@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).