[one-users] Failed to execute tm_detach_ SOLVED

haseningo at gmx.de haseningo at gmx.de
Fri Jul 27 02:15:37 PDT 2012


This error is correct, i changed my linking-path:

http://lists.opennebula.org/pipermail/users-opennebula.org/2012-July/009641.html

so I have to make the same changes at /var/lib/one/remotes/tm/shared/mvds too

bye



-------- Original-Nachricht --------
> Datum: Fri, 27 Jul 2012 10:58:23 +0200
> Von: haseningo at gmx.de
> An: users at lists.opennebula.org
> Betreff: [one-users] Failed to execute tm_detach

> Hi,
> 
> I used the new disk-hotplug feature from opennebula 3.6. the attaching of
> one disk into a windows-vm works perfect. but, I cannot detach the new
> device and the blockdevice is blocked for this VM. 
> 
> thanks in advance
> 
> LOGFILE:
> 
> Fri Jul 27 09:44:15 2012 [VMM][I]: ln: Linking /dev/one_vm/linuxtest2disk1
> in node-a.mydomain:/var/lib/one//datastores/0/26/disk.5
> Fri Jul 27 09:44:15 2012 [VMM][I]: ExitCode: 0
> Fri Jul 27 09:44:15 2012 [VMM][I]: Successfully execute transfer manager
> driver operation: tm_attach.
> Fri Jul 27 09:44:16 2012 [VMM][I]: ExitCode: 0
> Fri Jul 27 09:44:16 2012 [VMM][I]: Successfully execute virtualization
> driver operation: attach_disk.
> Fri Jul 27 09:44:16 2012 [VMM][E]: VM Disk Successfully attached.
> Fri Jul 27 09:44:34 2012 [VMM][I]: ExitCode: 0
> Fri Jul 27 09:44:34 2012 [VMM][D]: Monitor Information:
> 	CPU   : 8
> 	Memory: 2097152
> 	Net_TX: 690657
> 	Net_RX: 29033838
> Fri Jul 27 09:45:34 2012 [VMM][I]: ExitCode: 0
> Fri Jul 27 09:45:34 2012 [VMM][D]: Monitor Information:
> 	CPU   : 8
> 	Memory: 2097152
> 	Net_TX: 794919
> 	Net_RX: 29072674
> Fri Jul 27 09:46:34 2012 [VMM][I]: ExitCode: 0
> Fri Jul 27 09:46:34 2012 [VMM][D]: Monitor Information:
> 	CPU   : 8
> 	Memory: 2097152
> 	Net_TX: 795116
> 	Net_RX: 29076230
> Fri Jul 27 09:46:58 2012 [VMM][I]: ExitCode: 0
> Fri Jul 27 09:46:58 2012 [VMM][I]: Successfully execute virtualization
> driver operation: detach_disk.
> Fri Jul 27 09:46:58 2012 [VMM][I]: Command execution fail:
> /var/lib/one/remotes/tm/shared/mvds node-a.mydomain:/var/lib/one//datastores/0/26/disk.5
> /dev/one_vm/linuxtest2disk1 26 104
> Fri Jul 27 09:46:58 2012 [VMM][I]: mvds: Moving
> /var/lib/one/datastores/0/26/disk.5 to datastore as
> /var/lib/one/datastores//dev/one_vm/linuxtest2disk1
> Fri Jul 27 09:46:58 2012 [VMM][E]: mvds: Command "umask 0007
> Fri Jul 27 09:46:58 2012 [VMM][I]: SRC_READLN=$(readlink -f
> /var/lib/one/datastores/0/26/disk.5)
> Fri Jul 27 09:46:58 2012 [VMM][I]: DST_READLN=$(readlink -f
> /var/lib/one/datastores//dev/one_vm/linuxtest2disk1)
> Fri Jul 27 09:46:58 2012 [VMM][I]: 
> Fri Jul 27 09:46:58 2012 [VMM][I]: if [ \( -L
> /var/lib/one/datastores/0/26/disk.5 \) -a \( "$SRC_READLN" = "$DST_READLN" \) ] ; then
> Fri Jul 27 09:46:58 2012 [VMM][I]: echo "Not moving files to image repo,
> they are the same"
> Fri Jul 27 09:46:58 2012 [VMM][I]: else
> Fri Jul 27 09:46:58 2012 [VMM][I]: mv -f
> /var/lib/one/datastores/0/26/disk.5 /var/lib/one/datastores//dev/one_vm/linuxtest2disk1
> Fri Jul 27 09:46:58 2012 [VMM][I]: fi" failed: mv: cannot move
> `/var/lib/one/datastores/0/26/disk.5' to
> `/var/lib/one/datastores//dev/one_vm/linuxtest2disk1': No such file or directory
> Fri Jul 27 09:46:58 2012 [VMM][E]: Could not move image
> /var/lib/one/datastores//dev/one_vm/linuxtest2disk1
> Fri Jul 27 09:46:58 2012 [VMM][I]: ExitCode: 1
> Fri Jul 27 09:46:58 2012 [VMM][I]: Failed to execute transfer manager
> driver operation: tm_detach.
> Fri Jul 27 09:46:58 2012 [VMM][E]: Error detaching VM Disk: Could not move
> image /var/lib/one/datastores//dev/one_vm/linuxtest2disk1
> Fri Jul 27 09:47:25 2012 [VMM][I]: Command execution fail:
> /var/tmp/one/vmm/kvm/detach_disk one-26 /var/lib/one//datastores/0/26/disk.5 vdf 5 26
> node-a.mydomain
> Fri Jul 27 09:47:25 2012 [VMM][E]: detach_disk: Command "virsh --connect
> qemu:///system detach-disk --domain one-26 --target vdf" failed: error: No
> found disk whose source path or target is vdf
> Fri Jul 27 09:47:25 2012 [VMM][E]: Could not detach vdf from one-26
> Fri Jul 27 09:47:25 2012 [VMM][I]: ExitCode: 1
> Fri Jul 27 09:47:25 2012 [VMM][I]: Failed to execute virtualization driver
> operation: detach_disk.
> Fri Jul 27 09:47:25 2012 [VMM][E]: Error detaching VM Disk: Could not
> detach vdf from one-26
> Fri Jul 27 09:47:34 2012 [VMM][I]: ExitCode: 0
> Fri Jul 27 09:47:34 2012 [VMM][D]: Monitor Information:
> 	CPU   : 8
> 	Memory: 2097152
> 	Net_TX: 802885
> 	Net_RX: 29082007
> Fri Jul 27 09:47:36 2012 [VMM][I]: Command execution fail:
> /var/tmp/one/vmm/kvm/detach_disk one-26 /var/lib/one//datastores/0/26/disk.5 vdf 5 26
> node-a.mydomain
> Fri Jul 27 09:47:36 2012 [VMM][E]: detach_disk: Command "virsh --connect
> qemu:///system detach-disk --domain one-26 --target vdf" failed: error: No
> found disk whose source path or target is vdf
> Fri Jul 27 09:47:36 2012 [VMM][E]: Could not detach vdf from one-26
> Fri Jul 27 09:47:36 2012 [VMM][I]: ExitCode: 1
> Fri Jul 27 09:47:36 2012 [VMM][I]: Failed to execute virtualization driver
> operation: detach_disk.
> Fri Jul 27 09:47:36 2012 [VMM][E]: Error detaching VM Disk: Could not
> detach vdf from one-26
> Fri Jul 27 09:48:34 2012 [VMM][I]: ExitCode: 0
> Fri Jul 27 09:48:34 2012 [VMM][D]: Monitor Information:
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



More information about the Users mailing list