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

[Xen-bugs] [Bug 863] New: xendomains stop does not check for free space

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 863] New: xendomains stop does not check for free space before stopping
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Sat, 20 Jan 2007 04:05:03 -0800
Delivery-date: Sat, 20 Jan 2007 04:05:36 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=863

           Summary: xendomains stop does not check for free space before
                    stopping
           Product: Xen
           Version: unstable
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Tools
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: henning_sprang@xxxxxx


I just note that down from somebody who mailed it to the users list and did not
test the solution myself yet.

(see http://lists.xensource.com/archives/html/xen-users/2007-01/msg00721.html)

The xendomains script seems not to check if there is enough free spce to save a
domain when runninng xendomains stop.

This results in 100% filled /var directory, and broken snapshots.

A proposed solution is, adding the following lines to xendomains:


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


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 863] New: xendomains stop does not check for free space before stopping, bugzilla-daemon <=