[Bug 262301] [ctl] Cannot "kldunload ctl"
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 262301] [ctl] Cannot "kldunload ctl""
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Oct 2024 15:06:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262301 --- Comment #5 from Alan Somers <asomers@FreeBSD.org> --- Unloading cfiscsi first works _if_ ctld shut down cleanly. What originally tripped me up was the case where ctld did not shut down cleanly, leaving iSCSI targets configured in the kernel. In that case, the iscsi and cfiscsi kernel modules cannot be unloaded. Eventually I discovered an undocumented command that can manually remove iSCSI ports. It looks like this: ctladm port -d iscsi -r -p DONTCARE -O cfiscsi_portal_group_tag=TAG -O cfiscsi_target=TARGET On FreeBSD 15+, the "-p DONTCARE" option can be omitted. The TAG is what's displayed on the "pp" column of "ctladm portlist", and the TARGET is displayed on the last column (but leave out any part after the comma, like ",t,0x0101". -- You are receiving this mail because: You are the assignee for the bug.