Removing VM disk issue

Hi guys, I'm trying to remove a VM and reclaim the space that the VM was using. This particular VM had a thin provisioned disk attached as well as "fat" provisioned, the "fat" disks I managed to detach, however when I try to remove the VM, it says "The following disks are locked: Please try again in a few minutes. Attached is a screenshot from the GUI side, showing the proxy disk being locked, any ideas? I'm wanting to completely remove the VM and reclaim the space for the datacenter. Thank you. Regards. Neil Wilson

Hi Neil, I have been looking at your logs but it seems that there is no indication of any operation being done on this specific disk. I also see that there are no running tasks in VDSM, so the disk should not be locked. If you have any older engine logs please send them so we can investigate the problem more better. What is the engine version you are running? If you want to unlock the disk, you can run this query in your postgres: UPDATE images set imagestatus = 1 where image_guid = (SELECT image_guid from all_disks where disk_alias = 'proxy02_Disk0' and vm_names ='proxy02'); regards, Maor On 05/14/2014 05:30 PM, Neil wrote:

Hi Maor, Sorry for the late reply. Unfortunately I don't have much in the way of older logs, but can confirm that the VM has been shutdown for about 3 months so there really shouldn't be any tasks running. My version is ovirt-engine-3.3.3-2.el6.noarch I presume running the command won't have any affect on any other VM's so it should be safe to do this? Thank you! Regards. Neil Wilson. On Thu, May 15, 2014 at 11:52 AM, Maor Lipchuk <mlipchuk@redhat.com> wrote:

On 05/19/2014 05:57 PM, Neil wrote:
The command should not affect other VMs (Make sure to run the command with "vm_names ='proxy02'"). Just to be sure use SELECT before running the command to check that only one image is returned: SELECT * FROM images where image_guid = (SELECT image_guid from all_disks where disk_alias = 'proxy02_Disk0' and vm_names ='proxy02');
participants (3)
-
Koen Vanoppen
-
Maor Lipchuk
-
Neil