Cleaning up a goofed up iSCSI configuration on ESXi

There would be times when your ESXi iSCSI configuration may go for a toss. There could be a situation where you may need to reset your iSCSI configuration on your ESXi host back to factory defaults. Here is a quick way to just do that:

  1. Login to you ESXi host via the troubleshooting shell.
  2. Change to the iSCSI initiator configuration directory
    cd /etc/vmware/vmkiscsid
  3. From the ESXi command prompt, run the ‘esxcfg-swiscsi’ cli utility to disable the iSCSI initiator on your ESXi host
    esxcfg-swiscsi -d
  4. Delete the associated iSCSI initiator configuration file
    rm -f initiatorname.iscsi iscsid.conf vmkiscsid.db
  5. Reboot the host using the vSphere client.
  6. That’s it.

After reboot you will have a vSphere host with a clean iSCSI configuration. Now you can go ahead and reconfigure the iSCSI initiator on your ESXi host and add any targets.

Advertisements

2 thoughts on “Cleaning up a goofed up iSCSI configuration on ESXi

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s