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

Re: [Xen-API] Problem with unplug vbd from control domain host


  • To: <xen-api@xxxxxxxxxxxxx>
  • From: Piotr Teodorowski <piotr.teodorowski@xxxxxxxx>
  • Date: Tue, 2 Jul 2013 11:22:40 +0200
  • Delivery-date: Tue, 02 Jul 2013 09:23:11 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

On Thursday 27 of June 2013 09:27:45 Piotr Teodorowski wrote:
> Hi,
> 
> We use XCP 1.6.10-61809c (few servers in the pool) and we have problem with
> VDI that is attached to VM and Control domain host (we don't know why it is
> attached to Control domain host, we didn't attach it to dom0).
> 
> Investigation:
> xe vdi-list name-label=esiprap99-root
> uuid ( RO)                : f1e38b17-3a4c-458d-9cef-7cce43d793c3
>           name-label ( RW): esiprap99-root
>     name-description ( RW): Created by template provisioner
>              sr-uuid ( RO): 3c76b475-ecf2-92f9-7450-729d7f99dafb
>         virtual-size ( RO): 51539607552
>             sharable ( RO): false
>            read-only ( RO): false
> 
> xe vbd-list vdi-uuid=f1e38b17-3a4c-458d-9cef-7cce43d793c3
> uuid ( RO)             : c1caa0f9-e98b-a1f1-36ab-97fdeca69fdf
>           vm-uuid ( RO): f217c8cb-6756-0c97-b151-113acc2be7bd
>     vm-name-label ( RO): ESIPRAP99
>          vdi-uuid ( RO): f1e38b17-3a4c-458d-9cef-7cce43d793c3
>             empty ( RO): false
>            device ( RO): xvda
> 
> 
> uuid ( RO)             : aca48e11-91be-1a0f-feab-4da6a9aa554d
>           vm-uuid ( RO): 5a19e11c-a399-4824-8abe-24a2a488c4c1
>     vm-name-label ( RO): Control domain on host: evmprap09
>          vdi-uuid ( RO): f1e38b17-3a4c-458d-9cef-7cce43d793c3
>             empty ( RO): false
>            device ( RO): sm/backend/3c76b475-
> ecf2-92f9-7450-729d7f99dafb/f1e38b17-3a4c-458d-9cef-7cce43d793c3
> 
> Problem with unplug:
> xe vbd-unplug uuid=aca48e11-91be-1a0f-feab-4da6a9aa554d
> The server failed to handle your request, due to an internal error.  The
> given message may give details useful for debugging the problem.
> message: Storage_interface.Internal_error("Storage_access.No_VDI")
> 
> We need to move that vdi to another sotreage, but any kind of modyfication
> is impossible (resize/delete/move).
> There are none of tapdisk processes with open fd for the device
> /dev/sm/backend/3c76b475-
> ecf2-92f9-7450-729d7f99dafb/f1e38b17-3a4c-458d-9cef-7cce43d793c3 on
> evmprap09. There is no such device at all. Task list is empty.
> The problem is only in the pool, with FC (with multipath) storage. With
> iscsi storage or local storage there are no such problems.
> What can we do to resolve this problem?
> Any hints to avoid this situation?
> 
> Regards,
> --

I noticed, that moving VMs between storages may cause the problem (6 of 7 VMs 
moved without issue, with one VBD.unplug threw an exception).
What I did:
1. Power off VM
2. From xencenter click Move, then I chose destination storage
3. After few minutes moving has finished (no errors in xencenter)
4. Power on VM (without any problems).

In xensource.log on pool-master:
Jul  1 03:19:56 evmprap28 xapi: [debug|evmprap28|52240010 INET 0.0.0.0:80|
VBD.unplug R:de726df9764d|dispatcher] Server_helpers.exec exception_handler: 
Got exception INTERNAL_ERROR: [ 
Storage_interface.Internal_error("Storage_access.No_VDI") ]
...
Jul  1 03:19:56 evmprap28 xapi: [debug|evmprap28|52240298 INET 0.0.0.0:80|
VBD.destroy R:840f44d22c14|dispatcher] Server_helpers.exec exception_handler: 
Got exception OPERATION_NOT_ALLOWED: [ VBD '985bd473-3f8e-5eb8-
d578-374dbc2c1969' still attached to 'e7c21fdb-2317-4a84-a9ba-27d685b4e2ef' ]

And 'xe vdi-list' reports, that disk is attached to VM and control domain 
host.

I rebooted that control domain host, but it didn't resolve my problem. VM's 
disk is still attached to that control domain host.

What else can I do to unplug disk from host?

Regards,
--
Piotr Teodorowski

_______________________________________________
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®.