VMware Global Community
willowmlg
Enthusiast
Enthusiast
Jump to solution

Virtual machine disks consolidation is needed y Unable to Access file <unspecified filename> since it is locked

Hola a tod@s,

Tras utilizar la aplicación de backup "Virtual Data Protection 5.5" y no realizarse correctamente los snapshot de las VM´s, me aparece un mensaje en la pestaña "Summary" indicando:

Virtual machine disks consolidation is needed

Bueno…mirando la documentación oficial, existen varias soluciones, la primera es pulsar en la opción “SnapShot -> Consolidate” pero muestra el error:

Unable to Access file <unspecified filename> since it is locked

¿Cuál sería el siguiente paso? 

- ESXi versión 5.1

- VM´s en producción….Smiley Sad

Gracias por todo,

Saludos.

1 Solution

Accepted Solutions
adrivizoso
Enthusiast
Enthusiast
Jump to solution

Por favor si te ha sido útil la solución marca la respuesta como correcta.

Gracias!

Adrian V.

View solution in original post

Reply
0 Kudos
7 Replies
sorcerer12101
Enthusiast
Enthusiast
Jump to solution

Hola,

El aspecto es de que se te ha borrado o corrompido o eliminado "parcialmente" uno de los discos del snapshot que se ha creado o simplemente el error es literal y está bloqueado por el host ESXi. Si te fijas en los settings de la VM, en los discos, verás que apuntas a los discos de snapshot que son ficheros con el nombre de la máquina virtual como los originales pero con una coletilla como  000000x, donde x es un número que comienza por 1 y va subiendo según el número de snapshots. Si no se ha trabajado en la VM posteriormente a la realización del snapshot o no te importa perder los datos nuevos puedes modificar el fichero de configuración VMX de la VM para que apunte a los discos originales y entonces la máquina te arrancara sin problemas y luego habrá que ver si el sistema te reconoce o no que tiene un snapshot para solucionar ese tema. Por otro lado si editas el fichero VMX podrás ver claramente a que discos apunta la VM y que discos espera tener, con esa información miras en el datastore en la carpeta de la VM y verifica que tienes todos los discos necesarios y que los nombres coinciden. Si todo está correcto lo primero sería reiniciar el host ESXi donde se está ejecutando la máquina para que libere el posible bloqueo. Una vez verificado estas cosas y hecho el reinicio si sigue sin funcionar pon toda la información sobre lo que hay y lo que no y ya podemos ver los siguientes pasos a realizar...

Un saludo,

David Perez Ferrer - VCP4 / VCP5 Si encuentras que esta o cualquier otra respuesta fue de utilidad, por favor da el voto. Gracias. If you find this or any other answer useful, please consider awarding points. Thank you.
adrivizoso
Enthusiast
Enthusiast
Jump to solution

Hola,


Qué tal?

Adicionalmente, a veces cuando da el error de bloqueo es porque el VDP tiene mapeado el disco de la VM a la que está queriendo hacer backup. Cuando se va a hacer backup con VDP de otra VM, el VDP se mapea el disco, si esto falla a veces no lo desmapea. Comprueba que en tu appliance del VDP no tienes mapeado el disco de tu VM, si es así remueve el disco del VDP que corresponde a la VM que se quiere hacer backup y ya debería de dejarte hacer la consolidación. Eso si remuevelo NO lo elimines.

Ya nos cuentas.

Un saludo!

Adrian V.
willowmlg
Enthusiast
Enthusiast
Jump to solution

Efectivamente, era eso, adjunto algunas fotos para quien le interese. Smiley Happy

hardware.JPGhardware2.JPGhardware3.JPG

Gracias por todo y felices fiestas.

adrivizoso
Enthusiast
Enthusiast
Jump to solution

Hola,

Genial entonces, es lo que te comentaba, el VDP cuando falla con el snapshot deja el disco montado.

Me alegro de que ahora esté bien.

Un Saludo!

Adrian V.
Reply
0 Kudos
adrivizoso
Enthusiast
Enthusiast
Jump to solution

Por favor si te ha sido útil la solución marca la respuesta como correcta.

Gracias!

Adrian V.
Reply
0 Kudos
MTC_Admin
Contributor
Contributor
Jump to solution

Hi Guys,

Can you help me explain this in English, i have the same problem. I try so many work around:

create test snapshot and delete all,

restart the management agent,

move the VM to another host,

restart the host but no luck

i have the below error in the vmware.log

I120: AIOGNRC: Failed to open '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' : Failed to lock the file (40003) (0x2013).

u-0| I120: AIOMGR: AIOMgr_OpenWithRetry: Descriptor file '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' locked (try 0)

u-0| I120: AIOGNRC: Failed to open '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' : Failed to lock the file (40003) (0x2013).

u-0| I120: AIOMGR: AIOMgr_OpenWithRetry: Descriptor file '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' locked (try 1)

u-0| I120: AIOGNRC: Failed to open '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' : Failed to lock the file (40003) (0x2013).

u-0| I120: AIOMGR: AIOMgr_OpenWithRetry: Descriptor file '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' locked (try 2)

u-0| I120: AIOGNRC: Failed to open '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' : Failed to lock the file (40003) (0x2013).

u-0| I120: AIOMGR: AIOMgr_OpenWithRetry: Descriptor file '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' locked (try 3)

u-0| I120: AIOGNRC: Failed to open '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' : Failed to lock the file (40003) (0x2013).

u-0| I120: AIOMGR: AIOMgr_OpenWithRetry: Descriptor file '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' locked (try 4)

u-0| I120: AIOGNRC: Failed to open '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' : Failed to lock the file (40003) (0x2013).

u-0| I120: OBJLIB-FILEBE : FileBEOpen: can't open '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk' : Failed to lock the file (2

u-0| I120: DISKLIB-VMFS  : "/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1-flat.vmdk" : failed to open (Failed to lock the file): ObjLib_

u-0| I120: DISKLIB-LINK  : "/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1.vmdk" : failed to open (Failed to lock the file).

u-0| I120: DISKLIB-CHAIN : "/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1.vmdk" : failed to open (Failed to lock the file).

u-0| I120: DISKLIB-LIB   : Failed to open '/vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1.vmdk' with flags 0x20a Failed to lock the file

u-0| I120: SNAPSHOT:Failed  to open disk /vmfs/volumes/51cd4254-6aa8eb9e-9723-6c3be5ba1d08/mtcngnprdivr1/mtcngnprdivr1.vmdk : Failed to lock the file (16392)

u-0| I120: DISKLIB-VMFS  : "/vmf


thanks in advance

Reply
0 Kudos
ferjero989
Contributor
Contributor
Jump to solution

go to your vmware dp settings and dismount/disconnect/deattach/remove (DO NOT DELETE) the hard disks that belong to the machine that you cant consolidate. then try again

Reply
0 Kudos