Skip navigation
VMware

This Question is Answered (go to answer)

1 "helpful" answer available (6 pts)
2,755 Views 10 Replies Last post: Jul 23, 2008 2:03 AM by depping RSS
VirtualKenneth Master 1,514 posts since
May 10, 2006
Currently Being Moderated

Jul 17, 2008 7:04 AM

How to check if a LUN is being locked by a host

 

Hi Guys,

 

 

An easy points-winner thread:

 

 

In ESX 3.0x you could watch the proc/vmware/scsi/vmhba1/<lunnumber> that either reads "Reserved: Y" or "Reserved: N" to see if a LUN is locked.

 

 

I can't however find this in ESX3.5, any ideas were to check this?

 

 

Thanks!

 

 

Kenneth

 

 

Rubeck Master 941 posts since
Mar 7, 2008
Currently Being Moderated
1. Jul 17, 2008 7:58 AM in response to: VirtualKenneth
Re: How to check if a LUN is being locked by a host

 

Hmmm.. Very good question, indeed.

 

 

vmkfstools -D dumps the UUID of the host which has locked a specific vmdk into the vmkernel log.

 

 

I wonder if this works for an entire LUN also..?

 

 

Just an idea.. 

 

 

/Rubeck

 

 

 

 

 

VCP#3401
Rubeck Master 941 posts since
Mar 7, 2008
Currently Being Moderated
4. Jul 23, 2008 12:45 AM in response to: VirtualKenneth
Re: How to check if a LUN is being locked by a host

Could this be used?

 

esxcfg-info -s | grep -i -B 12 pending ?

 

/Rubeck

VCP#3401
oreeh Guru 10,046 posts since
Nov 30, 2005
Currently Being Moderated
7. Jul 23, 2008 1:52 AM in response to: VirtualKenneth
Re: How to check if a LUN is being locked by a host

Check if the LUN uses the new VMFS version (3.31).

The locking mechanisms have changed with this version.

oreeh Guru 10,046 posts since
Nov 30, 2005
Currently Being Moderated
9. Jul 23, 2008 2:01 AM in response to: VirtualKenneth
Re: How to check if a LUN is being locked by a host

See this post Re: Upgrade VMFS from 3.21 to 3.31 from Todd Roberts.

depping Champion VMware Employees User Moderators vExpert 4,243 posts since
Jan 17, 2005
Currently Being Moderated
10. Jul 23, 2008 2:03 AM in response to: oreeh
Re: How to check if a LUN is being locked by a host

cool info, thanks guys!

 

 

 

 

Duncan

My virtualisation blog:

http://www.yellow-bricks.com

 

If you find this information useful, please award points for "correct" or "helpful".

Duncan | Yellow-Bricks.com | Author of the vSphere 5.0 Clustering Deepdive

Bookmarked By (0)

Share This Page

Communities