Probelm:
After rebooting ESXi 6.5 host (later updated to 6.7), you are unable to scan datastores, and you notice that the iSCSI Software Adapter status is Offline.

I tried:
- Disable and enable the adapter from CLI and web client.
- Reboot the ESXi.
- Update ESXi 6.5 to ESXi 6.7
Solution:
The solution is simple, Unbind and bind back the VMK ports from the iSCSI Software Adapter.
@ESXi host
- Go to Storage / Adapters / “vmhba64” / Configure iSCSI

- Select VMkernel NIC, and Remove port binding. Then, add the VMkernel NIC again.

great it works .. thanks !
this fixed our issue. Thank you very much!