From: malahal@us.ibm.com
To: dm-devel@redhat.com
Subject: Re: [RFC] [PATCH] lvm2: mirroredlog support
Date: Wed, 30 Sep 2009 14:19:52 -0700 [thread overview]
Message-ID: <20090930211952.GA12977@us.ibm.com> (raw)
In-Reply-To: <61B37279-E0E3-4AF6-81AB-82EEE65C1A09@redhat.com>
Jonathan Brassow [jbrassow@redhat.com] wrote:
>
> On Sep 30, 2009, at 11:35 AM, Alasdair G Kergon wrote:
>
>> On Wed, Sep 30, 2009 at 10:50:06AM -0500, Jon Brassow wrote:
>>> As long as we are on the topic of mirror logs (and this is unrelated to
>>> your patch), I'd like to complain about the current behavior of log
>>> allocation vs the log policy. I don't think it should take
>>> 'alloc_anywhere' for a log to be placed on the same disk as one of the
>>> mirror legs... that should be 'alloc_normal'.
>>
>> It was assumed that performance would be better this way, but I have
>> never seen any tests to prove or disprove that. Maybe someone could run
>> some?
>>
>> One way we could handle this is by creating a new policy between
>> NORMAL and ANYWHERE that does this, then renaming the old NORMAL
>> to something else and the new policy to NORMAL.
>
> In addition to performance, I would also think that "preserving hardware"
> might be a minor priority. You don't want to go banging around the heads
> of your hard-drives if you don't have to.
>
> However, the user will get these benefits if they have 1 more device than
> the mirror images they are trying to create... If not, it should naturally
> fall back to allowing the overlap of images and logs.
>
> Inserting a new allocation level is a possibility. I don't think it's
> necessary to solve (what I see as) the problem. Do you have a reason for
> this? (Remember, the change would only affect how mirrors behave with the
> various allocation policies. If the user wanted the old behavior, they
> could get it with ALLOC_CONTIGUOUS.... However, the user would be stupid
> to choose that, because if they have enough disks, they will get
> CONTIGUOUS, and if they don't it would fail... Perhaps they would rather
> have the command fail then allow them to do what they are trying?)
Imagine that I have lots of PVs and only two of them have free space.
When I create a mirror, your proposal could put the log on a PV that
has one of the mirror legs. It is silent! Had it failed, I could have
extended any of the full PVs and re-ran lvcreate. I think I like the
current behaviour for that reason.
I would rather have a system that fail and tell me why it failed rather
than do something that I don't expect!
Maybe, a better failure message is an answer? If such default lvcreate
failures bother someone, he can probably ask for something in lvm.conf
he can set at one time to behave the way you want it.
Thanks, Malahal.
next prev parent reply other threads:[~2009-09-30 21:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-23 3:03 [RFC] [PATCH] lvm2: mirroredlog support malahal
2009-09-23 20:29 ` Jonathan Brassow
2009-09-23 20:44 ` malahal
2009-09-24 5:22 ` Takahiro Yasui
2009-09-30 15:50 ` Jonathan Brassow
2009-09-30 16:35 ` Alasdair G Kergon
2009-09-30 19:48 ` Jonathan Brassow
2009-09-30 21:18 ` Alasdair G Kergon
2009-09-30 21:46 ` Alasdair G Kergon
2009-09-30 21:19 ` malahal [this message]
2009-10-01 0:13 ` malahal
-- strict thread matches above, loose matches on Subject: below --
2008-12-30 0:10 malahal
2008-12-30 0:10 ` malahal
2009-01-19 22:56 ` Takahiro Yasui
2009-01-20 1:54 ` malahal
2009-01-20 22:12 ` Takahiro Yasui
2009-01-20 21:29 ` Takahiro Yasui
2009-01-20 22:14 ` malahal
2009-01-23 19:14 ` Jonathan Brassow
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=20090930211952.GA12977@us.ibm.com \
--to=malahal@us.ibm.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.