WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: AW: [Xen-users] Best way to use iSCSI in domU

To: "Angel L. Mateo" <amateo@xxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: AW: [Xen-users] Best way to use iSCSI in domU
From: Jeff Sturm <jeff.sturm@xxxxxxxxxx>
Date: Fri, 19 Jun 2009 12:07:28 -0400
Cc:
Delivery-date: Fri, 19 Jun 2009 09:14:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1245392955.30735.14.camel@joshua>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1245324370.10142.49.camel@joshua><184D2E7FDB39DB408A3B01FF6A2A5BAF07EC20D3B5@xxxxxxxxxxxxxxxxxxxxxxxx><a06240806c65ff023f9a8@xxxxxxxxxxxxxxxxxxxxxx><64D0546C5EBBD147B75DE133D798665F02FDC02A@xxxxxxxxxxxxxxxxx> <1245392955.30735.14.camel@joshua>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acnwp0D4PvINA15JTuiUaCnIK2neMwATwLjw
Thread-topic: AW: [Xen-users] Best way to use iSCSI in domU
> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-
> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Angel L. Mateo
> Sent: Friday, June 19, 2009 2:29 AM
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: RE: AW: [Xen-users] Best way to use iSCSI in domU
> 
> El jue, 18-06-2009 a las 13:43 -0400, Jeff Sturm escribió:
> > Exporting block devices from DomU instead was much more successful.  The
> > performance bottleneck seemed to vanish, we could tune the network as we
> > see fit (e.g. multipath / jumbo frames, good for storage), and the phy:
> > backend allows for asynchronous writes (although the latter prevented us
> > from doing this on shared GFS filesystems).
> >
>       OK. But supppose I need two domUs (in the same dom0) needing the same
> iSCSI resource. Could they share it if I configure it in the dom0?

Yes.  If you export it read/write however, you need to override Xen's sanity 
check
that would normally prevent you from doing so.

Here's an example:

node01: 'tap:sync:/dev/vg/wwwdocs,xvdg,w!'
node02:         'tap:sync:/dev/vg/wwwdocs,xvdg,w!'

In this example, /dev/vg/wwwdocs contains a clustered filesystem mounted 
read/write
on several domU instances, some of which are on the same dom0, some not.

We also use tap:sync: to ensure blocks are flushed to the SAN as they are 
written.
If you have just one dom0 and could tolerate possible data loss, you're 
probably fine
using phy: or tap:aio: instead.

-Jeff

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users