ar264285
Contributor
Contributor

From NAA ID to get the Mapped Host information

Hello,

We have set of naa id, and we have to verify these Lun's are mapped Host Details.

for Ex: RDM Migration from one cluster to another Cluster After migration these Lun's are presented over the new cluster and old cluster (Some host also changed to different Cluster, not standards)

It's possible to get NAAID Mapping info details  to Vmhost Name

0 Kudos
3 Replies
LucD
Leadership
Leadership

You could use the script in my LUN Report – Datastore, RDM And Node Visibility post.

Run the script for both clusters.


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

0 Kudos
ar264285
Contributor
Contributor

Thanks LUC, It's there any option to run the enitre VC in single run and output also combine in single spreadsheet. It's easy to check from our end.

Because the Hosts are segregated in different Clusters. we  disconnected the Host added the host to other existing Cluster,we are not unmapped the old LUN, Therefore we have to identify the Lun still need to remove from the Cluster to Cleanup the Zonings. which is not depends on the RDM LUN to reduce Lun Counts and paths to reduce.

0 Kudos
LucD
Leadership
Leadership

Would something like this work?

Get-VMHost -PipelineVariable esx |

Get-ScsiLun | Where-Object {$_.LunType -eq "Disk"} |

Select-Object @{N='VMHost';E={$esx.Name}},CanonicalName |

Sort-Object -Property CanonicalName |

Export-Csv -Path .\lun-report.csv -NoTypeInformation -UseCulture


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

0 Kudos