Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Jun 2024 16:16:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271460] ctld ports become inaccessible due to concurrent service restarts
Message-ID:  <bug-271460-227-zGAOMC3rH2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271460-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271460-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271460

Alan Somers <asomers@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |In Progress

--- Comment #1 from Alan Somers <asomers@FreeBSD.org> ---
I've discovered a highly undocumented command that can allow one to recover
from this situation without a reboot.  First shutdown ctld, then remove each
iSCSI target port with the undocumented command, and then restart ctld.  The
command is:

ctladm port -d iscsi -r -p DONTCARE -O cfiscsi_portal_group_tag=3DTAG -O
cfiscsi_target=3DTARGET

Where "DONTCARE" must be an integer but otherwise its value does not matter,
"TAG" can be found via "ctladm portlist -v" and is typically 257 or greater,
and TARGET can also be found via "ctladm portlist -v".

I'll update the man page to document this syntax and also add ATF tests for=
 it.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271460-227-zGAOMC3rH2>