Skip to contentSkip to conversation

reboot issues and xm hangs {FC4]

DISCUSSION Tony Jones 2 participants 2 messages Mar 3, 2005

lore
Share & tools
lore

Tony Jones

author
#0 lore raw

I noticed some odd things with rebooting, xm list and xm console. Possibly related to the thread: "Strange xend problem shutting down domains"

[This is all with FedoraCore4 2.6.10-1.1155_FC4]

Have domains 0, 1 and 2 running.

Run /sbin/reboot on domain1.

The domain halts but doesn't reboot. Wait a few minutes.

Run 'xm list' on domain0. It shows domain1 in shutdown state.
Immediately rerun 'xm list' on domain0. It now shows domain1 in boot state.
[it's as though an xm list is necessary to reap some exit status]

But domain1 doesn't actually boot, or at least the console output doesn't indicate so.

Run 'xm console <dom1id>' and it shows the final output of the halt, but no boot messages:
Please stand by while rebooting the system...
md: stopping all md devices.
md: md0 switched to read-only mode.
Restarting system.

Quit out of the console with CTRL-]

At this point, running 'xm list' hangs. Interrupting it shows that Python is stuck on a recv.

Running 'init.d/xend restart', stops xend, waits, but fails to restart it.

Running 'init.d/xend start' gets things going again.

Thru all of this, domain2 is still fine.

At this point I can restart domain1 with xm create and all is well.

So, in short, reboot doesn't seem to work so good for me. I'm specifying 'restart=onreboot' in the config.

Tony

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw

(Patch Trivial] restart issues (was :Re: reboot issues and xm hangs {FC4])

Quoted 3 lines · Tony Jones

Running 'init.d/xend restart', stops xend, waits, but fails to restart it.

Running 'init.d/xend start' gets things going again.

Similar issue but 'xend start' didn't work. On rebooting dom0, didn't come up either. This is only tangential, but I think it would help to have an unconditional remove of the lockfile in init.d/xendomains. I think xend and xm are getting borked during a shutdown of a domain, and I'm not sure the lockfile gets cleared anywhere else - so upon reboot of dom0, domains don't get automatically built. (Minor nit). I'm probably missing something but I don't see the point of the xm return check and conditional remove(?)..

thanks,
Nivedita

xendomains.new renamed from xendomains +3 -2
@@ -96,9 +96,10 @@
 
     xm shutdown --all --wait --halt
 
-    RETVAL=$?
+#    RETVAL=$?
 
-    [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
+#    [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
+    rm -f $LOCKFILE
 
     on_fn_exit
 }