Re: dm-cache question

135 views
Skip to first unread message

Ming Zhao

unread,
Aug 11, 2011, 8:39:21 PM8/11/11
to Oded Horovitz, dm-c...@googlegroups.com
Hi Oded,

It's a bit tricky to use dm-cache to cache a root disk because the
root file system has to be loaded during boot process. In theory, it
is possible to modify the initrd to load dm-cache at boot time, but it
is still on my todo list :)

- Ming


On Thu, Aug 11, 2011 at 1:19 PM, Oded Horovitz <oded.h...@gmail.com> wrote:
> Hi Ming,
> First, thank you for making dm-cache, I find it very useful as a component
> of a new project I'm working on.
> I have successfully build and used dm-cache on a 2.6.27.x kernel that I'm
> using for the project.
> What I could not figure out is how to do the following:
> I want to use a /dev/ram0 device as the cache for my /dev/sda1
> I was able to use /dev/ram0 to create cache for another device /dev/sdb and
> later mount that device
> as /home or other mount points. But I wonder if there is a way to simply
> configure a cache for the ROOT
> file system...
> if you have done it already and can send some simple guidelines i will
> highly appreciate.
> Or any link that will lead me to the right setup.
> Best regards,
> Oded Horovitz

Oded Horovitz

unread,
Aug 12, 2011, 11:06:17 AM8/12/11
to Ming Zhao, dm-c...@googlegroups.com
I had a feeling that I will need to learn how to bake an initrd in order to do that.

Was wishing it was done before for dm-cache..

Thanks,
Oded H

Reply all
Reply to author
Forward
0 new messages