All of lore.kernel.org
 help / color / mirror / Atom feed
* How to use dm-cache-target?
@ 2013-03-11  2:28 majianpeng
  2013-03-11 10:31 ` thornber
  0 siblings, 1 reply; 6+ messages in thread
From: majianpeng @ 2013-03-11  2:28 UTC (permalink / raw)
  To: agk; +Cc: dm-devel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-12 16:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-11  2:28 How to use dm-cache-target? majianpeng
2013-03-11 10:31 ` 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

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.