<div dir="ltr"><div><div><div><div>Hi<br><br>Currently we use Cpeh RBD as cinder volume. According to <a href="http://www.linux-kvm.org/page/Hotadd_pci_devices">http://www.linux-kvm.org/page/Hotadd_pci_devices</a>, we have Linux KVM guest (both CentOS 6.x and Ubuntu 12.04) support disk hot plugging, it works well.<br>
<br></div>But there is problem with Windows 2008 guest (2003 not tested). Described below:<br><br>1) Launch an Windows 2008 instance (with RedHat Virtio Driver installed), and attach a volume (newly created with nothing inside) to it, the volume would be successfully attached to /dev/vdb.<br>
<br></div>2) In Windows (guest machine), format this newly added disk. After formatting, it will show up in "My Computer" windows. Create any file (readme.txt with some text in it for example) inside the new disk. Then deatch the volume.<br>
<br>After about one or two minute, a message box would show up in Windows, saying that the device not properly removed, and the newly added disk would still show in "My Computer" window. But with "cinder list" command, we can see that the volume was successfully detached.<br>
<br>3) Now reattach to volume to instance, it would failed.<br></div><br></div>Libvirt log shows: <br><br><div><div><div><div>error : qemuMonitorJSONCheckError:357 : internal error unable to execute QEMU command '__com.redhat_drive_add': Duplicate ID 'drive-virtio-disk1' for drive<br>
<br><br></div><div>I googled yesterday afternoon, didn't find useful information. Would any one tell me whether Windows 2003/2008 as kvm fully virtualized guest supports disk hot plugging and removing or not? Or any possibility I have got something wrong?<br>
</div><div><br>Thanks for help!<br></div></div></div></div></div>