What does HRESULT 0x8004270B (VDS_E_ASSOCIATED_LUNS_EXIST) mean?

 
Previous Next
VDS_E_ISCSI_SESSION_NOT_FOUND VDS_E_ASSOCIATED_PORTALS_EXIST

VDS_E_ASSOCIATED_LUNS_EXIST

This is a topology precondition on IVdsIscsiTarget::Delete. The hardware-provider API requires all LUNs to be disassociated from a target before the target can be deleted. The restriction protects the relationship between an exported target and the logical units presented through it; deleting the target first would orphan configured presentation state.

Why this state matters

The appropriate repair is not to remove a Windows drive letter or filesystem mount point. A LUN-to-target association exists in the storage subsystem/provider model. The target object must be queried and its LUN associations changed through the relevant hardware-provider operations before deletion is retried.

Diagnostic focus

  • Enumerate LUNs associated with the target and record LUN IDs/names before changing the export configuration.
  • Distinguish host-side volume mounts from target-side LUN associations; removing a mount path does not satisfy this VDS precondition.
  • Disassociate only the intended LUNs and verify that clients no longer depend on their presentation through this target.
  • Reacquire the target object and retry deletion after the asynchronous disassociation/configuration work has completed.

Technical references

IVdsIscsiTarget::Delete · IVdsIscsiTarget · IVdsLun · MS-VDS error codes · RFC 7143: iSCSI


Looking for a different code? Search another status or error code.