Hi Folks,
Can we get LUNs ID Details for the Data Store from Power Cli ? Mean to say what are the LUNs ID presented to Data Store ?
Thanks
vmguy
You can get the DiskName or CanonicalName through the Extent property.
$ds = Get-Datastore -Name MyDS
$ds.ExtensionData.Info.Vmfs.Extent | Select DiskName
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You can get the DiskName or CanonicalName through the Extent property.
$ds = Get-Datastore -Name MyDS
$ds.ExtensionData.Info.Vmfs.Extent | Select DiskName
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
LucD,
Thanks for help it helped me but it will be more helpful if i can get LUn iD say like 30,40,41 etc along with below info so that storage team can reclaim
the lun which are not in used as we need to delete the DS and then Storage team can reclaim luns on the LUNs id provided by us.
DiskName
--------
naa.60000970000192603746533031303545
naa.60000970000192603746533031303632
naa.60000970000192603746533031303636
naa.60000970000192603746533031303641
naa.60000970000192603746533031303645
naa.60000970000192603746533031303732
naa.60000970000192603746533031303736
naa.60000970000192603746533031303741
naa.60000970000192603746533031303745
naa.60000970000192603746533031303832
thanks
vmg
Try my script from All LUNs assigned to ESXs
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
LucD,
Earlier i missed out to say is it possible to get WWN from the below script along with Cannonical name.However i try this script
$ds = Get-Datastore -Name MyDS
$ds.ExtensionData.Info.Vmfs.Extent | Select DiskName
thanks
vmg
