VMware
6 Replies Last post: Aug 16, 2005 12:27 PM by jkubik  

ESX and SAN, retrieving serial numbers posted: Aug 4, 2005 5:20 AM

Click to view UltraSub's profile Novice 7 posts since
Aug 4, 2005
We have a few ESX boxes running here, and all of them are on SAN. Some have ESS disks, some have SVC, some have a mix. All is functioning flawlessly. However, I want to remove a disk from the server, but I can't identify the disk to remove by serial number. On windows and aix, we can do that easily by cli, "datapath query device", but on ESX I can't find out how to do it.
So that means once a disk has been given out to an ESX, I can't get it back. Kind of annoying, and not SAN minded.

How are you storage admins out there doing this?

By the way, we're running these two versions of ESX:
2.1.0 build-7728
2.5.0 build-11343

Re: ESX and SAN, retrieving serial numbers

1. Aug 4, 2005 5:28 AM in response to: UltraSub
Click to view AmaroM's profile Master 1,477 posts since
Oct 21, 2004

Re: ESX and SAN, retrieving serial numbers

3. Aug 4, 2005 6:35 AM in response to: UltraSub
Click to view jeremyrp's profile Expert 405 posts since
Jan 7, 2004
If you take a look in /proc/vmware/scsi/vmhbaX where X is the appropriate hba that has the active path (ala vmhba1), you should be able to cat the file associated with the LUN you're looking for. This file has stats on the LUN itself.

For example:
[code]
[root@vm240esx05 vmhba1]# pwd
/proc/vmware/scsi/vmhba1
[root@vm240esx05 vmhba1]# more 0:0
Vendor: STK Model: OPENstorage D178 Rev: 0540
Type: Direct-Access ANSI SCSI revision: 04
Id: 60 a b 80 0 c d6 ca 0 0 0 a 40 da be 76 4f 50 45 4e 73 74
Size: 153600 Mbytes
Queue Depth: 64

Partition Info:
Block size: 512
Num Blocks: 314572800


Partition VM cmds reads KBread writes KBwritten cmdsAbrt busRst paeCmds paeCopies splitCmds splitCopies issueAvg totalAvg

VM Shares cmds reads KBread writes KBwritten cmdsAbrt busRst paeCmds paeCopies splitCmds splitCopies issueAvg totalAvg active queued
virtTime
127 1000 73164 2 1 0 0 0 0 0 0 0 0 60124156 81609278 0
0 3000000
Total 1000 73164 2 1 0 0 0 0 0 0 0 0 60124156 81609278 0
0 3000000

Paths:mru
vmhba1:0:0 on#
vmhba1:1:0 on*
vmhba2:0:0 on
vmhba2:1:0 on

Active: 0 Queued: 0 Reserved: N Pending Reserves: 0
[root@vm240esx05 vmhba1]#

[/code]

Jeremy

Re: ESX and SAN, retrieving serial numbers

6. Aug 16, 2005 12:27 PM in response to: UltraSub
Click to view jkubik's profile Novice 23 posts since
Oct 28, 2004
You may want to open a support ticket with VMware and ask this question.
If you give them the serial number that you are trying to match and the vm-support output they can look into in.
-Joseph-

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities