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] todo: XENDOMAINS_SAVE

To: "Heiko Lehmann" <hlehmann@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] todo: XENDOMAINS_SAVE
From: "Henning Sprang" <henning_sprang@xxxxxx>
Date: Wed, 17 Jan 2007 16:10:53 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 17 Jan 2007 07:10:38 -0800
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=qh3yrjtH15VBuUh38p9cXSTM8fDSZZcYMEeIQVwY+BsS1moXDhqRMPUJG3DPOtIbRsN5lW+z7TaBkQqaicPn8L8l9Jb0z/w6lvQmzetBk+1cf8OcDBrXgpWPYrYkwXow4JXf7XfTZKrFRlIMcZhWHKtdow2X+61DnnjUs/I/q2U=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.53.0701161651010.32093@xxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <Pine.LNX.4.53.0701161651010.32093@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 1/16/07, Heiko Lehmann <hlehmann@xxxxxxxxxxxxx> wrote:
1. "make install-tools" overwrite /etc/sysconfig/xendomains
   You can disable XENDOMAINS_SAVE in xendomains, but
   after update-xen this future enabled now.

The fact that "make install" just overwarites stuff is normal for most
source packages, I think. Use Distribution package sto get proper
config file handling.

2. "xendomain stop" do not check filesystem space. result:
   - /var full
   - snapshot corrupt
   Solution:
   - add (like) lines to xendomain:
...
        if test -n "$XENDOMAINS_SAVE"; then
                    echo -n "(save)"
## save domain if enough free disk space
free=`df -k $XENDOMAINS_SAVE | awk '{print $4}'`
size=`xm list | grep $name | awk '{print $3}'`
sizeplus=$(($size*11/10))       ## size + 10%
[ $free -lt $size ] && continue

Good idea!
did you post this as a bug report on Xen bugzilla?


Henning

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

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