Hi, i would like to know how domUs are shutdown when dom0 is shutdown. It seems that on debian, xend and xendomains stop "at the same time" during shutdown. I am not sure if this is the safest way to shutdown domUs especially if they are busy writing on drives etc.. lrwxrwxrwx 1 root root 14 2006-03-06 21:45 K20xend -> ../init.d/xend lrwxrwxrwx 1 root root 20 2006-05-19 21:51 K20xendomains -> ../init.d/xendomains Does xend send "init 0" to all domUs during shutdown before itself terminates? thanks _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ales Jagodnik wrote:> Does xend send "init 0" to all domUs during shutdown before itself terminates?Normally it tries to "freeze" them. It saves their state information and reloads that information when dom0 boots again. Pretty nice. :-) If you want to send a nice shutdown (like ini 0), IIRC you have to type "xm shudown $vm". Wilmer van der Gaast. -- +-------- .''''`. - -- ---+ + - -- --- ---- ----- ------+ | wilmer : :'' : gaast.net | | OSS Programmer www.bitlbee.org | | lintux `. `~'' debian.org | | Full-time geek wilmer.gaast.net | +--- -- - ` ---------------+ +------ ----- ---- --- -- - + _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks. This "tries" worries me ;-). Well, then I will have to devise a plan how to freeze dom0 shutdown so that domU will shutdown properly with "xendomains stop" (K??xendomains) script. DomU must really shutdown first before anything in dom0 shuts down. thanks> Ales Jagodnik wrote: > > Does xend send "init 0" to all domUs during shutdown before itself terminates? > > Normally it tries to "freeze" them. It saves their state information and > reloads that information when dom0 boots again. Pretty nice. :-) > > If you want to send a nice shutdown (like ini 0), IIRC you have to type > "xm shudown $vm". > > > Wilmer van der Gaast. >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You don''t need to do that. As Wilmer already mentioned, xendomains freezes the domU state and saves it in a file. When the dom0 boots back up, xendomains will restore the state in which the domU was when dom0 was shutting down. In other words it does the job for you already. If you still want to shutdown the domains and NOT save their states you could disable xendomains and place a script which just issue a shutdown to each xen domain running. On 5/21/06, Ales Jagodnik <ales.jagodnik@interseek.si> wrote:> > Thanks. > > This "tries" worries me ;-). > > Well, then I will have to devise a plan how to freeze dom0 shutdown so > that > domU will shutdown properly with "xendomains stop" (K??xendomains) script. > > DomU must really shutdown first before anything in dom0 shuts down. >-- regards, Anand Gupta _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On May 21, 2006, at 12:18 PM, Anand Gupta wrote:> You don''t need to do that. As Wilmer already mentioned, xendomains > freezes the domU state and saves it in a file. When the dom0 boots > back up, xendomains will restore the state in which the domU was when > dom0 was shutting down. In other words it does the job for you > already. > > If you still want to shutdown the domains and NOT save their states > you could disable xendomains and place a script which just issue a > shutdown to each xen domain running.wouldn''t you just edit /etc/sysconfig/xendomains [ that''s the centOS location, not sure where it ends up on debian. ] ## Type: string ## Default: /var/lib/xen/save # # Directory to save running domains to when the system (dom0) is # shut down. Will also be used to restore domains from if # XENDOMAINS_RESTORE # is set (see below). Leave empty to disable domain saving on shutdown # (e.g. because you rather shut domains down). # If domain saving does succeed, SHUTDOWN will not be executed. # XENDOMAINS_SAVE=/var/lib/xen/save --fess _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users