From nobody Thu Oct 03 15:06:19 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XKFPR6GcDz5YQx1 for ; Thu, 03 Oct 2024 15:06:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XKFPR33Jnz4dWb for ; Thu, 3 Oct 2024 15:06:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727967979; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SZKNpPWCqggPptd6BK48P9KUrWv/7MQO1lV0VR5H7lo=; b=LvoZoVEodSISVRxfm4GnhQy7iRjT0FXPYDZgd3hzLWA2jbY2NWkLSZ4GZmP8vQoHQmjwuD 1gXU3tV4YKdGLW7PLIWM7c7w2PHCOSqw07GNiUq4klRn9el6ly0IRr4gMbZHrOzk2Y9r5o b7B823aNSzhVvGMvNg/RfjSbW17X8a/A533Nv1tNu0kPkdcOfIUltqyeCajftv3ymiJkcx YebbdeWypDBxasReDeu26/9/Hips+BGGyDEU2E/FZ9uceLqy/6meKgefpzZLPYyOs4+wPX aK154Sw4KMRBDRy7m7lQ6XRdlFUt4MEPr1xSQMU7scpD/Q1wmb29p2Fo5kX2Ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727967979; a=rsa-sha256; cv=none; b=Gc/+I47XQzk1bAkF4UbZgz6SeVUZssZLzwNyy668AX4HtP5ClURTpcNhrg6susOghK3zce RG5yKhOIbgyRU1NBBgTbtcweFGYq3euo2auoFIrFmeArNHQll3viHa4GUMDrdG0NOW0Tm/ yqsczgeHFDEg+r3TZr5ocjVjJTjQ9L+6NC6zqN6W/vAbp+O7tCpiQ14KJQhpLhbfLOe4zO 9v6zYhp2rOkb+1QnQG+WR0I/gveZy15epeAn7N3WX2sMB+IBLUVxeHrlw0mwBZmZlZNI5S QMTVoe/hwE2lIzqZWoCzJGfcqs2LPsBekv4aIvT2OQCTqPcsar1OrYA+RRFgOg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XKFPR2Wh5zvhf for ; Thu, 3 Oct 2024 15:06:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 493F6Jr5002143 for ; Thu, 3 Oct 2024 15:06:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 493F6Jfl002142 for bugs@FreeBSD.org; Thu, 3 Oct 2024 15:06:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262301] [ctl] Cannot "kldunload ctl" Date: Thu, 03 Oct 2024 15:06:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262301 --- Comment #5 from Alan Somers --- 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 iS= CSI targets configured in the kernel. In that case, the iscsi and cfiscsi kern= el modules cannot be unloaded. Eventually I discovered an undocumented command that can manually remove iS= CSI ports. It looks like this: ctladm port -d iscsi -r -p DONTCARE -O cfiscsi_portal_group_tag=3DTAG -O cfiscsi_target=3DTARGET 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 displa= yed on the last column (but leave out any part after the comma, like ",t,0x0101= ". --=20 You are receiving this mail because: You are the assignee for the bug.=