From nobody Mon Jan 22 11:12:58 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 4TJSHt4ZR1z57hDZ for ; Mon, 22 Jan 2024 11:12:58 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TJSHt24Vtz4cgZ for ; Mon, 22 Jan 2024 11:12:58 +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=1705921978; 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; bh=NG7oEOIcaB4O42Ov11fsJJJ1Pl88uZDClFSLLa2uejk=; b=uaaGG2EpojL2TSXhN8M/tkOrmRamEGh4IU1okEPDbZ1BFvrbh/faDDlxgUCAx8vMQfFUR3 y6DfAmC5Dn/gicOavaXqu1WMLJiZ0BcPeZmzhFY92g25MTfgypEvgrfEwxRieph1210DTC hkVuRpbzVOmb5S7YLdelXFgy6YqrBWSEQszJhy0pNmQy/szzhG4skMmgPPK6hODbkOvoWS Wzki/UJIDpul+cSaqbD2T9MiSvwrVRQWocoPkgovpHOgHhW7HMmy9VOP8TpIRglNwdIf7F 2O9qs5XcZmgfDNMQANbB6E75UPU+YjwCUhvy62rM2F5wGeK+MMY9WoaO/0Q0Iw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705921978; a=rsa-sha256; cv=none; b=ZuQmV/EeWdehwyRa9dl8O5a5vAISo59dpr2G1VP7oAxckKnk1VmAvUr+Bos/ZMmAJYg38X rwq1F/8w6WE37Rbhjll9Lh2TM+H/rNl7WwyPRU8ANTDKGvO9zbrTvb2tQ8srtRFddKo0xk QB7M1/XiRT76UF15epYWXgPbgwBmmskm5LExtNPnHY5JJ1jZ8JeOhduTeW5amxjZ8MnfxT vuO6NmBJmY1dkziQd/+kVr4tKy9EjCtpmJZq/dmNC7syYftftk7c7FeExp2zvfv+GXzXSA 69S9W9+KfKtRvbkROwi1t0fqXYUITOf3gasTqCBOrHHiPCNv0qKwJuELR2J8zA== 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 4TJSHt17h7zypT for ; Mon, 22 Jan 2024 11:12:58 +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 40MBCwf8090142 for ; Mon, 22 Jan 2024 11:12:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40MBCw03090141 for bugs@FreeBSD.org; Mon, 22 Jan 2024 11:12:58 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 276522] Setting LUN block size in ctl.conf to 4K causes mismatched block size and crashes in initiators Date: Mon, 22 Jan 2024 11:12:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: balchen@ste.no X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=3D276522 Bug ID: 276522 Summary: Setting LUN block size in ctl.conf to 4K causes mismatched block size and crashes in initiators Product: Base System Version: 13.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: balchen@ste.no Overview: If the LUN block size in ctl.conf is set to 4K, Windows and ESXi iSCSI initiators will crash while formatting the iSCSI device. With LUN block siz= e in ctl.conf set to 512, everything is fine. Steps to reproduce: Mirrored vdevs with ashift=3D12 on 2 x Samsung 870 QVO 4 TB Zpool on 2 x said vdevs Zvol with volblocksize=3D8K CTL LUN on the zvol with backend=3Dblock, block size=3D4K Connect Windows or ESXi initiator to the target and create a partition/datastore to fill the entire device. Actual result: ESXi fails during datastore creation saying: Operation failed, diagnostics report: Unable to create Filesystem, please see VMkernel log for more details: Failed to create VMFS on device t10.FreeBSD_xxxxxxxx_vm_datastore__:1 Looking at the ESXi logs, I see this: 2024-01-21T22:11:02.389Z cpu2:2098049)WARNING: ScsiDeviceIO: 11450: Mode Sense cmd reported block size 4096, does not match the current logical block size 512(with physical block size 4096) for device. 2024-01-21T22:11:02.389Z cpu2:2098049)WARNING: ScsiDeviceIO: 11452: The device t10.FreeBSD_xxxxxxxx_vm_datastore__ is marked format corrupt. .... 2024-01-21T22:11:36.079Z cpu36:2098584)WARNING: iscsi_vmk: iscsivmk_ConnCommandResponse:2369: SCSI command (opcode=3D0x2a) completed successfully without enough data: 65536 < 131072 2024-01-21T22:11:36.079Z cpu36:2098584)WARNING: iscsi_vmk: iscsivmk_ConnCommandResponse:2370: Sess [ISID: 00023d000001 TARGET: iqn.xxxxxxxxxxxxxxxxxxxxxxxxx:vmdatastore TPGT: 101 TSIH: 0] The entire disk management service in Windows crashes and is non-responsive until I disconnect the iSCSI target. When I reconnect the iSCSI target, Win= dows reports a disk with a partition that is much larger than the disk itself. Expected results: Creating and formatting the partition/datastore should work without issues. Build date and hardware: XigmaNAS 13.2.05 on FreeBSD 13.2-RELEASE-p1 running on Dell PowerEdge R730X= D. --=20 You are receiving this mail because: You are the assignee for the bug.=