Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116912 - xend initscript shuts down Domain-0 in error
Summary: xend initscript shuts down Domain-0 in error
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Chris Bainbridge (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-27 12:01 UTC by Neil Darlow
Modified: 2005-12-28 09:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Darlow 2005-12-27 12:01:12 UTC
A recent update to xen-3.0.0 added some logic to /etc/init.d/xend to shutdown manually started domains (i.e. not auto-started ones).

Unfortunately, this logic doesn't filter Domain-0, resulting in it being stopped and the proper shutdown sequence for Domain-0 doesn't complete. This leads to LVM and filesystems etc. not being terminated in the correct manner.

A subsequent boot requires repair of Domain-0 filesystems during fsck.
Comment 1 Chris Bainbridge (RETIRED) gentoo-dev 2005-12-27 15:47:34 UTC
xend stop does:

/usr/sbin/xm shutdown --all --wait >/dev/null
/usr/sbin/xend stop

If either of these is killing your dom0 it's a bug in xen and should be reported upstream at http://bugzilla.xensource.com

Nothing xm or xend do should result in domain 0 shutting down. Please reopen this bug if you find that there actually is something wrong with the init scripts.
Comment 2 Chris Bainbridge (RETIRED) gentoo-dev 2005-12-28 04:39:30 UTC
You may be interested in http://permalink.gmane.org/gmane.comp.emulators.xen.devel/18835 and http://permalink.gmane.org/gmane.comp.emulators.xen.devel/18832

Maybe one of your domains is named 00...?
Comment 3 Neil Darlow 2005-12-28 09:38:37 UTC
My domains are: austin (Dom0) and pablo, tasha, tyrone and uniqua (DomU).

The DomUs are started from /etc/xen/auto and were shutdown by /etc/init.d/xendomains so the domain shutdown logic in /etc/init.d/xend shouldn't have been executed, unless:

1) 'xm list' output something other than a header and Domain-0 line
2) when 'xm list' was executed the termination of one or more DomUs wasn't complete (as far as xm list knows?)

In the meantime, I've modified the 'xm list | wc -l' to tee its output into a file for analysis after another failure.

The only other thing I can think of mentioning is that I run my Xen domains under screen. I don't know if that would have any bearing on what's happening.