When attempting to remediate an ESXi host using a Host Profile, the process fails with a general system error as below:
"A general system error occurred: Batch host remediation failed. MethodFault.summary. Command iscsi adapter discovery sendtarget remove --address "[IP_ADDRESS]:3260" --adapter [ADAPTER_ID] failed. Errors: Cannot remove discovery address as there are active sessions on the targets discovered by this address."
VMware vCenter Server: 7.x / 8.x
VMware ESXi : 7.x / 8.x
The Host Profile acts as a configuration blueprint. If the Source Host (where the profile was extracted) has fewer iSCSI targets/LUNs than the Target Host, the remediation process tries to delete the extra storage configurations on the Target Host to match the Source.
This occurs specifically during the iSCSI adapter discovery phase, where the system attempts to remove a target discovery address that is currently in use. Because ESXi cannot safely remove a discovery address while there are active I/O sessions or mounted VMFS datastores associated with it, the command fails and halts the remediation batch.
There are two primary methods to resolve this conflict
Method 1: Exclude Storage from the Host Profile
Use this if you prefer to manage iSCSI settings manually or if storage configurations vary significantly across hosts in the cluster.
Method 2: Update the Reference (Source) Host
Use this to maintain a consistent storage host profile across all hosts.
Note:If you still need help, then kindly open a support case with Broadcom
Refer to the KB https://knowledge.broadcom.com/external/article/142884