VMware Cloud Community
s144
Contributor
Contributor

iSCSI Initiator name changes every reboot

Hello,

I am scratching my head on this one.  I have a setup where the esxi boots off iSCSI.  We changed network card on the san and changed its IQNs.  We modified the IQN and we were gold (esxcli iscsi adapter set -A vmhba64 -n iqn.2017-09.com.company.:esxi:0 ).  We saw the datastores again.  The problem came up when rebooted it goes back to the old IQN in vmware.

[root@localhost:~] esxcli iscsi adapter list

Adapter  Driver     State   UID            Description

-------  ---------  ------  -------------  ----------------------

vmhba64  iscsi_vmk  online  iscsi.vmhba64  iSCSI Software Adapter

[root@localhost:~] esxcli iscsi adapter get -A vmhba64 | grep iqn

   Name: iqn.2017-08.com.comapny.:esxi:0

esxcli iscsi adapter set -A vmhba64 -n iqn.2017-09.com.company.:esxi:0

We will be in a working state until it reboots then we have to add the command back.  I have looked at the esx.conf and initiatorname.iscsi and they are correct.  Anyone have any ideas where it is off?  Might re-install esxi..

0 Kudos
0 Replies