[one-users] failed to attached disk in KVM

Javier Fontan jfontan at opennebula.org
Mon Dec 3 02:56:01 PST 2012


I think I was wrong with DRIVER=raw. The correct driver should be
"file". Ca you try again with that type?

Can you also send me the disk.x.attach file generated if it still
gives you trouble?

On Tue, Nov 27, 2012 at 6:55 PM, jd daniel ch <junix88 at gmail.com> wrote:
> Hello Javier,
>
> I followed your recommendation BUT still I got the same error. Is there any
> way to address the issue? I haven't upgraded to 3.8.1 still using 3.6 yet.
>
> Regards,
>
> Junix
>
>
> On Mon, Nov 26, 2012 at 4:54 AM, Javier Fontan <jfontan at opennebula.org>
> wrote:
>>
>> I can not reproduce this problem in 3.8.1. Try to add DRIVER="raw" to
>> the image before attaching it.
>>
>> 2012/11/24 jd daniel ch <junix88 at gmail.com>:
>> > Hello there,
>> >
>> > Scenario: OpenNebula 3.6+CentOS 6.3x86_64bit
>> >
>> > Issues: When I attached Disk (Type: Existing Image; Device prefix: sd)
>> > on my
>> > VM. Image created dev prefix is "sd", target is "sdb".
>> >
>> > Error log below when I attached the disk -
>> >
>> > Fri Nov 23 16:54:50 2012 [VMM][I]: Successfully execute transfer manager
>> > driver operation: tm_attach.
>> > Fri Nov 23 16:54:51 2012 [VMM][I]: Command execution fail:
>> > /var/tmp/one/vmm/kvm/attach_disk one-305
>> > /var/lib/one//datastores/0/305/disk.2 sdb 1
>> >
>> > PFZNTV9EUklWRVJfQUNUSU9OX0RBVEE+PEhPU1Q+c3dhbi5ndGtjZW50cmFsLm5ldDwvSE9TVD48TkVUX0RSVj5kdW1teTwvTkVUX0RSVj48TUlHUl9IT1NULz48TUlHUl9ORVRfRFJWLz48REVQTE9ZX0lEPm9uZS0zMDU8L0RFUExPWV9JRD48TE9DQUxfREVQTE9ZTUVOVF9GSUxFLz48UkVNT1RFX0RFUExPWU1FTlRfRklMRS8+PENIRUNLUE9JTlRfRklMRS8+PFRNX0NPTU1BTkQ+PCFbQ0RBVEFbQ0xPTkUgaXNjc2kgaXFuLjIwMTItMDgubmV0Lm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UU+MTM1MjM5Mjc4MzwvUlNUSU1FPjxSRVRJTUU+MDwvUkVUSU1FPjxFU1RJTUU+MDwvRVNUSU1FPjxFRVRJTUU+MDwvRUVUSU1FPjxSRUFTT04+MDwvUkVBU09OPjwvSElTVE9SWT48L0hJU1RPUllfUkVDT1JEUz48L1ZNPjwvVk1NX0RSSVZFUl9BQ1RJT05fREFUQT4=
>> > 305 swan.gtkcentral.net
>> > Fri Nov 23 16:54:51 2012 [VMM][E]: attach_disk: Command "virsh --connect
>> > qemu:///system attach-device one-305
>> > /var/lib/one//datastores/0/305/disk.2.attach" failed: error: Failed to
>> > attach device from /var/lib/one//datastores/0/305/disk.2.attach
>> > Fri Nov 23 16:54:51 2012 [VMM][I]: error: internal error unable to
>> > execute
>> > QEMU command 'device_add': Parameter 'driver' expects a driver name
>> > Fri Nov 23 16:54:51 2012 [VMM][E]: Could not attach
>> > /var/lib/one//datastores/0/305/disk.2 (sdb) to one-305
>> > Fri Nov 23 16:54:51 2012 [VMM][I]: ExitCode: 1
>> > Fri Nov 23 16:54:51 2012 [VMM][I]: Failed to execute virtualization
>> > driver
>> > operation: attach_disk.
>> > Fri Nov 23 16:54:51 2012 [VMM][E]: Error attaching new VM Disk: Could
>> > not
>> > attach /var/lib/one//datastores/0/305/disk.2 (sdb) to one-305
>> > Fri Nov 23 16:55:13 2012 [VMM][I]: ExitCode: 0
>> >
>> >
>> > *** fdisk from my KVM
>> > [root at schoolproject-cloud ~]# fdisk -l
>> >
>> > Disk /dev/sda: 53.7 GB, 53687091200 bytes
>> > 255 heads, 63 sectors/track, 6527 cylinders
>> > Units = cylinders of 16065 * 512 = 8225280 bytes
>> > Sector size (logical/physical): 512 bytes / 512 bytes
>> > I/O size (minimum/optimal): 512 bytes / 512 bytes
>> > Disk identifier: 0x000c1405
>> >
>> >    Device Boot      Start         End      Blocks   Id  System
>> > /dev/sda1   *           1          64      512000   83  Linux
>> > Partition 1 does not end on cylinder boundary.
>> > /dev/sda2              64        6528    51915776   8e  Linux LVM
>> >
>> > Disk /dev/mapper/VolGroup-lv_root: 52.1 GB, 52084867072 bytes
>> > 255 heads, 63 sectors/track, 6332 cylinders
>> > Units = cylinders of 16065 * 512 = 8225280 bytes
>> > Sector size (logical/physical): 512 bytes / 512 bytes
>> > I/O size (minimum/optimal): 512 bytes / 512 bytes
>> > Disk identifier: 0x00000000
>> >
>> >
>> > Disk /dev/mapper/VolGroup-lv_swap: 1073 MB, 1073741824 bytes
>> > 255 heads, 63 sectors/track, 130 cylinders
>> > Units = cylinders of 16065 * 512 = 8225280 bytes
>> > Sector size (logical/physical): 512 bytes / 512 bytes
>> > I/O size (minimum/optimal): 512 bytes / 512 bytes
>> > Disk identifier: 0x00000000
>> >
>> > Any help is very much appreciated.
>> >
>> > Thank you.
>> >
>> > Junix
>> >
>> > _______________________________________________
>> > Users mailing list
>> > Users at lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>>
>>
>>
>> --
>> Javier Fontán Muiños
>> Project Engineer
>> OpenNebula - The Open Source Toolkit for Data Center Virtualization
>> www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula
>
>



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula


More information about the Users mailing list