VMware Cloud Community
Pinball
Enthusiast
Enthusiast
Jump to solution

List Scsi LUN including Datastore assigmnet or RDM

Hi there

I got the following working 100% for my entire DC but need to show datastore name if in use or RDM assigment for every SCSI Lun in adition. Please can someone guide me in the right direction.

Current query:

Get-VMHost | ForEach-Object {
 
$VMHost = $_
 
$VMHost | Get-ScsiLun | Where-Object {$_.CanonicalName -like 'naa.6006*'} | `
 
Select-Object -Property @{N="VMHostName";E={$VMHost.Name}},CanonicalName,MultipathPolicy
}


This is to perform a emergency array powerdown and need to show impact


Thanks


Johan



Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Have a look at my LUN report – datastore, RDM and node visibility post.

In there I use hash tables to look up the datastore from the LUN


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

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Have a look at my LUN report – datastore, RDM and node visibility post.

In there I use hash tables to look up the datastore from the LUN


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

Reply
0 Kudos
Pinball
Enthusiast
Enthusiast
Jump to solution

Luc

Thank you very much, This was 100% what i was looking for.

Johan

Reply
0 Kudos