<div dir="ltr">You need to rescan the scsi bus in the guest, somthing similar to:<div><br></div><div>echo "- - -" > /sys/class/scsi_host/host0/scan<br></div><div><br></div><div style>host0 is you scsi adapter....</div>
<div style><br></div><div style><br></div><div style>Cheers</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 18, 2013 at 11:27 AM, <span dir="ltr"><<a href="mailto:chenxiang@aquala-tech.com" target="_blank">chenxiang@aquala-tech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I am having problem trying to hotplug a second disk to my VM's. I have a<br>
three-server setup, one running the front end, and the other two as the<br>
nodes. I am able to create VM's, doing live migrations, as well as other<br>
VM life cycle management tasks with CentOS 6.3 and Ubuntu 12.04 guests.<br>
Howver, when I try to hot plug a second disk for a VM, SunStone says that<br>
the operation is successful, but the second disk can not be found within<br>
the VM. (Disk availability verified by fdisk -l command.)<br>
<br>
The datablock was created from SunStone, in RAW format. If I add the<br>
datablock image to a VM template, the VM would boot with the second disk<br>
just fine. So, that datablock is working.<br>
<br>
/etc/libvirt/libvirtd.conf<br>
<br>
unix_sock_group = "cloud"<br>
<br>
/etc/libvirt/qemu.conf<br>
<br>
vnc_listen = "0.0.0.0"<br>
user = "root"<br>
group = "root"<br>
dynamic_ownership = 0<br>
<br>
Yes I do change the ownership of /var/run/libvirt/libvirt-sock to group<br>
cloud.<br>
<br>
The log for the hot plug operation:<br>
<br>
Thu Apr 18 17:26:24 2013 [VMM][I]: clone: Cloning<br>
/srv/cloud/one/var/datastores/1/b5e9aa35fbcb4ecf07f64e5d08852144 in<br>
192.168.100.113:/srv/cloud/one/var//datastores/0/6/disk.2<br>
Thu Apr 18 17:26:24 2013 [VMM][I]: ExitCode: 0<br>
Thu Apr 18 17:26:24 2013 [VMM][I]: Successfully execute transfer manager<br>
driver operation: tm_attach.<br>
Thu Apr 18 17:26:25 2013 [VMM][I]: ExitCode: 0<br>
Thu Apr 18 17:26:25 2013 [VMM][I]: Successfully execute virtualization<br>
driver operation: attach_disk.<br>
Thu Apr 18 17:26:25 2013 [VMM][I]: VM Disk successfully attached.<br>
<br>
Then I look inside the VM via fdisk -l, the second disk is not there.<br>
<br>
I try the same operation on 3.6, 3.8.3, and 3.9.80, all failed. What else<br>
can be wrong?<br>
<br>
Thanks a lot.<br>
<br>
Chen Xiang<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula
</div>