linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bcache using in case of 5 hdd disks
@ 2014-01-23 19:26 Vasiliy Tolstov
  2014-01-27 20:38 ` Patrick Zwahlen
  0 siblings, 1 reply; 6+ messages in thread
From: Vasiliy Tolstov @ 2014-01-23 19:26 UTC (permalink / raw)
  To: linux-bcache

Hi all.
I'm very happy with bcache on current production system (raid1 with 1
sata hdd + 1 ssd). But now i get new platform with 5 sata hdd and 1
ssd disk.
Each of sata hdd i need to format with some fs (ext4 or btrfs?) to
store data. How can i use bcache in this case? I'm unerstand that i
can create5 partitions on ssd drive and use each partition to each
drive. But does it possible to use whole ssd disk to cache in this
case?

Thanks!

-- 
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru

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

* RE: bcache using in case of 5 hdd disks
  2014-01-23 19:26 bcache using in case of 5 hdd disks Vasiliy Tolstov
@ 2014-01-27 20:38 ` Patrick Zwahlen
  2014-01-28 12:11   ` Rolf Fokkens
  0 siblings, 1 reply; 6+ messages in thread
From: Patrick Zwahlen @ 2014-01-27 20:38 UTC (permalink / raw)
  To: linux-bcache@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

Hi!

> -----Original Message-----
> From: linux-bcache-owner@vger.kernel.org [mailto:linux-bcache-
> owner@vger.kernel.org] On Behalf Of Vasiliy Tolstov
> Sent: jeudi 23 janvier 2014 20:26
> To: linux-bcache@vger.kernel.org
> Subject: bcache using in case of 5 hdd disks
>
> Hi all.
> I'm very happy with bcache on current production system (raid1 with 1
> sata hdd + 1 ssd). But now i get new platform with 5 sata hdd and 1
> ssd disk.
> Each of sata hdd i need to format with some fs (ext4 or btrfs?) to
> store data. How can i use bcache in this case? I'm unerstand that i
> can create5 partitions on ssd drive and use each partition to each
> drive. But does it possible to use whole ssd disk to cache in this
> case?

My understanding is that a single "cacheset" (in your case, your SSD) can be 
shared between multiple backing devices.

You should be able to attach a single cacheset's UUID to multiple devices.

Can anyone else confirm ?

>
> Thanks!
>
> --
> Vasiliy Tolstov,
> e-mail: v.tolstov@selfip.ru
> jabber: vase@selfip.ru
> --


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 6043 bytes --]

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

* Re: bcache using in case of 5 hdd disks
  2014-01-27 20:38 ` Patrick Zwahlen
@ 2014-01-28 12:11   ` Rolf Fokkens
  2014-01-28 12:31     ` Vasiliy Tolstov
  0 siblings, 1 reply; 6+ messages in thread
From: Rolf Fokkens @ 2014-01-28 12:11 UTC (permalink / raw)
  To: Patrick Zwahlen, linux-bcache@vger.kernel.org

Op 27/01/14 21:38 schreef Patrick Zwahlen <paz@navixia.com>:

>
>My understanding is that a single "cacheset" (in your case, your SSD) can
>be 
>shared between multiple backing devices.
>
>You should be able to attach a single cacheset's UUID to multiple devices.
>
>Can anyone else confirm ?

Yep, confirmed!

Rolf

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

* Re: bcache using in case of 5 hdd disks
  2014-01-28 12:11   ` Rolf Fokkens
@ 2014-01-28 12:31     ` Vasiliy Tolstov
  2014-01-28 13:56       ` Thierry De Leeuw
  0 siblings, 1 reply; 6+ messages in thread
From: Vasiliy Tolstov @ 2014-01-28 12:31 UTC (permalink / raw)
  To: Rolf Fokkens; +Cc: Patrick Zwahlen, linux-bcache@vger.kernel.org

2014-01-28 Rolf Fokkens <rolf@rolffokkens.nl>
>
> Op 27/01/14 21:38 schreef Patrick Zwahlen <paz@navixia.com>:
>
> >
> >My understanding is that a single "cacheset" (in your case, your SSD) can
> >be
> >shared between multiple backing devices.
> >
> >You should be able to attach a single cacheset's UUID to multiple devices.
> >
> >Can anyone else confirm ?
>
> Yep, confirmed!
>
> Rolf


Can you explain for me how can i do that?


-- 
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru

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

* Re: bcache using in case of 5 hdd disks
  2014-01-28 12:31     ` Vasiliy Tolstov
@ 2014-01-28 13:56       ` Thierry De Leeuw
  2014-01-28 14:25         ` Rolf Fokkens
  0 siblings, 1 reply; 6+ messages in thread
From: Thierry De Leeuw @ 2014-01-28 13:56 UTC (permalink / raw)
  To: Vasiliy Tolstov; +Cc: linux-bcache@vger.kernel.org

Hi,

The documentation at 
http://evilpiepirate.org/git/linux-bcache.git/plain/Documentation/bcache.txt?h=bcache-dev 
explains how to do it.

Look at the "Getting started" and "ATTACHING" section.

Bottom line to create one cache (sdc) and 2 backing (sda and sdb) 
devices, use

make-bcache -B /dev/sda /dev/sdb -C /dev/sdc


Best regards

Thierry


On 01/28/2014 01:31 PM, Vasiliy Tolstov wrote:
> 2014-01-28 Rolf Fokkens<rolf@rolffokkens.nl>
>> Op 27/01/14 21:38 schreef Patrick Zwahlen<paz@navixia.com>:
>>
>>> My understanding is that a single "cacheset" (in your case, your SSD) can
>>> be
>>> shared between multiple backing devices.
>>>
>>> You should be able to attach a single cacheset's UUID to multiple devices.
>>>
>>> Can anyone else confirm ?
>> Yep, confirmed!
>>
>> Rolf
> Can you explain for me how can i do that?
>
>

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

* Re: bcache using in case of 5 hdd disks
  2014-01-28 13:56       ` Thierry De Leeuw
@ 2014-01-28 14:25         ` Rolf Fokkens
  0 siblings, 0 replies; 6+ messages in thread
From: Rolf Fokkens @ 2014-01-28 14:25 UTC (permalink / raw)
  To: Vasiliy Tolstov; +Cc: linux-bcache@vger.kernel.org

Hi,

Op 28/01/14 14:56 schreef Thierry De Leeuw <thierry@de-leeuw.org>:

>The documentation at
>http://evilpiepirate.org/git/linux-bcache.git/plain/Documentation/bcache.t
>xt?h=bcache-dev 
>explains how to do it.
>
>Look at the "Getting started" and "ATTACHING" section.
>
>Bottom line to create one cache (sdc) and 2 backing (sda and sdb)
>devices, use
>
>make-bcache -B /dev/sda /dev/sdb -C /dev/sdc

And (from the same documentation) if you¹ve created (make-bcache) and
registered the caching and backing devices separately, you can attach them
like this:

echo <CSET-UUID> > /sys/block/bcache0/bcache/attach

echo <CSET-UUID> > /sys/block/bcache1/bcache/attach


Assuming that /dev/sda and /dev/sdb have shown up as /dev/bcache0 and
/dev/bcache1 as their bcached counterparts after registering, and
<CSET-UUID> being the UUID of the cache device to be found in
/sys/fs/bcache.

Rolf

>
>
>Best regards
>
>Thierry
>
>
>On 01/28/2014 01:31 PM, Vasiliy Tolstov wrote:
>> 2014-01-28 Rolf Fokkens<rolf@rolffokkens.nl>
>>> Op 27/01/14 21:38 schreef Patrick Zwahlen<paz@navixia.com>:
>>>
>>>> My understanding is that a single "cacheset" (in your case, your SSD)
>>>>can
>>>> be
>>>> shared between multiple backing devices.
>>>>
>>>> You should be able to attach a single cacheset's UUID to multiple
>>>>devices.
>>>>
>>>> Can anyone else confirm ?
>>> Yep, confirmed!
>>>
>>> Rolf
>> Can you explain for me how can i do that?
>>
>>
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2014-01-28 14:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-23 19:26 bcache using in case of 5 hdd disks Vasiliy Tolstov
2014-01-27 20:38 ` Patrick Zwahlen
2014-01-28 12:11   ` Rolf Fokkens
2014-01-28 12:31     ` Vasiliy Tolstov
2014-01-28 13:56       ` Thierry De Leeuw
2014-01-28 14:25         ` Rolf Fokkens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).