xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: "G.R." <firemeteor@users.sourceforge.net>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: Any plan to support disk driver domain?
Date: Sat, 22 Jun 2013 09:03:02 +0200	[thread overview]
Message-ID: <51C54C26.50909@citrix.com> (raw)
In-Reply-To: <CAKhsbWYQ8FbDPp2-aU=cpP4g5fnYk+VJ4ydD_bna3_ESsnqXKA@mail.gmail.com>

On 21/06/13 05:26, G.R. wrote:
> On Tue, May 28, 2013 at 6:16 PM, Roger Pau Monné <roger.pau@citrix.com> wrote:
>> On 04/04/13 12:26, G.R. wrote:
>>> Hi developers,
>>> I'm currently running a PVHVM freeNAS domU to serve storage (SATA
>>> controller passed-through) to all other domUs. However, some issues are
>>> observed in the network / NFS performance for the NAS domU.
>>> I noticed that there is a blkback driver in freebsd which is documented
>>> as capable to export disk to other domains, which looks very promising.
>>> However, the wiki says that disk driver domain is not supported (at
>>> least for now).
>>>
>>> I wonder if there is any plan to support such disk driver domain? It'll
>>> be a great feature for my use case.
>>
>> I've added a tutorial that explains how to use storage driver domains
>> with Xen 4.3, it contains a FreeBSD section that explains how to use ZFS
>> ZVOLS as disk backends for other domains, see:
>>
>> http://wiki.xen.org/wiki/Storage_driver_domains
>>
> 
> Hi Roger,
> 
> I just checked out your wiki page and it seems to be a fairly simple setup.
> It looks like a miracle that the freebsd version does not require
> those helper utils.
> 
> As I understand from what Daniel stated in his mail, the linux driver
> domain would
> rely on some hotplug scripts delivered with xen to hook up the connection.
> I was imagining some similar sciprts will need to be hooked into
> FreeBSD devd in similar manner.
> How does it work without these?

Linux use this hotplug scripts to write the physical-device node, which
FreeBSD doesn't need.

> I'm not familiar with the FreeBSD kernel.
> Also, does it has any assumption on the FreeBSD version? I'm on 8.3.1,
> which is a kind of old but still PVHVM capable.

If it contains blkback you should be fine.

> In your example, the driver is setup using zvol. I wonder if there are
> any constraint prohibiting using a file based backend?

I have not tried it, but FreeBSD blkback should be able to handle raw
files also.

> Finally, I saw this limitation in the wiki:
>>> It is not possible to use driver domains with pygrub or HVM guests yet, so it will only work with PV guests that have the kernel in Dom0.
> While I can imagine why pygrub does not work, I don't understand the
> reason HVM is affected here. Could you explain a little bit?
> And what about a HVM with PV driver? (e.g. those windows guests)

If you use HVM, Qemu needs to access the block/file used as disk, so if
the disk is on another domain Qemu has no way to access it (unless you
plug the disk to the Dom0 and then pass the created block device
/dev/xvd* to Qemu).

  parent reply	other threads:[~2013-06-22  7:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-04 10:26 Any plan to support disk driver domain? G.R.
2013-04-04 11:54 ` Roger Pau Monné
2013-04-04 12:08   ` G.R.
2013-04-04 14:23 ` Daniel De Graaf
2013-04-04 15:48   ` G.R.
2013-05-28 10:16 ` Roger Pau Monné
2013-06-21  3:26   ` G.R.
2013-06-21 18:05     ` Konrad Rzeszutek Wilk
2013-06-22  7:03     ` Roger Pau Monné [this message]
2013-06-22 12:23       ` G.R.
2013-07-24 16:17       ` G.R.
2013-07-25  8:31         ` Roger Pau Monné
2013-07-25 15:35           ` G.R.
2013-08-07 10:32             ` G.R.
2013-07-31 15:36           ` George Dunlap

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=51C54C26.50909@citrix.com \
    --to=roger.pau@citrix.com \
    --cc=firemeteor@users.sourceforge.net \
    --cc=xen-devel@lists.xen.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 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).