[one-users] Disk Hotplug Problem

chenxiang at aquala-tech.com chenxiang at aquala-tech.com
Thu Apr 18 03:04:29 PDT 2013


Ahhh..... That works! Thanks a lot for the tip. (It tooks me several days
to reinstall everything again and again. I should have asked earlier.)

Chen Xiang

> 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
>





More information about the Users mailing list