Does anyone have any scripts to compare or identify LUNs / Devices like "naa.600507680c800590a0000000000000bc" format that are presented to hosts, but are not in use by any VM and that are not in use by any datastore?
After sharing the report with Storage team, it was updated that LUN are mapped to multiple cluster groups from vmware end and as per the LUN not in use, it was showing empty or not mapped to any host. How can we avoid that so that the report is perfect. More accuracy.
Example - 5 Cluster names which shares a same LUN ids ( eg :
Shares 5 ClusterNames
5 Cluster names which shares a same LUN ids ( eg :
Shares 5 ClusterNames
What i was trying to say that when i executed the script i got 87 LUN ID which as per script shows not mapped to any host, hence i informed the storage team to reclaim back these LUN, but as per the storage team that most of the LUN ID doesn't exist at all from storage end and also they found 1 LUN ID (marked in yellow color in earlier thread) is mapped to multiple cluster which contradict the purpose of the script. Also, we did compare these 87 LUN ID from RV tools and none of them shows in RV tools.
Let me know if i'm unable to explain.
I don't know what kind of storage you are using, but for me, and others, the script works.
To explain what you are seeing, I would need to investigate in your environment.
The script reports the LUNs from the point of view from the ESXi nodes.
If an ESXi node reports a LUN which does not exist on your storage, it might mean that there are some ghost LUNs on the ESXi node(s).
Note that the script is intended to run against a cluster and show which LUNs are visible and used/not used in that cluster.
I agree with you and we are using the EMC VMAX/Powermax/VNX and Unity storage. Yes, our storage team did confirmed that they are seeing storage Zero utilization, but only concerns was one of the LUN ID/NAA ID when i ran the script was showing not in use and when i asked storage to confirm they said it's mapped to multiple cluster.
Also, how i can mark the answer correct.
Thank you LucD, shared url is good knowledge perspective, Actually, i'm looking what are other method to reclaim wastage storage like powered-off vm deletions/Orphaned file cleanup/snapshot/ Lun not in use etc.