From: Takahiro Yasui <tyasui@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: [RFC][PATCH 0/4] dm-log: support multi-log devices
Date: Mon, 15 Dec 2008 09:56:57 -0500 [thread overview]
Message-ID: <49467039.6060801@redhat.com> (raw)
In-Reply-To: <ACCFADCE-51D8-4183-803D-32050E3BE436@redhat.com>
Hi Jon,
Thanks for kind comments.
Jonathan Brassow wrote:
> On Nov 25, 2008, at 6:01 PM, Takahiro Yasui wrote:
>> PATCH SET
>> =========
>> 1/4: dm-log: fix no io_client_destroy
>
> definitely, ACK.
>
>> 2/4: dm-log: remove unnecessary updates of io_req members
>
> haven't fully reviewed yet.
>
>> 3/4: dm-log: introduce multi-log devices
>> 4/4: dm-log: update interface to control multi-log devices
>
> No. more follows...
>
>> BACKGROUND
>> ==========
>
> <snip>
>
>> However, once log disk breaks down, data replications are required
>> for a whole data disks, and if a size of data disk is huge, it
>> takes long time
>
> Not entirely true. When the log disk breaks down /and/ the machine
> crashes or reboots, then resynchronization is necessary. However,
> this means that in almost all circumstances, you are immediately able
> to replace the failed disk log with another and maintain the in-sync
> state of the log - avoiding the resync.
>
>> This patch introduces multi-log devices for mirror target, which
>> stores log data on multiple log devices, and decreases probability
>> of disk replication even if one log disk has broken down.
>
> Given what I said above, I'd like to see intelligence added to the
> dmeventd mirror DSO to handle replacing mirror logs done first. There
> is certainly a lot of low lying fruit in that space. However, I can
> see a small benefit to implementing multi-log. Specifically, to
> address the case where a log device dies and is immediately followed
> by a machine failure before corrective action can be taken. IOW, you
> are targeting a very small window of time here.
Yes, as you mentioned, it is a very small window of time. But mirroring
could be used for very critical systems and users would care such
a small window.
In addition, the multi-log feature is efficient and very important
at system booting. It is highly possible that disks get broken.
I think that the current log feature can not save this situation
because there is only one log disk and there is only way to construct
a mirror by "core" log. Then, a whole disk replication will be triggered.
Do you have a good idea to save it, too? If there is, it could be
an another solution of our concern.
> If you choose to take on the multi-log (which it appears you are
> mostly done), then I'd like to see it as a separate module. IOW,
> there should be no code changes to dm-log.c. You would implement a
> new module, named dm-log-multi[ple].ko. The name would be "multi-
> disk". This frees you to have whatever constructor table arguments
> you want. (I've done something similar when creating my cluster-aware
> logging.)
Yes, it is easy to implement the multi-log feature as a separate
module, but there are many common functions for both modules.
For maintainability, I think that those functions should be shared
for both modules instead of being maintained by themselves.
Could you give me any suggestions for sharing common functions?
Thanks,
---
Takahiro Yasui
Hitachi Computer Products (America) Inc.
next prev parent reply other threads:[~2008-12-15 14:56 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-26 0:01 [RFC][PATCH 0/4] dm-log: support multi-log devices Takahiro Yasui
2008-11-26 18:56 ` Phillip Susi
2008-11-27 7:50 ` Takahiro Yasui
2008-11-28 20:06 ` Phillip Susi
2008-12-01 7:00 ` Takahiro Yasui
2008-12-01 11:09 ` Michał Mirosław
2008-12-02 6:05 ` Takahiro Yasui
2008-12-01 16:10 ` Phillip Susi
2008-12-02 4:52 ` Takahiro Yasui
2008-12-12 20:21 ` Jonathan Brassow
2008-12-15 14:56 ` Takahiro Yasui [this message]
2008-12-20 0:13 ` malahal
2008-12-23 0:23 ` Takahiro Yasui
2008-12-23 18:02 ` malahal
2008-12-31 20:15 ` malahal
2009-01-08 18:30 ` Jonathan Brassow
2009-01-08 19:00 ` malahal
2009-01-05 15:44 ` Takahiro Yasui
2009-01-05 16:24 ` malahal
2009-01-05 17:36 ` Takahiro Yasui
2009-01-05 18:44 ` malahal
2009-01-05 18:51 ` Alasdair G Kergon
2009-01-05 22:21 ` Takahiro Yasui
2009-01-05 22:26 ` Takahiro Yasui
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=49467039.6060801@redhat.com \
--to=tyasui@redhat.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.