VMware Cloud Community
macaal
Contributor
Contributor
Jump to solution

lock file virtual machine on VMFS

Hi,

I search any detailled informations,documentations about lock file vmfs mechanism for ESX 3.X

How, where, who .... works the lock file mechanism.

Is it possible to manage manually this lock ?

Thanks

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Texiwill
Leadership
Leadership
Jump to solution

Hello,

Remember there is no 'lockfile' it is a lock within the file system or the LUN. If you are replicating a SAN LUN then you will get the status as of the time of replication and no other time.So yes, things could be a tad out of sync after the replication.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

Blue Gears and SearchVMware Pro Blogs: http://www.astroarch.com/wiki/index.php/Blog_Roll

Top Virtualization Security Links: http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill

View solution in original post

0 Kudos
6 Replies
Texiwill
Leadership
Leadership
Jump to solution

Hello,

How, where, who .... works the lock file mechanism.

It is managed by the vmkernel/VMFS drivers within the metadata of the datastore.

Is it possible to manage manually this lock ?

Not really as there is no 'lock' file per say.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

Blue Gears and SearchVMware Pro Blogs: http://www.astroarch.com/wiki/index.php/Blog_Roll

Top Virtualization Security Links: http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
atbnet
Expert
Expert
Jump to solution

Why do you need to manage the lock??

/usr/lib/vmware/bin/vmkload_app /usr/lib/vmware/bin/vmware-vmx should have a lock on the VMs file.

Here is how to release a lock on a file, butim not sure much further than that on lock files im afraid.

Andy, VMware Certified Professional (VCP),

If you found this information useful please award points using the buttons at the top of the page accordingly.

Andy Barnes
VCP / VCA-DT / MCITP:EA / CCIA
Help, Guides and How Tos... www.VMadmin.co.uk

If you found this information useful please award points using the buttons at the top of the page accordingly.
macaal
Contributor
Contributor
Jump to solution

Hello,

Thanks for your information

0 Kudos
macaal
Contributor
Contributor
Jump to solution

Hello,

Thanks for your good information.

It's a special case for our SAN structure and VMware HA intersite cluster with replication LUN vmfs.

It is possible under certain conditions that we have need to work with the secondary volume vmfs replicated and it's possible that this Mirored volume has not the last information, modification as par exemple "lock file" on the VM.vmx

Thanks.

0 Kudos
Texiwill
Leadership
Leadership
Jump to solution

Hello,

Remember there is no 'lockfile' it is a lock within the file system or the LUN. If you are replicating a SAN LUN then you will get the status as of the time of replication and no other time.So yes, things could be a tad out of sync after the replication.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

Blue Gears and SearchVMware Pro Blogs: http://www.astroarch.com/wiki/index.php/Blog_Roll

Top Virtualization Security Links: http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
macaal
Contributor
Contributor
Jump to solution

Hello,

Thanks for this precision !

0 Kudos