[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] dom0 and domU shutdown behavior


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Daniel Asplund" <danielsaori@xxxxxxxxx>
  • Date: Mon, 4 Aug 2008 23:26:29 +0200
  • Delivery-date: Mon, 04 Aug 2008 14:27:05 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=V6AC4kPucR0J6NS9/mjkY5enTaH1lhZ1Y+9MIWv5tuPfCKBJNYvKYm1widwEtfguYO nsroPAfS0tyaHoW4duAeNBMewv1UAWzS6E5LNwSjxdzwbzZLH1gPXgm/uMsubHN/HiDF aT/ZSJGBy16fbnh/y4jlTDtfe7YOCcQc+PQ6c=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On Mon, Aug 4, 2008 at 7:03 PM, Kai Schaetzl <maillists@xxxxxxxxxxxxx> wrote:
> If I do an xm shutdown or shutdown from within domU I get a graceful
> shutdown. If I shutdown dom0 the guests are just getting "killed". Is
> there a way to make dom0 shut down the domUs more gracefully?
> I haven't seen any ill effects yet, but I assume a graceful shutdown would
> be better in any case.
>
> Documentation at
> http://tx.downloads.xensource.com/downloads/docs/user/#SECTION022300000000
> 00000000
> says that xendomains would do this. However, I can't see that it does.
>
> I also see these explanations in man xmdomain.cfg (which don't seem to
> apply to the situation above, I'm just asking about one option):
>
> on_shutdown
>   Triggered on either an xm shutdown or graceful shutdown from inside
>   the DomU.
>
> on_reboot
>   Triggered on either an xm reboot or graceful reboot from inside the
>   DomU.
>
> on_crash
>   Triggered when a DomU goes to the crashed state for any reason.
>
> However, in my original config files created with virt-manager quite some
> time ago I have
>
> on_poweroff =
>
> Is on_poweroff valid anymore? Or is on_shutdown maybe wrong documentation?
>
> Kai
>
> --
> Kai Schätzl, Berlin, Germany
> Get your web at Conactive Internet Services: http://www.conactive.com

Yeah, I had similar experience with Ubuntu 8.04.
But I had Heartbeat controlling the shutdown and from within the
heartbeat init-script I called the xendomains resource script. So I
didn't have xendomains running directly at boot/shutdown.

To resolve it I had to add a sleep command in the heartbeat
init-script to make it wait for the domains to shutdown before
continuing with the Dom0 shutdown.

Which dist are you running?

//Daniel

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.