VMware Cloud Community
Ravi1987
Contributor
Contributor

Lun Size report generation by esx server

can any body tell me the command and the way through which i can generate the report which contains all the information

number of luns visible on esx server .

size of all the luns.

and 1 more thing is that some tiome my host luns are not visible on vc server console so i want to generate a report which conatain connection break time beetween esx and storage lun if any.

Ravi
Tags (4)
Reply
0 Kudos
8 Replies
depping
Leadership
Leadership

You might want to dive into Powershell/VI Toolkit. It's by far the easiest method of getting this info.

Duncan

VMware Communities User Moderator

-


Blogging:

Twitter:

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

Reply
0 Kudos
Ravi1987
Contributor
Contributor

Yes,

and if your have different option then please provide .

Please give me power shell command also.

Ravi
Reply
0 Kudos
depping
Leadership
Leadership

you can do the following on the console:

esxcfg-mpath -l

vdf -h

fdisk -l

this would give you most info you are looking for, but a centrally scheduled and managed system is easier. I will move your topic to the powershell forum.

Huge Peeters has some usefull scripts available:

http://www.peetersonline.nl/index.php/script-repository/

And this script can also come in handy:

http://www.ivobeerens.nl/?p=256

Duncan

VMware Communities User Moderator

-


Blogging: http://www.yellow-bricks.com

Twitter:

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

Reply
0 Kudos
LucD
Leadership
Leadership

Have a look at the script in , it links the datastore with the LUN and also gives the disksize.

The script in emulates the esxcfg-mpath command.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Ravi1987
Contributor
Contributor

Thanks For Reply CHAMP,

but i m adding some thing more to my requirement.

actually we are facing some issue regarding LUN visibility on all host on same cluster . please tell me is thre any command or tool from VMWARE through which i can generaqte a rport of few days through which i can identify which of the luns are got unvisible form my hosts on which times and more when it visible again on same host.

Ravi
Reply
0 Kudos
LucD
Leadership
Leadership

When these LUNs go away and come back are there any messages in the VIC ? Under ?

The reason for asking is that if there are messages in the VIC you could use the Get-ViEvent cmdlet to get at the event(s).

And from there create a report.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Ravi1987
Contributor
Contributor

Thanks for reply.

no Such option in VI.

can be generate this report from esx host

Ravi
Reply
0 Kudos
LucD
Leadership
Leadership

That's possible when you connect to an ESX server instead of to the VC server.

These are the logs that are accessible from within the VITK: hostd, messages, vmkernle, vmksummary, vmkwarning and vpxa.

Get the list with this script.

$esx = Connect-VIServer -Server <ESX-server> -User <user> -Password <password>
Get-LogType
Disconnect-VIServer -Server $esx -confirm:$false

Any LUN messages in any of these logs ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos