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: [Xen-users] Safe iSCSI & Live Migrations

To: "Simon Capstick" <simon@xxxxxxxxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Safe iSCSI & Live Migrations
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Fri, 10 Aug 2007 15:07:17 +1000
Delivery-date: Thu, 09 Aug 2007 22:07:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46BB9A94.4050407@xxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <46BB9A94.4050407@xxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acfa2FX+pTgHo458TZOZbEZ04HWMLgAM7EqQ
Thread-topic: [Xen-users] Safe iSCSI & Live Migrations
> I'm currently playing with iSCSI and Xen (exporting individual DomU
> block devices as individual iSCSI disks) and wanted to find a safe way
> to use iSCSI. i.e. I want to prevent the accidental mounting of an
iSCSI
> disk from two or more machines.  Using IET as an iSCSI target I can
set
> MaxConnections=1 in the config.  This ensures that no accidental
> filesystem corruption happens due to two or more simultaneous mounts.
> However live migration is out of the question.  To move a DomU from
one
> box to another with the MaxConnections=1 safeguard I have to;
> 
> Box 1:
> Shutdown the DomU.
> Perform an iSCSI logout.
> 
> Box 2:
> Perform an iSCSI login.
> Start the DomU.
> 
> Is there any way to perform a live migration of the above by getting
Xen
> to run iSCSI logout/login scripts as the DomU pauses in the middle of
> the live migration?  Are there any software hooks that can be used to
do
> this?
> 
> Or are there simpler methods to guarantee the safe/single use of iSCSI
> disks that still allow Xen's live migration?
> 

It sounds like Dom0 is making the iSCSI connection and exporting the
block device to DomU... is that the case?

If DomU initiated the iSCSI connection then I think this would solve all
of your problems, although it would create some of its own - root on
iSCSI can be a bit tricky.

James

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

<Prev in Thread] Current Thread [Next in Thread>