VMware Cloud Community
Mizzou_RobMan
Contributor
Contributor

Is it possible to display the UUID of a LUN being presented?

Running ESXi v4.1, HDS fibre disk (USPv 28401).

If the SAN team creates a UUID, what command or script can I use to see that information or can I see that information? I don't see it in the vCenter client.

Reply
0 Kudos
5 Replies
mcowger
Immortal
Immortal

The UUID of the LUN is shown in the path details for the LUN.






--Matt
VCP, VCDX #52, Unix Geek, Storage Nerd

9773_9773.gif

--Matt VCDX #52 blog.cowger.us
Reply
0 Kudos
Mizzou_RobMan
Contributor
Contributor

Thanks, but here is exactly what I am trying to find.

Reply
0 Kudos
Troy_Clavell
Immortal
Immortal

this PowerCLI script may be useful as well

Get-VMHost | %{
      $esxImpl = $_
      $_ | Get-ScsiLun | where {$_.LunType -eq "Disk"} | %{
            $_ | Select @{N="HostName";E={$esxImpl.Name}},
            @{N="Path";E={$_.CanonicalName}},
            @{N="Policy";E={$_.MultiPathPolicy}},
            @{N="Number";E={($_ | Get-ScsiLunPath).Count}}
      }
}|Export-Csv "C:\scripts\ds.csv" -NoTypeInformation

Mizzou_RobMan
Contributor
Contributor

My apologies as I am still a bit of a newb to PowerCLI.

connect-viserver -server vcservername -protocol https -user adaccountname -password mypassword

.\SAN-uuid.ps1

I opened the csv file and it displays:

HostName Path Policy Number

esxihostname.bobo.com t10.ATA_____FK0064CAAZQ_____________________________S08JNEAZ501214______ Fixed

esxihostname.bobo.com naa.60060e80056ef10000006ef1000010f2 RoundRobin 2

esxihostname.bobo.com naa.60060e80056ef10000006ef1000010f3 Fixed 2

esxihostname.bobo.com naa.60060e80056ef10000006ef1000010f4 Fixed 2

esxihostname.bobo.com naa.60060e80056ef10000006ef1000010f5 Fixed 2

esxihostname.bobo.com naa.60060e80056ef10000006ef1000010f6 Fixed 2

esxihostname.bobo.com naa.60060e80056ef10000006ef1000010f7 Fixed 2

esxihostname.bobo.com naa.60060e80056ef10000006ef1000010f8 Fixed 2

esxihostname.bobo.com naa.60060e80056ef10000006ef1000010f9 Fixed 2

According to my SAN team, I should see

"ProdDC5_Disk1"

"ProdDC5_Disk2"

"ProdDC5_Disk3"

"ProdDC5_Disk4"

"ProdDC5_Disk5"

"ProdDC5_Disk6"

"ProdDC5_Disk7"

"ProdDC5_Disk8"

Reply
0 Kudos
Troy_Clavell
Immortal
Immortal

According to my SAN team, I should see

"ProdDC5_Disk1"

"ProdDC5_Disk2"

"ProdDC5_Disk3"

"ProdDC5_Disk4"

"ProdDC5_Disk5"

"ProdDC5_Disk6"

"ProdDC5_Disk7"

"ProdDC5_Disk8"

that is probably the name of the disk groups on the SAN. You more than likely will not see those names, but instead the Canonical Name. However, when you rescan your storage adapters and add storage, you can choose to name the presented LUNS as above.

Reply
0 Kudos