about setup of dm-cache

502 views
Skip to first unread message

Encore Deng

unread,
Jun 8, 2013, 5:22:42 AM6/8/13
to dm-c...@googlegroups.com, Tak Ho, Alex Li
Dear all,

I am doing some testing about dm-cache, and meet a problem on setup.

My OS is Centos 5.5, kernel version 2.6.18-194.el5.
And I can only find the kernel source code for 2.6.18, and manually change the extraversion -194.el5

For the dm-cache kernel patch, I select the 2.6.19

I had do make menuconfig to Enable CONFIG_DM, and CONFIG_DM_CACHE.

then make & make modules_install, seems all ok

modprobe dm_mod          ok
modprobe dm_cache, an error occurs

FATAL: Error inserting dm_cache (/lib/modules/2.6.18-194.el5/kernel/drivers/md/dm-cache.ko): Invalid module format

Can anybody point out is it the kernel patch problem or the kernel source code problem?
How I can fix it?

Million thanks.




Dulcardo Arteaga

unread,
Jun 8, 2013, 4:37:19 PM6/8/13
to dm-c...@googlegroups.com, Tak Ho, Alex Li
Hello,

Can you please send the log information printed by "dmesg".

Also please try this patch and see if you have the same problem


-Dulcardo



--
You received this message because you are subscribed to the Google Groups "dm-cache" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dm-cache+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
-Dulcardo

Dulcardo Arteaga

unread,
Jun 9, 2013, 3:56:14 AM6/9/13
to dm-c...@googlegroups.com, Tak Ho, Alex Li
Hello

Try this one:
 
echo 0 1073741824 cache /dev/sdc /dev/sdb 0 8 65536 256 0 foo 100 | dmsetup create foo

This command requires three more parameters
- 0 : write-through policy
- foo: this is a virtual identifier in case you want to share the cache device
- 100: this is the percentage of utilization, for single device 100%.

-Dulcardo



On Sat, Jun 8, 2013 at 10:00 PM, <encor...@bizconline.com> wrote:
Dear Dulcardo,

Thanks, and I can make it in testing/shared-cache/2.6.18 now.

However, when I do the dmsetup, my machine hang.

Here is the command I call
echo 0 1073741824 cache /dev/sdc /dev/sdb 0 8 65536 256 1 | dmsetup create foo

And both sdb & sdc are 1G capacity.

Could you point out the problem I did?

Million thanks.




Dulcardo於 2013年6月9日星期日UTC+8上午4時37分19秒寫道:



--
-Dulcardo

ale...@bizconline.com

unread,
Sep 23, 2013, 5:33:52 AM9/23/13
to dm-c...@googlegroups.com, Tak Ho, Alex Li
Dear Dulcardo Sir,

I am team mate of Encore. As we are now using NBD with dm-cache to cache a remote network block device. When network unstable, the dm-cache will be hanged and nothing can be done to resume the write activities. Any idea?

thanks.
AlexLi

Dulcardo於 2013年6月9日星期日UTC+8下午3時56分14秒寫道:
Reply all
Reply to author
Forward
0 new messages