Add iSCSI cleanup reference for guest target removal

This commit is contained in:
2026-04-28 11:47:13 -04:00
parent 22da851f44
commit 2832ea4175
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
# 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:
```bash
iscsiadm --mode node --logoutall=all
```
2. List saved node records and note the target IQN values:
```bash
iscsiadm -m node
```
3. Remove each target by IQN:
```bash
iscsiadm -m node -o delete -T <iqn>
```
4. Re-list nodes and confirm the list is empty:
```bash
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.