<div dir="ltr"><div>We have this same issue also once in a while. Most of the times it is solved by just restarting the ovirt engine. If this doesn't work, try to restart your vdsm service.<br><br></div>Kind regards<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-26 10:07 GMT+02:00 Maor Lipchuk <span dir="ltr"><<a href="mailto:mlipchuk@redhat.com" target="_blank">mlipchuk@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On 05/19/2014 05:57 PM, Neil wrote:<br>
> Hi Maor,<br>
><br>
</div><div class="">> Sorry for the late reply.<br>
><br>
> Unfortunately I don't have much in the way of older logs, but can<br>
> confirm that the VM has been shutdown for about 3 months so there<br>
> really shouldn't be any tasks running.<br>
><br>
> My version is ovirt-engine-3.3.3-2.el6.noarch<br>
><br>
> I presume running the command won't have any affect on any other VM's<br>
> so it should be safe to do this?<br>
</div>hi Neil,<br>
<br>
The command should not affect other VMs (Make sure to run the command<br>
with "vm_names ='proxy02'").<br>
<br>
Just to be sure use SELECT before running the command to check that only<br>
one image is returned:<br>
SELECT * FROM images where image_guid = (SELECT image_guid from<br>
<div class="HOEnZb"><div class="h5">all_disks where disk_alias = 'proxy02_Disk0' and vm_names ='proxy02');<br>
><br>
> Thank you!<br>
><br>
> Regards.<br>
><br>
> Neil Wilson.<br>
><br>
><br>
> On Thu, May 15, 2014 at 11:52 AM, Maor Lipchuk <<a href="mailto:mlipchuk@redhat.com">mlipchuk@redhat.com</a>> wrote:<br>
>> Hi Neil,<br>
>><br>
>> I have been looking at your logs but it seems that there is no<br>
>> indication of any operation being done on this specific disk.<br>
>> I also see that there are no running tasks in VDSM, so the disk should<br>
>> not be locked.<br>
>><br>
>> If you have any older engine logs please send them so we can investigate<br>
>> the problem more better.<br>
>><br>
>> What is the engine version you are running?<br>
>><br>
>> If you want to unlock the disk, you can run this query in your postgres:<br>
>> UPDATE images set imagestatus = 1 where image_guid = (SELECT image_guid<br>
>> from all_disks where disk_alias = 'proxy02_Disk0' and vm_names ='proxy02');<br>
>><br>
>> regards,<br>
>> Maor<br>
>><br>
>> On 05/14/2014 05:30 PM, Neil wrote:<br>
>>> Hi Maor,<br>
>>><br>
>>> Attached are the logs, and below is a screenshot of the event log, I<br>
>>> removed the two disks that were attached to the proxy previously which<br>
>>> completed.<br>
>>><br>
>>> Thank you!<br>
>>><br>
>>> Regards.<br>
>>><br>
>>> Neil Wilson.<br>
>>><br>
>>><br>
>>><br>
>>> On Wed, May 14, 2014 at 2:43 PM, Maor Lipchuk <<a href="mailto:mlipchuk@redhat.com">mlipchuk@redhat.com</a>> wrote:<br>
>>>> Hi Neil,<br>
>>>><br>
>>>> Can u please attach the logs of engine and VDSM.<br>
>>>> What there is in the event log, was there any operation being done on<br>
>>>> the disk before?<br>
>>>><br>
>>>> regards,<br>
>>>> Maor<br>
>>>><br>
>>>> On 05/14/2014 03:35 PM, Neil wrote:<br>
>>>>> Hi guys,<br>
>>>>><br>
>>>>> I'm trying to remove a VM and reclaim the space that the VM was using.<br>
>>>>> This particular VM had a thin provisioned disk attached as well as<br>
>>>>> "fat" provisioned, the "fat" disks I managed to detach, however when I<br>
>>>>> try to remove the VM, it says "The following disks are locked: Please<br>
>>>>> try again in a few minutes. Attached is a screenshot from the GUI<br>
>>>>> side, showing the proxy disk being locked, any ideas?<br>
>>>>><br>
>>>>> I'm wanting to completely remove the VM and reclaim the space for the<br>
>>>>> datacenter.<br>
>>>>><br>
>>>>> Thank you.<br>
>>>>><br>
>>>>> Regards.<br>
>>>>><br>
>>>>> Neil Wilson<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> Users mailing list<br>
>>>>> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
>>>>> <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
>>>>><br>
>>>><br>
>>><br>
>><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>