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/
Home Products Support Community News


Re: [Xen-users] xend, xenstored, xenconsoled restart

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] xend, xenstored, xenconsoled restart
From: Marco <foobar.angus@xxxxxxxxx>
Date: Fri, 24 Apr 2009 16:28:41 +0200
Cc: Ferenc Wagner <wferi@xxxxxxx>, echo@xxxxxxxxxxxx
Delivery-date: Fri, 24 Apr 2009 07:29:30 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=5rHYiWeK+fA6oQQbKTlg11iyHCpB0skYHXA2J6VU3QM=; b=RdURxqUKc/Cd+iETA1HvwczZPivmLmswPAXQN0qpC1ZzeKarjnQ90imGP4OSWapJNm tbC4AQFF05FzO0z4YQxQUe4Rrmx1lH8vJi6iYGf4tz/AJtS9H0crJsT+kuiibmRcEKpb pc5A7yWOlK9wvWltd/N64PtTrdtIAAPcxCGxY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=VSJo9QXbPeMtLu6uGb8JpUwhFzasBBxf6e15/sIDpgKR43aTKADLMcOAGgEQpltfKp 8cmQh2NjamaVcOLpRp29l4QHmvn+iC+Mg1ZpJ7preP+2BWnRAUX5IfvuFOSleKG+UKch FX668k2IOb6FnWwc1DykyMk3jkqEp+2qRVaiA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1224661974.5582.290.camel@xxxxxxxxxxxxxxxxxxxxx>
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: <87k5c1lisb.fsf@xxxxxxxxxxxxx> <1224660794.5582.282.camel@xxxxxxxxxxxxxxxxxxxxx> <1224661974.5582.290.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Oct 22, 2008 at 9:52 AM, Tim Post <echo@xxxxxxxxxxxx> wrote:
Sorry for top posting, this comment in xenstore/xenstored_core.c is

/* XXX When we make xenstored able to restart, this will have
  to become cleverer, checking for existing domains and not
  removing the corresponding entries, but for now xenstored
  cannot be restarted without losing all the registered
  watches, which breaks all the backend drivers anyway.  We
  can therefore get away with just clearing /local and
  expecting Xend to put the appropriate entries back in.

  When this change is made it is important to note that
  dom0's entries must be cleaned up on reboot _before_ this
  daemon starts, otherwise the backend drivers and dom0's
  balloon driver will pick up stale entries.  In the case of
  the balloon driver, this can be fatal.

So, at least (for a while), the store is transient. I dug that up after
double checking what --preserve-local did. In all reality, you'll lose
xend prior to losing xenstored.

Hi all,
sorry for replaying to an old thread, but actually I see xenstored exiting from time to time while xend (fortunately) keep running. The result is that:
- VM keep running
- I loose every control on them from dom0, i.e. 'xm <commands>' do not work
I cannot migrate them to another host I've in cluster.

In similar cases -- when xenstored crashes/exits, xend keep running -- do you know if there is a method to restart xenstored ? I would need a way to regain control of the VMs to at least migrate them ...



Sorry for not double checking before replying :)


On Wed, 2008-10-22 at 15:33 +0800, Tim Post wrote:
> On Tue, 2008-10-21 at 23:50 +0200, Ferenc Wagner wrote:
> > Hi,
> >
> > I'm looking for some definite info about when it's allowed to restart
> > the various Xen daemons (xend, xenstored and xenconsoled).
> >
> > Up to now I worked with the assumption that I can restart them while
> > guest domains are running on the host and there's no harm done.
> > Indeed there wasn't, until now, when on restart one of my domains
> > became Domain-Unnamed (but kept on working), while the others
> > disappeared and didn't ping anymore...
> >
> > (I've got the domain info dump from xm dmesg and the xend logs if
> > anybody can debug this.  I'm using Xen 3.2.1.)
> One thing you never (ever) want to re-start is xenstored. Xend however
> can usually be re-started without issue.
> Think of xenstored as something like "/proc as a service". Xen itself
> does not care about the name of your guest, it only needs its ID, flags,
> etc. If you look in /usr/include/xen/domctl.h , in particular the type
> xc_domaininfo_t , you'll see how much the userland tools rely on
> xenstore .. not just for storage, but watches. This keeps the bloat out
> of Xen itself and in userspace where it belongs. That's one of the
> reasons why Xen is a well designed modern highly efficient microkernel.
> To make the store persistent, many small writes/reads to dom-0's disk
> would be needed and would be a disaster. That's why its all done in
> memory. Nevermind i/o wait and latency :) As far as I know, there is no
> way to export / import the contents of the store on a graceful re-start.
> Trying to do the same while handling a segmentation fault would be at
> (best) questionable.
> In all reality, I have seen xend crash, but never xenstored. The only
> practical reason for including stuff to dump and re-import its contents
> would be a graceful restart .. but why would you re-start it if its
> running fine? :)
> Cheers,
> --Tim
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

Xen-users mailing list

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] xend, xenstored, xenconsoled restart, Marco <=