Provide a workaround to allow CHAP settings to persist through a host reboot.
Issue Description : iSCSI volumes disappeared after VMware ESXi host is rebooted with CHAP enabled and configured with Dynamic Discovery on ESXi 7.0.1 and higher hosts.
This issue may be observed under these conditions.
In certain situations, the dynamic discovery of targets in systems utilizing dynamic discovery addresses for iSCSI configuration may not succeed.
Consequently, iSCSI targets, LUNs, and datastores are not visible after rebooting ESXi hosts.
The dynamic detection of iSCSI targets may also encounter issues if the Challenge-Handshake Authentication Protocol (CHAP) is enabled on the ESXi host.
The issue is not observed in ESXi versions prior to 7.0.1
Engineering is working on a fix in a later release of ESXi 7.x and 8.x
Workaround:
Remove Dynamic Discovery and Configure iSCSI Storage Port With Only Static Discovery
This will have to be performed on each host in the cluster.
Place host into maintenance mode.
Navigate to the Host > Configure Tab > Storage Adapters > Highlight the iSCSI software adapter.
Navigate to the Dynamic Discovery Tab
Highlight the iSCSI Server(s) to be removed.
Navigate to the Static Discovery Tab
Reconfigure the iSCSI targets under the static discovery only and leave the dynamic discovery blank for any target that will be configured with CHAP.
Re-scan the iSCSI software adapter and reconfigure CHAP as per your requirements.
Reboot the host and verify the retention of the CHAP settings and exit maintenance mode.
CHAP may have to be reconfigured each time a ESXi 7.0.1 or higher host is rebooted.