From: Jason Warr <jason@warr.net>
To: "David H. Rhodes Clymer" <david@zettazebra.com>
Cc: "Paul B. Henson" <henson@acm.org>, linux-bcache@vger.kernel.org
Subject: Re: Another bcache hang
Date: Fri, 22 Nov 2013 08:35:25 -0600 [thread overview]
Message-ID: <528F6BAD.7080703@warr.net> (raw)
In-Reply-To: <20131122034919.GA25040@professorx.home.zettazebra.com>
On 11/21/2013 09:49 PM, David H. Rhodes Clymer wrote:
> On Thu, Nov 21, 2013 at 05:07:02PM -0800, Paul B. Henson wrote:
>>> From: David H. Rhodes Clymer
>>> Sent: Thursday, November 21, 2013 5:56 AM
>>>
>>> I have two bcache devices with different backing devices, but with shared
>>> cache. The backing devices are LVM logical volumes on top of an RAID1
>>> software raid device (/dev/md2). The filesystem is ext4.
>> Off-topic, sorry, but if I understand you your layering is:
>>
>> disks - mdraid - lvm - bcache - filesystem?
>>
>> So you created an lv which is the backing device for bcache?
>>
>> I've been looking at using bcache, but I was planning on switching the
>> ordering and putting bcache on top of the mdraid, then creating a pv for lvm
>> on the bcache device:
>>
>> disks - mdraid - bcache - lvm - filesystem
>>
>> Out of curiosity, I was wondering why you layered the other way.
> Laziness, mostly. The RAID1 array is a PV that houses filesystems we'd
> rather thot lose. The development databases are not so critical - we
> rebuild them at least once a week anyway. The use of LVs was a quick
> and easy way to test various caching implementations without increasing
> the risk of data loss or corruption in the rest of the system.
>
> If you want to provide a block cache for all of your logical volumes,
> it would make much more sense to put LVM on top of bcache rather than
> the other way around.
As I start to use more LVM based RAID, and with it fault allocation
policy's, logically it makes more sense to setup individual volumes as
backing stores instead of PV's. That way you always know your caching
the volumes you want no matter what PV device(s) they are sitting on.
That's really one of the great things about this. You can pick what
target you use as a backing store depending on your performance and
management needs. There is no one right way to do this.
>
> -davidc
> --
> 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
next prev parent reply other threads:[~2013-11-22 14:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-21 13:56 Another bcache hang David H. Rhodes Clymer
2013-11-22 1:07 ` Paul B. Henson
2013-11-22 3:49 ` David H. Rhodes Clymer
2013-11-22 14:35 ` Jason Warr [this message]
2013-11-22 19:51 ` Paul B. Henson
2013-11-22 20:34 ` Jason Warr
2013-11-22 23:52 ` Paul B. Henson
2013-11-23 0:38 ` Matthew Patton
2013-11-23 0:43 ` Paul B. Henson
2013-11-23 1:02 ` Jason Warr
2013-11-23 2:14 ` Paul B. Henson
2013-11-23 2:38 ` Jason Warr
2013-11-22 19:46 ` Paul B. Henson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=528F6BAD.7080703@warr.net \
--to=jason@warr.net \
--cc=david@zettazebra.com \
--cc=henson@acm.org \
--cc=linux-bcache@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.