[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-API] RE: XCP / xenAPI shows no vms but vm is still running
- To: 'Chonduy Nguyen' <chonduy9@xxxxxxxxx>
- From: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
- Date: Fri, 5 Mar 2010 23:15:26 +0000
- Accept-language: en-US
- Acceptlanguage: en-US
- Cc: Stephen, "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
- Delivery-date: Fri, 05 Mar 2010 15:15:40 -0800
- List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
- Thread-index: Acq8m8WI2POoA0geRAycI6CTaPvn1QAHXFlw
- Thread-topic: XCP / xenAPI shows no vms but vm is still running
Hi,
Xapi considers a VM to be âresident-onâ one host at a time. It
sounds like youâre interested in which *domains* are running on the host
(each domain has the same UUID as the corresponding VM). Have a look at the
command âlist_domainsâ. If some domains need cleaned up itâs possible to run
commands like â/opt/xensource/debug/destroy_domain âdomid <domid>â
HTH,
Dave
From: Chonduy Nguyen
[mailto:chonduy9@xxxxxxxxx]
Sent: 05 March 2010 19:41
To: Dave Scott
Cc: xen-api@xxxxxxxxxxxxxxxxxxx; Stephen Spector
Subject: Re: XCP / xenAPI shows no vms but vm is still running
Hi Dave,
Since the current XCP didnot provide Fault Tolerant and HA yet, we tried to
write a simple monitoring where we ping the node and check
if this node is unreachable - for whatever reason - could be network connection
down or could be physical hardware etc...
we will disconnect this problem node out of XCP network by filter
traffic from this node to storage network and other nodes -using iptables
filtering and we want to quickly move Vms to start at other mahines -
Therefore,we need to use reset-power-state
However, since we keep monitoring this node - the node could be back up again.
That time we want to find a way to check if VMs running - but XCP
showed that VMs not there - but actually VMs still there.
Can you please suggest a way to find out if VMs running on machine or not ? XCP
will fail to show this - I am wondering is there anyway we can detect
VMs running on OS?
Please let me know
Thanks
ChonDuy/TNguyen
From: Dave Scott
<Dave.Scott@xxxxxxxxxxxxx>
To: Chonduy Nguyen <chonduy9@xxxxxxxxx>;
"xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Cc: Stephen Spector <stephen.spector@xxxxxxxxxx>
Sent: Fri, March 5, 2010 4:09:47 AM
Subject: RE: XCP / xenAPI shows no vms but vm is still running
Hi,
You should only use âreset-power-stateâ on VMs which have failed
e.g. if the host has failed. If the VMs are still running then you shouldnât do
this â if you start a VM twice then there is a high chance of disk corruption.
Cheers,
Dave
From: Chonduy Nguyen
[mailto:chonduy9@xxxxxxxxx]
Sent: 05 March 2010 01:18
To: xen-api@xxxxxxxxxxxxxxxxxxx
Cc: Dave Scott; Stephen Spector
Subject: XCP / xenAPI shows no vms but vm is still running
Hi
I tried the case when the node - said "P" is unreachable by
interface down - so, we restart Vms of that machine to another machine by
doing reset-power-state first and call vms to start at other machine said
node "A"
However when the problem node "P" is up again - xenAPI
shows that there is no Vm running on it- Which is wrong, Vms should be
running.
I tested this by stop the vm on "A" to start that vm on the
"P" - "P" complains that
[root@quindecim ~]# xe vm-start vm=ken-debian-vm-2 on=quindecim
The server failed to handle your request, due to an internal error. The
given message may give details useful for debugging the problem.
message: Failure("The VDI
57a82bd4-a889-42ff-94d3-479a2618f2ec is already attached in RW mode; it can't
be attached in RO mode!")
After I reboot the node, vm can start. So, is there any way I can detect
that VMs are currently running on the "P" problem machine?
after the Vms relocated to other machine, info from XenAPI showed that that
machine has no VMs ( which is incorrect!)
Thanks
ChonDuy/Tnguyen
|
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|