Artur Linhart - Linux communication
2008-Feb-29 19:20 UTC
[Xen-users] How can be defined the order of the starting of DomUs linked into /etc/xen/auto?
Hello, I use Xen 3.1.0 for longer time, but I still have one problem - how could I define the order of the starting of the DomU instances which are automatically restored/started if the DOm0 starts? Thics can be important - for example, I want to start the database before tomcat starts, I want to start tomcat before load balancer... etc. I have truied to name the links in the /etc/xen/auto/ in some waz which I wanted this will be started (something like 000-database, 100-webserver, 200=loadbalancer) but this did not helped to me. Does anybody know, what could be the solution for it or from which source just the starting process takes the order of the startings? Thanx in advance, Archie _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-Feb-29 22:09 UTC
Re: [Xen-users] How can be defined the order of the starting of DomUs linked into /etc/xen/auto?
Hi Archie, On Fri, Feb 29, 2008 at 2:20 PM, Artur Linhart - Linux communication <AL.LINUX@bcpraha.com> wrote:> > > > > Hello, > > > > I use Xen 3.1.0 for longer time, but I still have one problem – > how could I define the order of the starting of the DomU instances which are > automatically restored/started if the DOm0 starts? > > > > Thics can be important – for example, I want to start the > database before tomcat starts, I want to start tomcat before load > balancer... etc. > > > > I have truied to name the links in the /etc/xen/auto/ in some > waz which I wanted this will be started (something like 000-database, > 100-webserver, 200=loadbalancer) but this did not helped to me. > > > > Does anybody know, what could be the solution for it or from > which source just the starting process takes the order of the startings? > >You should take a look at your xendomains init script. Usually it is stored in /etc/init.d/>From that you should be able to determine how it picks the guestorder. I would have guessed that it would be in alpha order based on the directory listing... Best Regards, Todd> > Thanx in advance, > > > > Archie > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Artur Linhart - Linux communication
2008-Mar-01 00:41 UTC
RE: [Xen-users] How can be defined the order of the starting of DomUs linked into /etc/xen/auto?
Yes, I would guess too.... but it is not in the alpha order - at least in my case... Yes, You ar right, I can look into the script and try to understand it :-) It seems I will have no other chance :-)) Thanx for pointer. I''ll try. Archie -----Original Message----- From: Todd Deshane [mailto:deshantm@gmail.com] Sent: Friday, February 29, 2008 11:09 PM To: Artur Linhart - Linux communication Cc: Xen-Users Subject: Re: [Xen-users] How can be defined the order of the starting of DomUs linked into /etc/xen/auto? Hi Archie, On Fri, Feb 29, 2008 at 2:20 PM, Artur Linhart - Linux communication <AL.LINUX@bcpraha.com> wrote:> > > > > Hello, > > > > I use Xen 3.1.0 for longer time, but I still have one problem-> how could I define the order of the starting of the DomU instances whichare> automatically restored/started if the DOm0 starts? > > > > Thics can be important - for example, I want to start the > database before tomcat starts, I want to start tomcat before load > balancer... etc. > > > > I have truied to name the links in the /etc/xen/auto/ in some > waz which I wanted this will be started (something like 000-database, > 100-webserver, 200=loadbalancer) but this did not helped to me. > > > > Does anybody know, what could be the solution for it or from > which source just the starting process takes the order of the startings? > >You should take a look at your xendomains init script. Usually it is stored in /etc/init.d/>From that you should be able to determine how it picks the guestorder. I would have guessed that it would be in alpha order based on the directory listing... Best Regards, Todd> > Thanx in advance, > > > > Archie > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >__________ Informace od NOD32 2912 (20080229) __________ Tato zprava byla proverena antivirovym systemem NOD32. http://www.nod32.cz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen
2008-Mar-02 18:10 UTC
Re: [Xen-users] How can be defined the order of the starting of DomUs linked into /etc/xen/auto?
Artur Linhart - Linux communication wrote:> > Hello, > > I use Xen 3.1.0 for longer time, but I still have one problem – how > could I define the order of the starting of the DomU instances which > are automatically restored/started if the DOm0 starts? > > Thics can be important – for example, I want to start the database > before tomcat starts, I want to start tomcat before load balancer... etc. > > I have truied to name the links in the /etc/xen/auto/ in some waz > which I wanted this will be started (something like 000-database, > 100-webserver, 200=loadbalancer) but this did not helped to me. >Guests may start in the order that you specified, but there is no guarantee that the database service on 000-database would be started before the web service on 100-webserver and the loadbalancer service on 200-loadbalancer after the webservice on 10-webservice. Xendomain service just starts guests in the order specified and guests are started in the background, so time of the start up of services in the guest may vary. You may try adjusting the value of "XENDOMAINS_CREATE_USLEEP" in /etc/sysconfig/xendomains to a sensible value to get the result that you expected. Probably 3 minutes or 4 minutes. --Sadique> Does anybody know, what could be the solution for it or from which > source just the starting process takes the order of the startings? > > Thanx in advance, > > Archie > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andy Smith
2008-Mar-03 05:32 UTC
Re: [Xen-users] How can be defined the order of the starting of DomUs linked into /etc/xen/auto?
On Fri, Feb 29, 2008 at 08:20:42PM +0100, Artur Linhart - Linux communication wrote:> I use Xen 3.1.0 for longer time, but I still have one problem - > how could I define the order of the starting of the DomU instances which are > automatically restored/started if the DOm0 starts?Influencing the ordering by naming the files 000-foo.conf and 010-bar.conf and so on works for me as a blunt tool. As others have pointed out, just because you start domfoo before dombar does not mean that services in domfoo will be avilable to dombar by the time it needs them. As these two domains could one day end up on completely different machines, I think you will need to figure this situation into your application as opposed to at the operating system level. Further on this subject, starting domains from cold is quite a rare occurence for me. Most often I have rebooted a dom0 for a kernel update or whatever and the clean shutdown resulted in all domains being saved to disk. On start-up they restore from disk, in alphabetical order of the save files in /var/lib/xen/save/. Influencing the order they restore in proves to be slightly more challenging... Cheers, Andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users