<div dir="ltr">wow nice feature.. I don't knew about this hotplug feature...<br>Thanks in advance<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-19 15:59 GMT-03:00 Alexandre DERUMIER <span dir="ltr"><<a href="mailto:aderumier@odiso.com" target="_blank">aderumier@odiso.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">>>You should always stop a VM to effectively remove a hard disk: the running VM doesn't free it until it is stopped. You can make changes in configured harddisks in PVE GUI but they won't be activated until next >>stop/start (reboot doesn't work AFAIK).<br>


<br>
</div>you can add hotplug:1 to vm config file, to enable live hotplug/unplug (disk,net)<br>
<br>
----- Mail original -----<br>
<br>
De: "Eneko Lacunza" <<a href="mailto:elacunza@binovo.es">elacunza@binovo.es</a>><br>
À: <a href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><br>
Envoyé: Dimanche 18 Mai 2014 21:15:36<br>
Objet: Re: [PVE-User] Error deleting Ceph volume from KVM virtual machine<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Hi Greg,<br>
<br>
You should always stop a VM to effectively remove a hard disk: the running VM doesn't free it until it is stopped. You can make changes in configured harddisks in PVE GUI but they won't be activated until next stop/start (reboot doesn't work AFAIK).<br>


<br>
That said, the remove error could be because of a timeout deleting the somewhat big disk.<br>
<br>
Cheers<br>
Eneko<br>
<br>
On 17/05/14 00:44, Greg Poirier wrote:<br>
<br>
<br>
<br>
I have a 1TB RBD volume attached to a KVM virtual machine. Removing the volume from this machine was somewhat problematic.<br>
<br>
<br>
While the machine is running:<br>
<br>
<br>
I selected the disk and clicked Remove. This cause the disk to appear as 'unused0' which mapped to the Ceph RBD volume.<br>
<br>
<br>
I then highlighted 'unused0' and clicked Remove again.<br>
<br>
<br>
I got three errors:<br>
One was a timeout error attempting to get flock the VM's lock file (/var/lock/qemu-server/lock-400.conf).<br>
Another was a connection timeout error.<br>
Another was an internal server error.<br>
<br>
<br>
I was unable to find any logs specifying the exact nature of any of these errors. pvedaemon and pveproxy both simply logged the request.<br>
<br>
<br>
I tried deleting the disk from Ceph directly which is when I discovered the watcher on the rbd_header object. I verified that it was the KVM process that held the lock on the RBD volume and shutdown the VM.<br>
<br>
<br>
While the machine is not running:<br>
<br>
<br>
After selecting the 'unused0' disk and clicking Remove the web interface froze for some time, and then finally came back with an Internal Server Error.<br>
<br>
<br>
The volume was no longer present in the web interface, and I confirmed both that the volume was no longer listed in rbd -p volumes ls -- as well as inspecting attempting to inspect all of the objects that used to make up the volume (rbd.stat returned an exception saying that the file wasn't found--confirming the volume's completed deletion).<br>


<br>
<br>
I am running PVE 3.1-24/060bd5a6 with the 2.6.32 kernel.<br>
<br>
<br>
Is this a known issue? Has this been fixed in later versions of Proxmox? Should I file a new bug? Is there any additional information I should attempt to gather before filing?<br>
<br>
<br>
Thanks!<br>
<br>
_______________________________________________<br>
pve-user mailing list <a href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a> <a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a><br>


<br>
<br>
<br>
--<br>
Zuzendari Teknikoa / Director Técnico<br>
Binovo IT Human Project, S.L.<br>
Telf. 943575997<br>
      943493611<br>
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 Oiartzun (Gipuzkoa) <a href="http://www.binovo.es" target="_blank">www.binovo.es</a><br>
_______________________________________________<br>
pve-user mailing list<br>
<a href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><br>
<a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a><br>
_______________________________________________<br>
pve-user mailing list<br>
<a href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><br>
<a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gilberto Ferreira<br>
</div>