[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] Can`t uninstall VM



I am trying to detach ISCSI SR

[root@xenserver-2 ~]# xe pbd-list sr-uuid=cf294ed7-c6bf-d01c-3899-bb99bb56c0dc
uuid ( RO)ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : c42ca367-9118-914e-c7c2-1e2c84a824ed
ÂÂÂÂÂÂÂÂÂÂÂÂ host-uuid ( RO): 339c6ac7-927f-4dde-a64a-666e9c57f408
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ sr-uuid ( RO): cf294ed7-c6bf-d01c-3899-bb99bb56c0dc
ÂÂÂÂÂÂÂÂ device-config (MRO): multihomelist: 192.168.2.214:3260; SCSIid: 14f504e46494c45523363636338382d516c36632d374f4d53; targetIQN: iqn.2006-01.com.openfiler:tsn.a6f66366d865; port: 3260; target: 192.168.2.214
ÂÂÂ currently-attached ( RO): true

[root@xenserver-2 ~]# xe pbd-list sr-uuid=cf294ed7-c6bf-d01c-3899-bb99bb56c0dc
uuid ( RO)ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : c42ca367-9118-914e-c7c2-1e2c84a824ed
ÂÂÂÂÂÂÂÂÂÂÂÂ host-uuid ( RO): 339c6ac7-927f-4dde-a64a-666e9c57f408
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ sr-uuid ( RO): cf294ed7-c6bf-d01c-3899-bb99bb56c0dc
ÂÂÂÂÂÂÂÂ device-config (MRO): multihomelist: 192.168.2.214:3260; SCSIid: 14f504e46494c45523363636338382d516c36632d374f4d53; targetIQN: iqn.2006-01.com.openfiler:tsn.a6f66366d865; port: 3260; target: 192.168.2.214
ÂÂÂ currently-attached ( RO): true


[root@xenserver-2 ~]# xe vdi-destroy uuid=afc680f9-3a49-4e02-8d71-004efffe2759
This operation cannot be performed because this VDI is in use by some other operation
vdi: afc680f9-3a49-4e02-8d71-004efffe2759 (OracleLinux)
operation: destroy

[root@xenserver-2 ~]# xe vbd-list vdi-uuid=afc680f9-3a49-4e02-8d71-004efffe2759
uuid ( RO)ÂÂÂÂÂÂÂÂÂÂÂÂ : ed1bc66a-5961-fe7a-5e4c-6480bbcdd57e
ÂÂÂÂÂÂÂÂÂ vm-uuid ( RO): 85c11607-11bb-48e2-983c-abcf6ec0b57f
ÂÂÂ vm-name-label ( RO): Control domain on host: xenserver-2
ÂÂÂÂÂÂÂÂ vdi-uuid ( RO): afc680f9-3a49-4e02-8d71-004efffe2759
ÂÂÂÂÂÂÂÂÂÂÂ empty ( RO): false
ÂÂÂÂÂÂÂÂÂÂ device ( RO): sm/backend/cf294ed7-c6bf-d01c-3899-bb99bb56c0dc/afc680f9-3a49-4e02-8d71-004efffe2759




2014-06-05 13:34 GMT+03:00 Simon Beaumont <simon.beaumont@xxxxxxxxxx>:


> -----Original Message-----
> From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxx] On
> Behalf Of Volodymyr Kotulskyi
> Sent: Thursday 05 June 2014 11:10
> To: xen-api@xxxxxxxxxxxxx
> Subject: [Xen-API] Can`t uninstall VM
>
> The server was rebooted during VM creation and now I can`t destroy it
> Please advice how to uninstall Âthis VM ?
>
>
>
> [root@xenserver-2 ~]# xe vbd-list vdi-uuid=afc680f9-3a49-4e02-8d71-
> 004efffe2759
> uuid ( RO) Â Â Â Â Â Â : ed1bc66a-5961-fe7a-5e4c-6480bbcdd57e
> Â Â Â Â Â vm-uuid ( RO): 85c11607-11bb-48e2-983c-abcf6ec0b57f
> Â Â vm-name-label ( RO): Control domain on host: xenserver-2
> Â Â Â Â Âvdi-uuid ( RO): afc680f9-3a49-4e02-8d71-004efffe2759
> Â Â Â Â Â Â empty ( RO): false
> Â Â Â Â Â Âdevice ( RO): sm/backend/cf294ed7-c6bf-d01c-3899-
> bb99bb56c0dc/afc680f9-3a49-4e02-8d71-004efffe2759
>
> [root@xenserver-2 ~]# xe vm-destroy uuid=85c11607-11bb-48e2-983c-abcf6ec0b57f
> You attempted an operation on a VM that was not in an appropriate power state
> at the time; for example, you attempted to start a VM that was already
> running. ÂThe parameters returned are the VM's handle, and the expected and
> actual VM state at the time of the call.
> vm: 85c11607-11bb-48e2-983c-abcf6ec0b57f (Control domain on host: xenserver-
> 2)
> expected: halted, suspended
> actual: running
>
> [root@xenserver-2 ~]# xe vm-shutdown --force uuid=85c11607-11bb-48e2-983c-
> abcf6ec0b57f
> Error: No matching VMs found
>
> [root@xenserver-2 ~]# xe vm-reset-powerstate --force uuid=85c11607-11bb-48e2-
> 983c-abcf6ec0b57f
> Error: No matching VMs found

You are trying to shutdown/destroy the Control domain (dom0). This is probably not what you intended. I have just tried the same and get the same error ("Error: No matching VMs found"). This is not very informative but it's because it is dom0.

-Si



--
Best wishes.
Vladimir
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.