Hello all, after XEN 4.3.0 with Kernel 3.10.9 has restored suspended (saved) Domains there are still some processes around which from my point of view should have disappeared after restoring. This entries are still in the Process list: root 3347 1 0 09:30 ? 00:00:00 /usr/local/sbin/xl restore /var/lib/xen/save/frntsrv01-v7 root 3737 1 0 09:30 ? 00:00:00 /usr/local/sbin/xl restore /var/lib/xen/save/srcsrv01-v5 Does somebody knows why this happens or face the same issues as I am doing. Thanks a lot. Cheers, Maik _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Mon, Aug 26, 2013 at 10:15:19AM +0200, Maik Brauer wrote:> Hello all, > > after XEN 4.3.0 with Kernel 3.10.9 has restored suspended (saved) Domains there are still some processes around > which from my point of view should have disappeared after restoring. > > This entries are still in the Process list: > root 3347 1 0 09:30 ? 00:00:00 /usr/local/sbin/xl restore /var/lib/xen/save/frntsrv01-v7 > root 3737 1 0 09:30 ? 00:00:00 /usr/local/sbin/xl restore /var/lib/xen/save/srcsrv01-v5 > > Does somebody knows why this happens or face the same issues as I am doing. > Thanks a lot. >I don''t think this is an issue. Xl waits in the background for the domain to die. You can try xl restore -e to prevent xl from waiting. Wei.> Cheers, > Maik> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users
Maik Brauer
2013-Aug-26 10:18 UTC
Re: XEN 4.3.0: Hanging xl restore processes after reboot
Hi Wei, yes that works, but what is the approach in /etc/init.d/xendomains (start & Stop)? It would make sense when these scripts are shipped with that parameter, what do you think? Is there any reason, that the "xendomains" script doesn''t contain the -e flag? Thanks. Cheers, Maik On Aug 26, 2013, at 12:11 PM, Wei Liu <wei.liu2@citrix.com> wrote:> On Mon, Aug 26, 2013 at 10:15:19AM +0200, Maik Brauer wrote: >> Hello all, >> >> after XEN 4.3.0 with Kernel 3.10.9 has restored suspended (saved) Domains there are still some processes around >> which from my point of view should have disappeared after restoring. >> >> This entries are still in the Process list: >> root 3347 1 0 09:30 ? 00:00:00 /usr/local/sbin/xl restore /var/lib/xen/save/frntsrv01-v7 >> root 3737 1 0 09:30 ? 00:00:00 /usr/local/sbin/xl restore /var/lib/xen/save/srcsrv01-v5 >> >> Does somebody knows why this happens or face the same issues as I am doing. >> Thanks a lot. >> > > I don''t think this is an issue. Xl waits in the background for the > domain to die. > > You can try xl restore -e to prevent xl from waiting. > > Wei. > >> Cheers, >> Maik > >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Mon, Aug 26, 2013 at 12:18:51PM +0200, Maik Brauer wrote:> Hi Wei, > > yes that works, but what is the approach in /etc/init.d/xendomains (start & Stop)? > It would make sense when these scripts are shipped with that parameter, what do you think? > > Is there any reason, that the "xendomains" script doesn''t contain the -e flag? > Thanks. >That''s the default behavior for xl. Xl create waits as well. I haven''t read through libxl. One plausible answer is that xl needs to wait for those events to clean up after DomU is dead. Wei.> Cheers, > Maik > > > On Aug 26, 2013, at 12:11 PM, Wei Liu <wei.liu2@citrix.com> wrote: > > > On Mon, Aug 26, 2013 at 10:15:19AM +0200, Maik Brauer wrote: > >> Hello all, > >> > >> after XEN 4.3.0 with Kernel 3.10.9 has restored suspended (saved) Domains there are still some processes around > >> which from my point of view should have disappeared after restoring. > >> > >> This entries are still in the Process list: > >> root 3347 1 0 09:30 ? 00:00:00 /usr/local/sbin/xl restore /var/lib/xen/save/frntsrv01-v7 > >> root 3737 1 0 09:30 ? 00:00:00 /usr/local/sbin/xl restore /var/lib/xen/save/srcsrv01-v5 > >> > >> Does somebody knows why this happens or face the same issues as I am doing. > >> Thanks a lot. > >> > > > > I don''t think this is an issue. Xl waits in the background for the > > domain to die. > > > > You can try xl restore -e to prevent xl from waiting. > > > > Wei. > > > >> Cheers, > >> Maik > > > >> _______________________________________________ > >> Xen-users mailing list > >> Xen-users@lists.xen.org > >> http://lists.xen.org/xen-users > > >
Ian Campbell
2013-Aug-26 14:16 UTC
Re: XEN 4.3.0: Hanging xl restore processes after reboot
On Mon, 2013-08-26 at 11:33 +0100, Wei Liu wrote:> On Mon, Aug 26, 2013 at 12:18:51PM +0200, Maik Brauer wrote: > > Hi Wei, > > > > yes that works, but what is the approach in /etc/init.d/xendomains (start & Stop)? > > It would make sense when these scripts are shipped with that parameter, what do you think? > > > > Is there any reason, that the "xendomains" script doesn''t contain the -e flag? > > Thanks. > > > > That''s the default behavior for xl. Xl create waits as well. > > I haven''t read through libxl. One plausible answer is that xl needs to > wait for those events to clean up after DomU is dead.After creating (or restoring) a guest xl will daemeonise in order to handle events such as reboot and shutdown. These processes are perfectly normal and not something to eliminate. Ian.