Monday 26 March 2018

Vmware – Unable to operate a ESX host with locked disk

Background – No operation can be performed on an ESX host and you may see files are locked by other processes.
Solution
Determine which ESXi/ESX host has a locked or rogue file.
* First login to the local tech support mode console on the host.
* Use the command vmkfstools to obtain the lockstatus of the file.
# vmkfstools -D /vmfs/volumes/LUN/VM/disk-flat.vmdk
You would see a similar output as below,
Lock [type 10c00001 offset 54009856 v 11, hb offset 3198976
gen 9, mode 0, owner 4655cd8b-3c4a19f2-17bc-00126e808070 mtime 114]
Addr <4, 116, 4>, gen 5, links 1, type reg, flags 0, uid 0, gid 0, mode 600
len 5368709120, nb 0 tbz 0, cow 0, zla 3, bs 1048576
Look for the output logged to the vmkernel , messages , or vmkernel.log files to see the complete output. Read more

No comments:

Post a Comment