Files
cds-ai/cdsmcp/docs/iscsi-cleanup-reference.md

971 B

iSCSI Cleanup Reference

This file contains the standard iSCSI target cleanup sequence for Linux guests used in CDS MCP workflows.

Scope

  • Use this reference when the user asks to clean up saved iSCSI targets on a machine.
  • This is a guest-level cleanup workflow and is separate from CMC install or CDC project cleanup.

Standard Sequence

  1. Log out of all current targets:
iscsiadm --mode node --logoutall=all
  1. List saved node records and note the target IQN values:
iscsiadm -m node
  1. Remove each target by IQN:
iscsiadm -m node -o delete -T <iqn>
  1. Re-list nodes and confirm the list is empty:
iscsiadm -m node

Notes

  • One IQN can appear on multiple portals; deleting by IQN removes the saved node records for that target.
  • No records found is an acceptable result if the machine is already clean.
  • Unless the user asks otherwise, perform the logout step before deleting saved node records.