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] migration, shared storage and fencing

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] migration, shared storage and fencing
From: Bart Coninckx <bart.coninckx@xxxxxxxxxx>
Date: Fri, 13 Aug 2010 14:50:08 +0200
Cc: David Heidt <david@xxxxxxxxxxxxxxxx>
Delivery-date: Fri, 13 Aug 2010 05:51:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C65381A.8050006@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/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: <4C65381A.8050006@xxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.12.4 (Linux/2.6.31.12-0.2-desktop; KDE/4.3.5; x86_64; ; )
On Friday 13 August 2010 14:18:34 David Heidt wrote:
> Hello List,
> 
> how do you guys manage the following scenario:
> 
> two host Dom0s: Alice and Bob with shared SAN (fibre)
> one DomU: Chalie. Charlies filesystem resides on the shared storage.
> 
> * Charlie is running per default on Alice
> * Alice is shutting down for maintainance and ist automatically
> (heartbeat) migrating Charlie live to Bob
> * Charlie is now running on Bob
> * Alice is returning
> * The foolish admin types on Alice's shell: "xm crea Charlie.cfg" ->
> Charlie possibly broken, at least unusable!
> 
> 
> My idea was to write a wrapper script for xm to check first, if Charlie
> is already running on the partner Node and, if so, offering live migration.
> In my first try I wrote a script that checked 'xm list' on the remote
> host via ssh. But I don't want to rely on ssh, nor do I want to leave
> unprotected ssh-root-keys on the servers.
> 
> My idea is to ask the xend-relication-service for running DomUs. Can
> this be done somehow from the shell?
> 
> Cheers,
> 
> David
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 

Why not let clustersoftware take care of starting and migrating Xen DomU's. 
Pacemaker has an excellent resource agent for that and it allows you to choose 
preferred nodes and stuff. Of course, everything needs to be done via the 
cluster manager software, no more manually doing "xm ..." because that would 
confuse the cluster. I have this running and it works perfectly. It needs a 
little bit of scripting for backups (we shut DomU's briefly down for that and 
don't want them to come up until the snapshot has been taken). 


B.

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