Use iscsicli to remove the stale sessions, then reconnect the targets as persistent sessions so the mappings are rebuilt.
Recommended recovery flow:
- Refresh and review the current iSCSI configuration.
- In iSCSI Initiator > Discovery, select Refresh.
- Remove any incorrect or unused target entries.
- Clear the disconnected sessions.
- In PowerShell, remove existing iSCSI sessions:
Get-IscsiSession | Remove-IscsiSession - Recreate the persistent target connection.
- Reconnect each target by using a persistent login so it is restored across restarts:
Connect-IscsiTarget -NodeAddress <Target> -TargetPortalAddress <IPAddress> -TargetPortalPortNumber 3260 -IsPersistent $true - If the stored target portal or storage IP changed after the NIC driver update, remove and re-add the favorite target.
- Open iSCSI Initiator.
- Select Favorite Targets.
- Select the affected target and choose Remove.
- Select Add, then enter the correct target configuration.
- If the LUNs remain Offline after reconnecting, review timeout settings.
- Warning: modifying the registry can cause serious problems if done incorrectly.
- In
HKLM\SYSTEM\CurrentControlSet\Services\disk, setTimeOutValueto a larger value such as 179 if longer recovery time is needed.
This restores the persistent mappings by removing stale session state and reconnecting the targets with persistence enabled.
References: