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

[Xen-users] todo: XENDOMAINS_SAVE

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] todo: XENDOMAINS_SAVE
From: Heiko Lehmann <hlehmann@xxxxxxxxxxxxx>
Date: Tue, 16 Jan 2007 17:09:53 +0100 (CET)
Delivery-date: Wed, 17 Jan 2007 02:43:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
information only



Hallo folks!

061212.xen.todo



1. "make install-tools" overwrite /etc/sysconfig/xendomains
   You can disable XENDOMAINS_SAVE in xendomains, but
   after update-xen this future enabled now.


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



regards Heiko
Launoc



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

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