All of lore.kernel.org
 help / color / mirror / Atom feed
From: infernix <infernix-ZHiucA87ovfk1uMJSBkQmQ@public.gmane.org>
To: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: bcache with iscsi, mpath and lvm
Date: Tue, 31 Jan 2012 17:04:26 +0100	[thread overview]
Message-ID: <4F28110A.8070309@infernix.net> (raw)
In-Reply-To: <CAOzFzEjE+h5wgY0JhZ6L5mJKtpLYyCSuErFWCd=E0UWNTTsQbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Op 31-1-2012 16:50, Joseph Glanville schreef:
>> I've got the following stack, bottom to top:
>> - iscsi sans with multiple NICs
>> - servers with multiple NICs
>> - open-iscsi cross-connecting to the san over those multiple nics
>> - multipath to aggregate and load-balance IO over said paths
>> - LVM on top of multiple mpathX devices
>> - qemu-kvm running with disks connecting to logical volumes in said LVM

> If you are bottlenecking purely on random I/O then the easiest and
> most logical place for bcache is infront of your iSCSI backing store
> on your SAN.

Agreed. But since the SAN is proprietary, there's zero chance of 
implementing bcache on the SAN :)

> If however you are bottlenecked on the iSCSI interconnect you could
> feasibly place bcache ontop of the multipath devices (they are just
> standard dm targets) right below the VMs.
> This adds the highest possible amount of performance to the VMs at the
> cost of increased maintaince, complexity of multiple caches and
> ofcourse cost.

Yes. So that is why I think the tradeoff of putting bcache on the mpath 
devices is the best. There's no shared storage use between servers; each 
just uses its own LVs. As long as I'm using writethrough, this is safe. 
Doing writeback is simply impossible with multiple caches like this.

Setting up bcache for each and every logical volume is not really going 
to work because they are quite dynamic.

>> Is there any other way of activating bcache besides passing it an UUID? And
>> can it even work on top of a dm-multipath device?
>
> It works on LVM so it should work fine on multipath targets too.

Except that I can't get an UUID from the LVM PVs:

blkid /dev/mpath/mpath2 -s UUID -o value

Returns nothing. So I'm a little confused as to how to register the 
device for caching.

  parent reply	other threads:[~2012-01-31 16:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-31 15:36 bcache with iscsi, mpath and lvm infernix
     [not found] ` <4F280A82.3070802-ZHiucA87ovfk1uMJSBkQmQ@public.gmane.org>
2012-01-31 15:50   ` Joseph Glanville
     [not found]     ` <CAOzFzEjE+h5wgY0JhZ6L5mJKtpLYyCSuErFWCd=E0UWNTTsQbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-01-31 16:04       ` infernix [this message]
     [not found]         ` <4F28110A.8070309-ZHiucA87ovfk1uMJSBkQmQ@public.gmane.org>
2012-01-31 16:29           ` Joseph Glanville

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=4F28110A.8070309@infernix.net \
    --to=infernix-zhiuca87ovfk1umjsbkqmq@public.gmane.org \
    --cc=linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.