Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-bugs

[Xen-bugs] [Bug 850] Random crash after relaunching a xen domU halted

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 850] Random crash after relaunching a xen domU halted
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Tue, 9 Jan 2007 07:50:11 -0800
Delivery-date: Tue, 09 Jan 2007 07:50:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <bug-850-3@xxxxxxxxxxxxxxxxxxxxxxxxxxx/bugzilla/>
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=850





------- Comment #1 from baco@xxxxxxxx  2007-01-09 07:49 -------
You can reproduce this by

# create a myxen.cfg binded to xenbr0
xm create -c myxen.cfg
# after a while in the myxen do "halt"
# change myxen.cfg to bind to xenbr1
# juste after "haled" launch
xm create myxen.cfg
# at this point random failure of Xen
# failure experimented can be :
# - all domU down, dom0 too with "kernel BUG at drivers/xen/core/evtchn.c:481!"
# - vif/network of a random running domU got disconnected

As workaround i have the following bash script
to be sure the xen domU was correctly shutdown

# Be sure the xen was shutdown before restart
sync; sync; sync
open=1
running=1
dryrun=""
while [ $open -ne 0 ] || [ $running -ne 0 ]; do
        open=$(lvdisplay "/dev/${volume_group}/${host_name}.sda2" | \
        awk '/# open/ { print $3 }')
        if ! ${XM} list | grep -q -E "^${host_name}"; then
                running=0
        fi
        echo "Waiting shutdown of ${host_name}..."
        sleep 1
done
while [ "$dryrun" != "PASSED" ]; do
        dryrun=$(${XM} dry-run "${host_name}.cfg" | awk '/Dry Run:/ { print $3
}
')
        echo "Waiting for a passed dry-run..."
        sleep 1
done
for (( i=10 ; $i>0 ; i=$(($i-1)) )); do
        echo "Waiting for $i seconds..."
        sleep 1
done


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