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-api

RE: [Xen-API] xe vm-list on slave server hang after unplugging master se

To: 'Anthony Xu' <anthony@xxxxxxxxx>
Subject: RE: [Xen-API] xe vm-list on slave server hang after unplugging master server network cable
From: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Date: Thu, 4 Feb 2010 18:34:56 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 04 Feb 2010 10:34:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1265307681.3007.3.camel@mobl-ant>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <1265221624.3022.7.camel@mobl-ant> <1265243112.3022.8.camel@mobl-ant> <1265244430.3022.12.camel@mobl-ant> <81A73678E76EA642801C8F2E4823AD2143E9223974@xxxxxxxxxxxxxxxxxxxxxxxxx> <1265307681.3007.3.camel@mobl-ant>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcqlxtwWX1p9Gc5MQ/C/E003E9a9qgAAcU/w
Thread-topic: [Xen-API] xe vm-list on slave server hang after unplugging master server network cable
Hi Anthony,

You're right: 'xe pool-recover-slaves' will try to do that for you. The only 
snag is that it might not get all the slaves, due to transient errors. It's a 
safe to repeat the command a few times though, if it doesn't work straight away.

Cheers,
Dave

> -----Original Message-----
> From: Anthony Xu [mailto:anthony@xxxxxxxxx]
> Sent: 04 February 2010 18:21
> To: Dave Scott
> Cc: xen-api@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-API] xe vm-list on slave server hang after unplugging
> master server network cable
> 
> 
> Hi Dave,
> 
> Thanks for quick response,
> 
> Will typing xe pool-recover-slaves in the new master make other servers
> slaves to this new master?
> 
> Then we don't need to type Xe pool-emergency-reset-master on each slave.
> 
> Thanks,
> Anthony
> 
> 
> On Thu, 2010-02-04 at 04:34 -0800, Dave Scott wrote:
> > Hi Anthony,
> >
> > Those are the right commands to use to manually specify a new master.
> >
> > On the new master type:
> >   Xe pool-emergency-transition-to-master
> > On the slaves type:
> >   Xe pool-emergency-reset-master
> >
> > Currently XCP doesn't have automatic master failover. There is an
> interface for talking to an external host-liveness / liveset / quorum -
> managing daemon. If that interface is implemented then automatic master
> failover would work. However that is quite a lot of work to get right.
> >
> > Cheers,
> > Dave
> >
> > > -----Original Message-----
> > > From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-
> > > bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Anthony Xu
> > > Sent: 04 February 2010 00:47
> > > To: xen-api@xxxxxxxxxxxxxxxxxxx
> > > Subject: Re: [Xen-API] xe vm-list on slave server hang after
> unplugging
> > > master server network cable
> > >
> > > I found those commands,
> > > xe pool-emergen-cy-reset-master and xe
> > > pool-emergency-transition-to-master
> > >
> > > will the pool select new master automatically after the original
> master
> > > can't be connected?
> > >
> > > - Anthony
> > >
> > >
> > > On Wed, 2010-02-03 at 16:25 -0800, Anthony Xu wrote:
> > > > Is there any way to specify a new master manually?
> > > >
> > > >
> > > > Anthony
> > > >
> > > >
> > > >
> > > > On Wed, 2010-02-03 at 10:27 -0800, Anthony Xu wrote:
> > > > > I have a pool which only have two servers, I unplug master
> server
> > > > > network cable, and execute xe vm-list on slave server, it hangs.
> > > > >
> > > > > How long does it cost for slave server to take over control?
> > > > >
> > > > >
> > > > > - Anthony
> > >
> > >
> > > _______________________________________________
> > > xen-api mailing list
> > > xen-api@xxxxxxxxxxxxxxxxxxx
> > > http://lists.xensource.com/mailman/listinfo/xen-api


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api