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

Re: [Xen-users] Shutdown of dom0 with running DomUs cannot deactivate volume group


  • To: mlg-hessigheim@xxxxxx
  • From: "Todd Deshane" <deshantm@xxxxxxxxx>
  • Date: Mon, 20 Oct 2008 19:59:28 -0400
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 20 Oct 2008 17:00:06 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=O4xJ/7v6oaItJINnFwFx7XNnrKxOl0UPEmKS2ad2L3I6q5M9MuWaaJkvHNiCIBo1F8 DEVdBsCNbcPtWEnXOE/flVBU4HoLiG/XvcXAoFyxABbKgdJeUpehCFda/vZ4OlQCVhZ5 wcsjMj/nb4GM56AkbFspovlLHnbp09MCCruDA=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On Mon, Oct 20, 2008 at 6:12 AM, Martin Lang <mlg-hessigheim@xxxxxx> wrote:
> Hi all,
>
> I have a little server with some Debian DomUs that are automatically started
> at system boot. Each DomU uses LVM Volumes for root and swap area. When I
> now shutdown the whole machine using the shutdown -h command in the dom0 I
> always get an error message that LVM cannot be shutdown properly because
> there are still some active volumes. These are the volumes used by the
> domUs. When I manually shutdown the domUs using xm shutdown, I do not get
> the error message.
>
> My question now is: is there something similar to the autostart of domUs for
> shutdown? Do I have to write a special script that calls "xm shutdown -a w"?
> If yes where do I have to place it.
>

You should be able to use the domU config option:
on_xend_stop

cheers,
Todd


-- 
Todd Deshane
http://todddeshane.net
http://runningxen.com

_______________________________________________
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®.