dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Heinz Mauelshagen <heinzm@redhat.com>
To: Kumar amit mehta <gmate.amit@gmail.com>
Cc: dm-devel@redhat.com
Subject: Re: dm-cache: dirty state of blocks in writethrough mode
Date: Thu, 25 Jul 2013 12:45:31 +0200	[thread overview]
Message-ID: <51F101CB.20900@redhat.com> (raw)
In-Reply-To: <20130724130220.GC6963@gmail.com>


On 07/24/2013 03:02 PM, Kumar amit mehta wrote:
> On Wed, Jul 24, 2013 at 07:05:59PM +0200, Heinz Mauelshagen wrote:
>> dm-cache maintains it's own metadata keeping track of any cached
>> blocks properties
>> such as a block being dirty in case of writeback.
>>
>> If any write in writeback mode hits a cache block, the cache metadata will
>> reflect that dirty state before the write's being reported to the
>> application.
>>
>> After a crashed system rebooted, that information is available to flush a
>> dirty block out on eviction.
> Ahh, so It is the metadata device. Maybe overkill, but is it
> possible to keep redundant copies of this metadata, like user space
> utilities such as LVM2 does?

You can set up a mirrored metadata device to be resilient against SSD 
failures.

Plus you can take metadata snapshots at arbitrary points in time;
see the targets kernel documentation in thin-provisioning.txt for this
and the recent thin_dump support metadata snapshots  in the rawhide
device-mapper-persistent-data package.

Either is subject to future LVM2 support and isn't supported as yet.

Heinz

>
> !!amit

  reply	other threads:[~2013-07-25 10:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-23  6:44 dm-cache: dirty state of blocks in writethrough mode Vijarnia, Anil
2013-07-23 13:26 ` Heinz Mauelshagen
2013-07-24 10:24   ` Kumar amit mehta
2013-07-24 17:05     ` Heinz Mauelshagen
2013-07-24 13:02       ` Kumar amit mehta
2013-07-25 10:45         ` Heinz Mauelshagen [this message]
2013-07-26  2:45           ` Kumar amit mehta
2013-07-26 11:14             ` Heinz Mauelshagen

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=51F101CB.20900@redhat.com \
    --to=heinzm@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=gmate.amit@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 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).