Re: [Users] Virtual disk locked and I can't start/alter the VM

2012-08-07 Thread Itamar Heim

On 08/08/2012 01:48 AM, Ian Levesque wrote:

Hi,

I tried to export a VM image, and it apparently succeeded:

2012-Aug-06, 17:00:25 Vm varanus was exported successfully to glusternfs-export

But now the VM Virtual Disk is labeled as locked and I can't start or even 
remove and re-import the VM. Any clues how this can be resolved?

Running ovirt-engine-3.1.0-3.11.el6.noarch



you can edit it directly in the db to remove the lock from the 
vm_dynamic table.


before that:
any errors in the engine logs?
any tasks still running?
restarting the engine solves this?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Virtual disk locked and I can't start/alter the VM

2012-08-07 Thread Mike Kolesnik
- Original Message -
 On Aug 7, 2012, at 7:40 PM, Itamar Heim ih...@redhat.com wrote:
 
  you can edit it directly in the db to remove the lock from the
  vm_dynamic table.
 
 Any pointers on this?

If this is the only locked disk, please try to run this query on the DB:
update images
set imagestatus = 1
where imagestatus = 2;

And see if it helped.

 
 
  before that:
  any errors in the engine logs?
 
 Not that I can see.

If you can please attach engine.log  vdsm.log from the time of when this 
happened, that could help us try to identify what went wrong.

 
  any tasks still running?
 
 What do you mean by this? The VM guest is listed as Down.

What Itamar means is asynchronous tasks running on the host.
You can see them in the Tasks sub-tab on the web-admin, or if you run on your 
host:
vdsClient -s 0 getAllTasksInfo

 
  restarting the engine solves this?
 
 No change.
 
 Thanks,
 Ian

Regards,
Mike
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users