From: thornber@redhat.com
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: How to use dm-cache-target?
Date: Mon, 11 Mar 2013 10:31:53 +0000 [thread overview]
Message-ID: <20130311103152.GA5038@raspberrypi> (raw)
In-Reply-To: <513D4137.5090503@gmail.com>
On Mon, Mar 11, 2013 at 10:28:07AM +0800, majianpeng wrote:
> Hi all,
> I am trying to use dm-cache-target on raid5.But i met a question.
>
> Supposed: /dev/sdb1(5GB) is metadata; /dev/sdb2(20GB) is cache;/dev/md0 is raid5.
>
> 1:sutup my_cache
> dmsetup create my_cache --table '0 41943040 cache /dev/sdb1 /dev/sdb2 /dev/md0 131072 1 writethrough default 0'
41943040 - This is 20G, you should use the size of /dev/md0 in sectors
Also I think your block size is way too big, try 2048 rather tha 131072.
> BTW, for dm-cache is it support plug-and-play?
No idea what you mean.
- Joe
next prev parent reply other threads:[~2013-03-11 10:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-11 2:28 How to use dm-cache-target? majianpeng
2013-03-11 10:31 ` thornber [this message]
2013-03-11 17:04 ` Darrick J. Wong
2013-03-11 17:11 ` Zdenek Kabelac
2013-03-12 13:27 ` thornber
2013-03-12 16:56 ` Darrick J. Wong
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=20130311103152.GA5038@raspberrypi \
--to=thornber@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.