How to reboot the Xen Virtual Machine when was at hung state.
If console is not working from the host(Dom0), the console was opened in order to use sysrq magic packages#xm console xenvm006
From other terminal on the node, run the below comamnd one by one.
#xm sysrq xenvm006 h
#xm sysrq xenvm006 m #should show the amount of memory been used
#xm sysrq xenvm006 t #should show the current tasks
the output is "console is opened and was not good" also "vm was with out resources"
Check the xentop, if a high cpu usage is shown like 200%
Then reboot the virtual machine.
Open one more terminal & run the below command.
#xm destroy xenvm006
if the virtual machine is running under cluster, first disable the vm from cluster to avoid failover.
#clusvcadm -d vm:xenvm006
Then destroy the virtual machine.
Because as the vm is hung state, clusvcadm -d wont do a clean shutdown, so we need to destroy it manually.
#xm create xenvm006 (will start the vm)
#clusvcadm -e vm:xenvm006 (with cluster)
No comments:
Post a Comment