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