<div dir="ltr"><div class="gmail_default">I noticed that too, I wasn't sure if it was a bug or just how I had setup my NFS share..</div><div class="gmail_default"><br></div><div class="gmail_default">There were three steps I did to remove the disk images, I'm sure there's a 100% easier solution..: </div>
<div class="gmail_default"><br></div><div class="gmail_default">I found the easiest way (graphically) was go to your <a href="https://ovirtengine/api/disks" target="_blank">https://ovirtengine/api/disks</a> and so a search for the illegal disk. Append the extra ID eg. <span style="font-size:13px;color:rgb(136,18,128);font-family:monospace"><disk</span><span style="font-size:13px;color:rgb(136,18,128);font-family:monospace"> <span>href</span>="<span>/api/disks/lk342-dfsdf...</span></span><br>
</div><div class="gmail_default">into your URL this'll give you your image ID.<br></div><div class="gmail_default"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<span style="font-family:arial">Go to your storage share:</span></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:arial">cd /data/storage-id/master/vms/storage-id</span></div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:arial">grep -ir 'vmname' *</span></div><div class="gmail_default" style="font-family:tahoma,sans-serif">You'll find the image-id reference here too.</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Then the image you will want to remove is in the /data/storage-id/images/image-id</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif">I assume you could safely remove this whole folder if you wanted to delete the disk.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<br>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif">To remove the illegal state I did it through the API so again with the URL above <a href="https://ovirtengine/disks/disk-id" target="_blank">https://ovirtengine/disks/disk-id</a> send a DELETE using HTTP/CURL</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Again, this was a poor mans solution but it worked for me.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<span style="font-family:arial"><br></span></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:arial">On Thu, Sep 26, 2013 at 4:04 AM, Dan Ferris </span><span dir="ltr" style="font-family:arial"><<a href="mailto:dferris@prometheusresearch.com" target="_blank">dferris@prometheusresearch.com</a>></span><span style="font-family:arial"> wrote:</span><br>
</div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
I have another hopefully simple question.<br>
<br>
One VM that I am trying to remove says that it's disk state is "illegal" and when I try to remove the disk it says that it failed to initiate the removing of the disk.<br>
<br>
Is there an easy way to get rid of these illegal disk images?<br>
<br>
Dan<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>