Bob Linkonij
2009-May-08 21:30 UTC
[Xen-users] Getting one Dom U Guest to wait to startup until another one''s done starting up?
Hey, I figured out easy enough that I can set the order of Dom U''s by adding 001_,002_, etc to the Guest configuration names in the /etc/xen/auto/ directory. This just seems to set the order they start up in. How do you get one Guest to wait for another to be completely UP? So if I have a File Server in Guest#1 and Guest#2 uses stuff on thte Guest#1 server I need to get Guest#2 to wait until the Guest#1 is completly running. How do I do that? Thanks a lot, Bob _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bob Linkonij
2009-May-12 19:24 UTC
[Xen-users] Re: Getting one Dom U Guest to wait to startup until another one''s done starting up?
No one has any ideas on this? Is it impossible? On Fri, May 8, 2009 at 2:30 PM, Bob Linkonij <boblnknj0@gmail.com> wrote:> Hey, > > I figured out easy enough that I can set the order of Dom U''s by > adding 001_,002_, etc to the Guest configuration names in the > /etc/xen/auto/ > directory. > > This just seems to set the order they start up in. > > How do you get one Guest to wait for another to be completely UP? So > if I have a File Server in Guest#1 and Guest#2 uses stuff on thte > Guest#1 server I need to get Guest#2 to wait until the Guest#1 is > completly running. > > How do I do that? > > Thanks a lot, > > Bob >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jason Brooks
2009-May-12 19:31 UTC
Re: [Xen-users] Re: Getting one Dom U Guest to wait to startup until another one''s done starting up?
Hello, I can think of an item: it''s the same as if you have separate servers with dependencies: create another rc script that runs after the network startup. have it use nmap, or something to ping the other system periodically and wait until the correct service(s) are up. then exit. Assuming you are running runlevel 3, create a link in /etc/rc3.d/ called S<xx>Wait that points to this script. change the <xx> part to be certain it runs after the networking script, but before the next script. --jason On May 12, 2009, at 12:24 PM, Bob Linkonij wrote:> No one has any ideas on this? Is it impossible? > > On Fri, May 8, 2009 at 2:30 PM, Bob Linkonij <boblnknj0@gmail.com> > wrote: >> Hey, >> >> I figured out easy enough that I can set the order of Dom U''s by >> adding 001_,002_, etc to the Guest configuration names in the >> /etc/xen/auto/ >> directory. >> >> This just seems to set the order they start up in. >> >> How do you get one Guest to wait for another to be completely UP? So >> if I have a File Server in Guest#1 and Guest#2 uses stuff on thte >> Guest#1 server I need to get Guest#2 to wait until the Guest#1 is >> completly running. >> >> How do I do that? >> >> Thanks a lot, >> >> Bob >> > > _______________________________________________ > 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
Bob Linkonij
2009-May-12 19:50 UTC
Re: [Xen-users] Re: Getting one Dom U Guest to wait to startup until another one''s done starting up?
Hey Jason, On Tue, May 12, 2009 at 12:31 PM, Jason Brooks <jason@petting-zoo.org> wrote:> Hello, > > I can think of an item: it''s the same as if you have separate servers with > dependencies: > > create another rc script that runs after the network startup. have it use > nmap, or something to ping the other system periodically and wait until the > correct service(s) are up. then exit. > > Assuming you are running runlevel 3, create a link in /etc/rc3.d/ called > S<xx>Wait that points to this script. change the <xx> part to be certain it > runs after the networking script, but before the next script.I never used nmap, but I guess I can figure it out. That''s a good idea. THanks a lot. I''m kindof surprised that Xen doesn''t have a "start this after that is up" function, because it does have a "start this after that starts" one. Bob _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-May-13 01:38 UTC
Re: [Xen-users] Re: Getting one Dom U Guest to wait to startup until another one''s done starting up?
On Wed, May 13, 2009 at 2:50 AM, Bob Linkonij <boblnknj0@gmail.com> wrote:> I''m kindof surprised that Xen doesn''t have a "start this after that is > up" function, because it does have a "start this after that starts" > one.>From xen''s perspective, there''s no way for it to know whether a domainhas completely "up" or not. Once it starts domU, that''s it. Besides, the notion of "up" can be different from one OS to another. Is it when login prompt is displayed? Cause on opensolaris (for example) the console login prompt is displayed early, sometimes even before sshd is started. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users