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] Restarting host server

To: Ed Donahue <liberaled@xxxxxxxxx>
Subject: Re: [Xen-users] Restarting host server
From: "Joseph M. Deming" <joseph.deming@xxxxxxxxxxxxxx>
Date: Wed, 26 May 2010 11:47:54 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 26 May 2010 08:48:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTilyRyEfRdpgW6L8rKRW7cHMYQ_GV01ti2NA6kSa@xxxxxxxxxxxxxx>
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>
Organization: MATRI X @ MSU
References: <AANLkTilyRyEfRdpgW6L8rKRW7cHMYQ_GV01ti2NA6kSa@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I alias shutdown and reboot commands on my dom0's and system
management/monitoring machines to avoid the situation where i find
myself inadvertently typing in the root console or on the wrong session.
sure you could adapt this to check `xm list` or something and ask for
confirm before rebooting.

it's nothing fancy but it works.

On Wed, 2010-05-26 at 11:27 -0400, Ed Donahue wrote:
> I'm looking for a way to prevent a restart of a server that has VMs
> running in it when the VMs have not been shutdown.
> 
> When some runs reboot or shutdown or init 0 the system checks for any
> running VMs and prevents the reboot, with a warning message.
> 
> Thanks,
> Ed
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


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

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