<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">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>
</div>
<blockquote
cite="mid:CANpjuCsBEE5CJTvoJKFxEKbk4Gip-FA1A-tfMdxAQfrdV6yGaQ@mail.gmail.com"
type="cite">
<div dir="ltr">I have a 1TB RBD volume attached to a KVM virtual
machine. Removing the volume from this machine was somewhat
problematic.
<div><br>
</div>
<div>While the machine is running:</div>
<div><br>
</div>
<div>I selected the disk and clicked Remove. This cause the disk
to appear as 'unused0' which mapped to the Ceph RBD volume.</div>
<div><br>
</div>
<div>I then highlighted 'unused0' and clicked Remove again.</div>
<div><br>
</div>
<div>I got three errors:</div>
<div>One was a timeout error attempting to get flock the VM's
lock file (/var/lock/qemu-server/lock-400.conf).</div>
<div>Another was a connection timeout error.</div>
<div>Another was an internal server error.</div>
<div><br>
</div>
<div>I was unable to find any logs specifying the exact nature
of any of these errors. pvedaemon and pveproxy both simply
logged the request.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>While the machine is not running:</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>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).</div>
<div><br>
</div>
<div>I am running PVE 3.1-24/060bd5a6 with the 2.6.32 kernel.</div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>Thanks!</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
pve-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a>
<a class="moz-txt-link-freetext" href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943575997
943493611
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 Oiartzun (Gipuzkoa)
<a class="moz-txt-link-abbreviated" href="http://www.binovo.es">www.binovo.es</a></pre>
</body>
</html>