From: majianpeng <majianpeng@gmail.com>
To: agk@redhat.com
Cc: dm-devel@redhat.com
Subject: How to use dm-cache-target?
Date: Mon, 11 Mar 2013 10:28:07 +0800 [thread overview]
Message-ID: <513D4137.5090503@gmail.com> (raw)
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'
2:mkfs.ext4
mkfs.ext4 /dev/mapper/my_cache
3:mount
mount /dev/mapper/my_cache /media
4:the size of ext4 is 20GB,but the /dev/md0 is 4TB.
I think maybe my methods error. If so, how to do use?
BTW, for dm-cache is it support plug-and-play?
Thanks!
Jianpeng Ma
next reply other threads:[~2013-03-11 2:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-11 2:28 majianpeng [this message]
2013-03-11 10:31 ` How to use dm-cache-target? thornber
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=513D4137.5090503@gmail.com \
--to=majianpeng@gmail.com \
--cc=agk@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.