VMware Cloud Community
E4F
Contributor
Contributor

How to rename a RDM ScsiCanonicalName

Get-VM | Get-HardDisk -DiskType "RawPhysical","RawVirtual" | Select Parent, Name, DiskType, ScsiCanonicalName, DeviceName | FL

Here is the output:

Parent                                            : Server1

Name                                             : Hard disk 3
DiskType                                       : RawPhysical
ScsiCanonicalName                    : naa.600601600ae12800507484a92399e011
DeviceName                                 : vml.0200000000600601600ae12800507484a92399e011565241494420

Parent                                            : Server1

Name                                             : Hard disk 4
DiskType                                       : RawPhysical
ScsiCanonicalName                    : naa.600601600ae1280092f135662399e011
DeviceName                                 : vml.0200010000600601600ae1280092f135662399e011565241494420

Is it possible to set the ScsiCanonicalName so to the name of the VM and RDM, like the following:

Parent                                            : Server1

Name                                             : Hard disk 3
DiskType                                       : RawPhysical
ScsiCanonicalName                    : Server1-RDM

DeviceName                                 : vml.0200000000600601600ae12800507484a92399e011565241494420

Tags (2)
0 Kudos
1 Reply
LucD
Leadership
Leadership

I don't think so, that name is generated by the ESXi OS afaik.


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

0 Kudos