hi,mario wu
you can check if  /srv/cloud/one/datastores/0/11/disk.1  exist on the node 
which the vm running on.




chenpiaoping123

From: mario wu
Date: 2013-06-06 11:16
To: users
Subject: [one-users] attach ceph image problem.
hi,all
      recently,i tested opennebula 4.0.1 + ceph , every thing is fine,except 
when i attach a ceph disk image to a running VM.
     the log show me :"
Thu Jun 6 11:07:33 2013 [VMM][E]: attach_disk: Command "virsh --connect 
qemu:///system attach-device one-11 
/srv/cloud/one/datastores/0/11/disk.1.attach" failed: error: Failed to attach 
device from /srv/cloud/one/datastores/0/11/disk.1.attach
Thu Jun 6 11:07:33 2013 [VMM][I]: error: Unable to allow access for disk path 
/srv/cloud/one/datastores/0/11/disk.1: No such file or directory
Thu Jun 6 11:07:33 2013 [VMM][E]: Could not attach 
/srv/cloud/one/datastores/0/11/disk.1 (vdb) to one-11
Thu Jun 6 11:07:33 2013 [VMM][I]: ExitCode: 1
Thu Jun 6 11:07:33 2013 [VMM][I]: Failed to execute virtualization driver 
operation: attach_disk.
Thu Jun 6 11:07:33 2013 [VMM][E]: Error attaching new VM Disk: Could not attach 
/srv/cloud/one/datastores/0/11/disk.1 (vdb) to one-11"



then i check the /srv/cloud/one/datastores/0/11/disk.1.attach file.
"root@kvm-236051-ceph-test:/srv/cloud/one/datastores/0/11# cat disk.1.attach
<disk type='file' device='disk'>
  <driver name='qemu' type='raw' cache='writeback'/>
  <source file='/srv/cloud/one/datastores/0/11/disk.1'/>
  <target dev='vdb'/>
  
</disk>
"


obviously one error handle the ceph image to VM. i also try to manual attach 
ceph image to vm, it's ok.
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to