VMware Cloud Community
vmhyperv
Contributor
Contributor
Jump to solution

Data Store LUNs Details

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

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
vmhyperv
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Try my script from All LUNs assigned to ESXs


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

vmhyperv
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos