From nobody Sun Jan 19 20:24:12 2025 X-Original-To: virtualization@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 4YblLN4rHgz5lfdH for ; Sun, 19 Jan 2025 20:24:12 +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 4YblLN4LMRz43VS for ; Sun, 19 Jan 2025 20:24:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737318252; 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=Oq+Dr/G1eyFQVkIDSoc7007JI3xJUZ631jOkJRqYuS4=; b=FzKHNuRNBmV6M7hUAbjqNvdQa3E0++W43gjxLgPCmPuzLdYFxj4rQgmtq/bK6UA8TeLltv 30rJpjhGKydRg/LSPjre/0gTr1ipfcLz8qoahTPJJ6oWPosKrzmQDqDGK1z+I7baLOK5b7 gRj44NqlRhQCpOqZSttynzCd+yCTgtmg2C7qZnumiisGkVNMihDtdWJgwQvSK38pvtOnRm E+a06zOCkXoDwhf/zUTV+YrfPRMd9a79i+dNQFJm1nsKx1iOj8bgz7KTOXFv7cOtL5w5Gr ahsoPtZpjBbV/1kQGIjbiuKpDjmrjhX5CY4yMoDxita+SPDK8ivdZjdJZS+Ung== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737318252; 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=Oq+Dr/G1eyFQVkIDSoc7007JI3xJUZ631jOkJRqYuS4=; b=gQYCSkyqA3ZNqfkiWnzbwBYY9PtKEg4VjaFI4lSFUJE3To3H38PlhJgoVr1JC51f7K+RR4 mRYZ+lNvFO0ZM25NBTA+Jkzqqmup0oYw7e9ua+sWkCYiNDj7+TTn7q0UF3Xc5LFERRUM5M uX/zQu5UsxClsxGaImhdzIo/f++bOD0B6/Pdh/Q9VG5pbudGSY37zO7JnTzmI4lLCHP7Gc KkJw/BAJSFp7ayemgAGD4GjuZgCOluJRQO0B1Z7vxaL4o1vTxemtLnsLGXraHBhxhrD5mE vEE7JQ5Fq/b8CQwcJu85w5LtAKcsPojJ6S88PWsw7H33Zd/1uG/PrprFUvPN9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737318252; a=rsa-sha256; cv=none; b=hC2YgdSlbGWdaUdlIiDhUPTAZnQ+OIGqWpnqjx6x6I6tvph9vbIqo5gnIJSfSkm2hN9HvZ fuMjqk5CcXW0TBzYakAzhCCoyomU53wVrDa3LG5e5k5xgsRoqTMTttw30n8Gf0iEmHPGcT X1md4S+waPgzekwfUYuLsTmMau5gnKkAoBxRL/WdKDW23C3XUezqwLZDNLKQvQ6fGNmlYo TF61bfa2nsrtwPV5Ni+va4Mhwc88idSaHwNiND9KHFDpgrkxKyXmQ3eGIJtFgeTmxPMUUL fhqUK/+ZR/viLxOlVYBZS3ly+6SCl+8wJ6xuoTpq/9fkiTDTQ7hHVvmdDflHmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YblLN3vvbz14ww for ; Sun, 19 Jan 2025 20:24:12 +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 50JKOCHA010687 for ; Sun, 19 Jan 2025 20:24:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50JKOCTh010686 for virtualization@FreeBSD.org; Sun, 19 Jan 2025 20:24:12 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: virtualization@FreeBSD.org Subject: [Bug 276522] Setting LUN block size in ctl.conf to 4K causes mismatched block size and crashes in initiators Date: Sun, 19 Jan 2025 20:24:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: rm@richardmay.net X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276522 --- Comment #9 from rm@richardmay.net --- (In reply to balchen from comment #8) I see the [possible] discrepancy after reading your bug report more careful= ly. Your ESXi host was somehow detecting "current logical block size 512" and y= et "Mode Sense cmd reported block size 4096" per vmkernel.log. So ctl's response to the mode sense query was correct ("4k logical") and yet ESXi still thought "current logical block size" was 512 -- the implication being ctl *could* have given a wrong answer to a prior and different query.= It begs the question of what gave ESXi that impression. ESXi detecting an existing on-disk format from a prior boot could be one source. ESXi is notoriously "sticky" about block devices -- it seems to ca= che details about said devices and their filesystems and throws toys out of the crib when something different shows up purporting to carry the same volume.= Or when a different volume arrives on a familiar device. Hence the existence = of hacks like LVM.EnableResignature, SCSI.CompareLUNNumber, and LVM.DisallowSnapshotLUN. For sure 512e (i.e. blocksize 512 with option pblocksize 4096) is almost certainly the best path forward. I've checked the kernel logs from my experiments and found your exact same error on five occasions. An explicit 512e setup "just works" thankfully. --=20 You are receiving this mail because: You are the assignee for the bug.=