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] Debian Etch Xen Cluster (DRBD, GNBD, OCFS2, iSCSI, Heart

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Debian Etch Xen Cluster (DRBD, GNBD, OCFS2, iSCSI, Heartbeat?)
From: Dominik Klein <dk@xxxxxxxxxxxxxxxx>
Date: Fri, 14 Sep 2007 08:37:17 +0200
Delivery-date: Thu, 13 Sep 2007 23:37:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070913180649.GB29641@xxxxxxxxxxxx>
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: <46E6A47B.3010309@xxxxxxxx> <46E92EB0.3040209@xxxxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01249662@trantor> <46E93E7C.5080207@xxxxxxxxxxxxxxxx> <20070913180649.GB29641@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.13 (X11/20070824)
Christian Horn schrieb:
On Thu, Sep 13, 2007 at 03:43:24PM +0200, Dominik Klein wrote:
Just remember, if something goes wrong in such a way that the domain is
active on both nodes at the same time with read/write access to the
filesystem, you *will* *destroy* the filesystem and will need to restore
>from backup. No amount of fscking will help you.
(I speak from bitter experience :)
Full Ack (without the bitter experience yet though).

That's why you want to have a functioning STONITH Device and redundant cluster communication ways.

That will only help on clusterside.

Correct.
Keep your hands off Xen if you have a cluster software manage it. Use cluster commands if you need to do anything manually.

Has anyone good ideas on how to prevent domUs that are stored on evms or
clvm from beeing started on multiple dom0s?

You could use a wrapper script for xm.

I don't use anything like that, but this should give you an idea of what I am thinking of.

.bashrc:
alias xm=myxm.sh

myxm.sh
#!/bin/bash

if echo $* | grep -q -w create
then
# for this, you need passwordless ssh access to $othermachine
if ssh $othermachine "xm list $machine"
then
        echo "domU $machine already running on $othermachine. Exit"
        exit 5
else
        /usr/sbin/xm $*
fi
else
/usr/sbin/xm $*
fi

Regards
Dominik

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

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