iSCSI discovery sendtarget address remove operation fails
book
Article ID: 319790
calendar_today
Updated On: 03-27-2025
Products
VMware vSphere ESXi
Issue/Introduction
When there are active sessions on the targets discovered by an iSCSI discovery sendtarget address, you see these symptoms:
- The iSCSI discovery sendtarget address remove operation fails.
- You see this error similar to:
Cannot remove discovery address as there are active sessions on the targets discovered by this address.
Cause
This issue occurs because the iSCSI discovery sendtarget address is removed when there are active sessions on the targets discovered by this address.
Resolution
This is a known issue affecting VMware ESXi 7.0 Update 1 and later versions.
Currently, there is no resolution.
Workaround:
To work around this issue, remove the active sessions before removing the discovery address.
For removing active session.
- Check the session list
esxcli iscsi session list
- Remove session which you want to remove
<iqn> : iqn target name from result in 1
esxcli iscsi session remove --name=<iqn> --adapter=<iscsi_adapter>
Alternatively, remove the discovery address with --force
flag. This removes the active sessions as well as the discovered targets.
Feedback
Was this article helpful?
thumb_up
Yes
thumb_down
No