VMware Cloud Community
Narayanan_5245
Enthusiast
Enthusiast

Script to Find Unused LUNs (Free LUNs) from the Cluster

Hi LuCD,

Thanks for the script posted in earlier VMware code forum. I have tried to run the script "lun-report-datastores-rdms-and-node-visibility"and taking very long time to complete, as the cluster have 30 ESX hosts with 190 LUNs attached to all the Cluster ESX hosts.

Could you please advise

Regards

Narayanan.

0 Kudos
2 Replies
LucD
Leadership
Leadership

Which script are you referring to?

The PowerCLI cmdlets for working with LUNs are quite slow, not a lot I can do.
Except if the same info can be found through Get-EsxCli or in any other way.


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

0 Kudos
Narayanan_5245
Enthusiast
Enthusiast

Thanks LuCD for the reply.

With reference to the below script, I have tried to pull the information of un-used LUNs from the cluster ESX hosts (LUNs shared to all the ESX hosts). Really helpful to get the data for the small cluster with 2 or 4 ESX hosts but the same tried to get for Cluster which have 30 hosts/190 LUNs taking long time.

LUN report - datastore, RDM and node visibility - LucD notes

Regards

Narayanan.

0 Kudos