From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel de Perthuis Subject: Re: software raid and bcache Date: Wed, 3 Jul 2013 16:56:02 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Sender: linux-bcache-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-bcache@vger.kernel.org On Wed, 03 Jul 2013 20:50:59 +0400, Vasiliy Tolstov wrote: > 2013/7/3 Gabriel de Perthuis: >> Hello, >> >> You could use `blocks to-lvm`[1] to convert your large disk to lvm, >> and then `blocks to-bcache` to convert the lvm volume to bcache. >> The lvm conversion will allow you to migrate the data off the >> prefailed disk later, either by moving it (pvmove) or by converting >> to raid1 (lvconvert). > > Why i can't do : > > create /dev/md0 with /dev/sda (sata) level=1 raid-devices=1 > format /dev/md0 with bcache > format /dev/sdb (ssd) with brache > > create bcache0 with /dev/md0 and /dev/sdb That's reasonable, if you don't have any data you need to keep. You can use make-bcache -C /deb/sdb -B /dev/md0 to format the devices and attach them at the same time.