All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: Akira Hayakawa <ruby.wktk@gmail.com>
Cc: device-mapper development <dm-devel@redhat.com>
Subject: Re: A target for hotswap?
Date: Mon, 4 May 2015 12:06:39 -0400	[thread overview]
Message-ID: <20150504160639.GA1493@redhat.com> (raw)
In-Reply-To: <55474BEE.1090402@gmail.com>

On Mon, May 04 2015 at  6:37am -0400,
Akira Hayakawa <ruby.wktk@gmail.com> wrote:

> Hi,
> 
> Some DM target requires additional device that could be a single point of failure.
> Let's consider dm-cache.
> dm-cache requires a HDD and a SSD and if SSD is dead, the data is lost.
> To protect from this, SSD can be built RAID. But RAID isn't an ideal solution with SSD
> because the devices can be dead at the same time. Cost is the another problem of course.
> 
> So, let's think about hotswap.
> A hotswap device has an active device and multiple ready devices.
> The active device is usually used and when the device is ordered to swap by
> a ready device it starts to sync the two devices and change the active device
> when sync is over. It's not simply dd-ing the devices because I/O isn't suspended and
> not all region is necessarily copied.
> You can order swapping whenever you like to. For example, swapping every week can be
> double the longevity of the cache device.
> 
> I don't know how I can do this with DM targets.
> Do other part of linux technologies have such functinality? Please teach me if so.

You could probably use lvm2's pvmove (it uses old dm-mirror target to swap over).

  reply	other threads:[~2015-05-04 16:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04 10:37 A target for hotswap? Akira Hayakawa
2015-05-04 16:06 ` Mike Snitzer [this message]
2015-05-06  1:34   ` Akira Hayakawa

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=20150504160639.GA1493@redhat.com \
    --to=snitzer@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=ruby.wktk@gmail.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.