38 lines
963 B
Markdown
38 lines
963 B
Markdown
# Cirrus Data Cloud iSCSI Cleanup Reference
|
|
|
|
This file contains the standard iSCSI target cleanup sequence for Linux guests.
|
|
|
|
## 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.
|