Jim Henderson
2006-Apr-17 16:13 UTC
[Xen-users] DomU Shutdown Timeout, Zombies Hanging a Reboot
Hello, I am using Xen 3.0.2/2.6.16-xen on Gentoo 2006.0. I am getting the following in my Xen logs when I attempt to shut down a domU: --- [2006-04-17 09:41:39 xend] DEBUG (DevController:132) Waiting for devices vtpm. [2006-04-17 09:41:40 xend] INFO (XendDomain:363) Domain lists.test.ca (1) unpaused. [2006-04-17 09:44:33 xend.XendDomainInfo] DEBUG (XendDomainInfo:877) XendDomainInfo.handleShutdownWatch [2006-04-17 09:44:33 xend.XendDomainInfo] DEBUG (XendDomainInfo:877) XendDomainInfo.handleShutdownWatch [2006-04-17 09:45:03 xend.XendDomainInfo] INFO (XendDomainInfo:867) Domain shutdown timeout expired: name=lists.test.ca id=1 [2006-04-17 09:45:03 xend.XendDomainInfo] DEBUG (XendDomainInfo:1327) XendDomainInfo.destroy: domid=1 [2006-04-17 09:45:03 xend.XendDomainInfo] DEBUG (XendDomainInfo:1335) XendDomainInfo.destroyDomain(1) --- QUESTION 1: Is the only way to increase the "Domain shutdown timeout" by changing python source code? Is this configurable? Possibly because of this timeout forcing a shutdown of the domain too early, that domain will turn into a zombie. (But it may be something else causing the Zombie... not sure.) # xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 128 1 r----- 146.4 Zombie-lists.test.ca 1 192 1 -----d 63.2 And when I try to shutdown/reboot the server via dom0 in this state, it will hang. I''ve determined that the offending line in the Gentoo xen init/shutdown script is: ''/usr/sbin/xm shutdown --all --wait >/dev/null'' And when I run this on the command line it will hang, waiting to kill the Zombie it would seem-- but it never kills it. QUESTION 2: How can I shut down or reboot my server cleanly if there are zombies? Thank you, James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Milan Holzäpfel
2006-Jun-07 20:01 UTC
[Xen-users] Re: DomU Shutdown Timeout, Zombies Hanging a Reboot
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 17 Apr 2006 10:13:25 -0600 Jim Henderson <his_jimboness@yahoo.ca> wrote:> QUESTION 1: Is the only way to increase the "Domain shutdown timeout" > by changing python source code? Is this configurable?- From reading the source code, I''d say yes. You can find the value in /usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py, line 86 (Xen 3.0.2), in case you haven''t seen yet.> And when I try to shutdown/reboot the server via dom0 in this state, > it will hang. I''ve determined that the offending line in the Gentoo > xen init/shutdown script is: ''/usr/sbin/xm shutdown --all --wait > >/dev/null'' > > And when I run this on the command line it will hang, waiting to kill > the Zombie it would seem-- but it never kills it. > > QUESTION 2: How can I shut down or reboot my server cleanly if there > are zombies?You should be able to destroy the zombies (xm destroy) shutting down. Alternatively, you could also use different init scripts, ofc. Maybe xm should be changed to not wait for zombies? Regards, Milan - -- Milan Holzaepfel <mail(a)mjh(d)name> <URL:http://mjh.name/> pub 4096R/C790FC23 EB8E 5E81 81E3 53A9 9B74 B895 5179 54C0 C790 FC23 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iQIVAwUBRIcwg2GQ1TgKZKJkAQIT+hAAhA6cRp8CpGhLc6M+xS6ggRoseGwv5SXE WTRism6IkZ/0p7exYLBdkouggJJMM3O3XIxekEQt7GU+17WTnniF2kP5C4UH+3Ik 6+DGYAJBuirUDey5kwfzNcpdxrswctNj/0/oqIsmjoyy/8EvPnlU9UUV2BdJgQ8O tffKGcVYrzxWdkhRgsLApzGhQ/a7UbfDBvHwo8wCFbRLFjFgJ6hBHADXNm45Wxxj R2sYzUXw2nT2BRBUTAjt7E2PXao4SZg2YA3/n1yfTzRlOwdQ8cdlj80X5tsVstu3 Yl0l/5wws03iR7P39L1ofpMMPn1EMoSpxbqyas+TusZXTSSvTPi8gD/LWhVdHdq1 XyewOWSOGQuU7u5UbMQIcBRey5ot1Ob4gBpF4oxTrEPWMX8eo4zdn8JGaMta47tI zx33qdL0+WyyXa/iUFx5kEt4Tj49JpA+5PBYX+IFhHyOnkNUaHrTr6dwPVlQRZQk RQaWnI78An1smqMS3GJw9ZqPheR1ZVKiunAuVuyYcizUDAjFgTvJB4nJ7N/m8fBn Znmms+Z+G8yAJZNjGc8Y2uIoBNwG4NAKWExWW0dlLydKLm9LPl6gLS8XCZPhpWCZ rsUBdT/k/hMDv0iOa/8ojI4Psv78WQKr6sJPZCVQkRbUgbYbG3cLY5Tp71KHlIQs qM1uFoZU7UQ=aiX6 -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users