VMware vSphere

 View Only
  • 1.  vmdk locked - how can I remove the lock ?

    Posted Oct 20, 2011 04:07 PM

    Hi,

    I copied a virtual machine from one esxi to another, but I can't start the machine due to a lock on the vmdk;

    I tried the vmkfstools -L release but I get the following error :

    Command release failed
    Error: Inappropriate ioctl for device

    I can clone the harddrive from the original esxi, but on the taregt one, it doesn't work;

    I did the same with 3 others virtual machines vmdks, and it works fine.

    does anyone know how to release the lock ?

    thanks



  • 2.  RE: vmdk locked - how can I remove the lock ?

    Posted Oct 20, 2011 04:14 PM

    try restarting the management agents of the host where the guest is registered, for the CLI

    services.sh restart



  • 3.  RE: vmdk locked - how can I remove the lock ?

    Posted Oct 21, 2011 07:16 AM

    It didn't work.

    Any other idea ?

    I'll try to copy the machine via vmware converter and see if I have the same error.



  • 4.  RE: vmdk locked - how can I remove the lock ?

    Posted Oct 21, 2011 10:22 AM

    try removing the .lck file while it is powered off

    if that does not work/.lck file is not there in your VM's folder (in datastore), try removing it from inventory and add it back to inventory (browse its datastore & right click .vmx file via vsphere client)

    also read: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=10051



  • 5.  RE: vmdk locked - how can I remove the lock ?

    Posted Oct 21, 2011 04:56 PM

    there is no .lck file.



  • 6.  RE: vmdk locked - how can I remove the lock ?

    Posted Oct 24, 2011 03:14 AM

    you ha dtried my second suggestion didn't you?



  • 7.  RE: vmdk locked - how can I remove the lock ?

    Posted Oct 24, 2011 05:17 PM

    I finally did a copy from the virtual machine via the converter and started on the second server;

    I already tried to locate the lock but couldn't locate it.

    De : Umarzuki Mochlis Moktar <communities-emailer@vmware.com>

    À : pookicat@yahoo.fr

    Envoyé le : Lundi 24 Octobre 2011 5h13

    Objet : New message: "vmdk locked - how can I remove the lock ?"

    VMware Communities<http://communities.vmware.com/index.jspa>

    vmdk locked - how can I remove the lock ?

    reply from Umarzuki Mochlis Moktar<http://communities.vmware.com/people/umarzuki> in VMware ESXi™ 4 - View the full discussion<http://communities.vmware.com/message/1850299#1850299>

    you ha dtried my second suggestion didn't you?

    Reply to this message by replying to this email -or- go to the message on VMware Communities<http://communities.vmware.com/message/1850299#1850299>

    Start a new discussion in VMware ESXi™ 4 at VMware Communities<http://communities.vmware.com/choose-container!input.jspa?contentType=1&containerType=14&container=3033



  • 8.  RE: vmdk locked - how can I remove the lock ?

    Posted Oct 25, 2011 01:48 AM

    thanks for sharing your solution but my suggestions were not in sequence. Anyway, as long as that got it works.