VMware Cloud Community
jmroth
Enthusiast
Enthusiast

Setting LUN display name (programatically, for host and vcenter)

Hi,

The goal: Having meaningful display names in vCenter.

How I try to accomplish this: using esxcli on the individual host.

~ # esxcli storage core device list -d naa.600000e00d100000001030XXXXbc0000

naa.600000e00d100000001030XXXbc0000

   Display Name: FUJITSU Fibre Channel Disk (naa.600000e00d100000001030XXXXbc0000)

   Has Settable Display Name: true

...

~ # esxcli storage core device set -d naa.600000e00d100000001030XXXbc0000 -n LUN.naa.600000e00d100000001030XXXbc0000

~ # esxcli storage core device list -d naa.600000e00d100000001030XXXbc0000

naa.600000e00d100000001030XXXbc0000

   Display Name: LUN.naa.600000e00d100000001030XXXbc0000

   Has Settable Display Name: true

... (a few seconds later) ...

~ # esxcli storage core device list -d naa.600000e00d100000001030XXXXbc0000

naa.600000e00d100000001030XXXbc0000

   Display Name: FUJITSU Fibre Channel Disk (naa.600000e00d100000001030XXXbc0000)

   Has Settable Display Name: true

Why does it revert to the previous device name almost instantly?

Oh, and I also want to show the updated device names in vCenter.

I don't want to go and click through every device on each host in vCenter in order to give the LUNs meaningful names.

I want to set them programatically.

Best regards,

Marki

0 Kudos
1 Reply
jmroth
Enthusiast
Enthusiast

OK forget it, probably you have to do this through vcenter... I guess I'll use PowerCLI or better vCLI as I don't want to use PowerShell.

0 Kudos