From nobody Fri Jan 26 21:40:28 2024 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 4TMB2434Ykz58tY0 for ; Fri, 26 Jan 2024 21:40:28 +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 4TMB241w2Qz4XQZ for ; Fri, 26 Jan 2024 21:40:28 +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=1706305228; 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=K9pB4i6iNbFK6ddmOvo67BGEwvR+cFpZjmnFxvKQWPI=; b=xrcepMyvzRLOopXqM1rqzz6KExkocL3vBNzCHyNc26vj8PUCiE7MYs7lgkBIvJzFv0AKG8 qRT43KjLHdhYEGissXLVyUAZn1yhcwWRJls41o09Yk6fs4ipEpiZKNwA0FVeYPqxQRP2I5 y+CuCHM8EnZfQwDywMS6lZOG4oP/h8DXgyRiiZxdWU6xBxqHIxgc/vVMRSsHMct8GyuiPx WlgK5U4ubh1ZHq2/1VjQ5+TsK5dsFpvSRXuV3ou3WSDldGW9OUCro4c5u/l1BWv2Q678VD Us74ggKmxQhIQL8zIZOCaO5kUEbS+8UeTELX6l+2WHaiLAQcBtSWE3S2EQdBfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706305228; a=rsa-sha256; cv=none; b=PKz9OOwI3ef9BKF2DwxOI0C0uB/zCEsMlp273TpQMbkKuRZpxHDVD2sZkhHbX2yIiEfU8b wg7qS2nYvyO9w2SGMfhm2sc3+0uvw8z2SnpNXHcuSidnjK2SSxwXRPof03IQKLMzn2DSPR l3KTt2P4Ns7PDidjUTpO+Z0zpA5xin11Zpy2c6jQ0SY/LCbmls5IKke8qDvdn/ptPm/IlF 3Uf0StcxyUG+7TTd5H+VevDNFHFT5EeynpxdnnSnxuWG18gTZNUXk0+9q5sc6WnSmZ2v/6 4bEgDxs8brlwvv2t9bSy+h1FyvJXMmzJEUUUXJVQpaTGA13+C+05h4Il651k6g== 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 4TMB240tyGzyBt for ; Fri, 26 Jan 2024 21:40:28 +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 40QLeSHN015911 for ; Fri, 26 Jan 2024 21:40:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40QLeS95015909 for virtualization@FreeBSD.org; Fri, 26 Jan 2024 21:40:28 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 276524] Setting LUN block size in ctl.conf to 512 will use volblocksize instead Date: Fri, 26 Jan 2024 21:40:28 +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: balchen@ste.no X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@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: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276524 --- Comment #11 from balchen@ste.no --- Here's what Ubuntu 22.04 has to say about the same iSCSI LUN that I connect= ed to ESXi.=20 Does this make sense to you? It seems inconsistent to me in Linux as well. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D volblocksize=3D8K LUN Block Size=3D512 LUN Physical Block Size=3D balchen@blocksize-test:~$ sudo dmesg [....] [ 15.960107] Loading iSCSI transport class v2.0-870. [ 16.341346] iscsi: registered transport (tcp) [ 16.412853] scsi host33: iSCSI Initiator over TCP/IP [ 16.500664] scsi 33:0:0:0: Direct-Access FreeBSD iSCSI Disk 0= 123 PQ: 0 ANSI: 7 [ 16.503518] scsi 33:0:0:0: alua: supports implicit TPGS [ 16.503527] scsi 33:0:0:0: alua: device t10.FreeBSD MYDEVID0000\0\0\0\0\0 port group 1 rel port 3 [ 16.503752] sd 33:0:0:0: Power-on or device reset occurred [ 16.504341] sd 33:0:0:0: [sdb] 3865470576 512-byte logical blocks: (1.98 TB/1.80 TiB) [ 16.504346] sd 33:0:0:0: [sdb] 8192-byte physical blocks [ 16.504427] sd 33:0:0:0: [sdb] Write Protect is off [ 16.504432] sd 33:0:0:0: [sdb] Mode Sense: 7f 00 10 08 [ 16.504585] sd 33:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 16.504799] sd 33:0:0:0: [sdb] Optimal transfer size 1048576 bytes [ 16.505500] sd 33:0:0:0: Attached scsi generic sg2 type 0 [ 16.509214] sdb: sdb1 [ 16.511646] sd 33:0:0:0: [sdb] Attached SCSI disk [ 16.515220] sd 33:0:0:0: alua: transition timeout set to 60 seconds [ 16.515228] sd 33:0:0:0: alua: port group 01 state A non-preferred suppo= rts TolUSNA [ 65.600593] loop5: detected capacity change from 0 to 8 balchen@blocksize-test:~$ sudo blockdev --report /dev/sdb RO RA SSZ BSZ StartSec Size Device rw 4096 512 4096 0 1979120934912 /dev/sdb balchen@blocksize-test:~$ sudo sg_format -v /dev/sdb FreeBSD iSCSI Disk 0123 peripheral_type: disk [0x0] PROTECT=3D0 Unit serial number: MYSERIAL0000 LU name: @Pr=E2=96=92 mode sense(10) cdb: [5a 00 01 00 00 00 00 00 fc 00] Mode Sense (block descriptor) data, prior to changes: Number of blocks=3D3865470576 [0xe6666670] Block size=3D512 [0x200] read capacity(10) cdb: [25 00 00 00 00 00 00 00 00 00] Read Capacity (10) results: Number of logical blocks=3D3865470576 Logical block size=3D512 bytes No changes made. To format use '--format'. To resize use '--resize' balchen@blocksize-test:~$ sudo blockdev -v --getbsz /dev/sdb get blocksize: 4096 balchen@blocksize-test:~$ sudo blockdev -v --getpbsz /dev/sdb get physical block (sector) size: 8192 balchen@blocksize-test:~$ sudo blockdev -v --getss /dev/sdb get logical block (sector) size: 512 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D volblocksize=3D8K LUN Block Size=3D4K LUN Physical Block Size=3D balchen@blocksize-test:~$ sudo dmesg [....] [ 15.026385] Loading iSCSI transport class v2.0-870. [ 15.428041] iscsi: registered transport (tcp) [ 15.484360] scsi host33: iSCSI Initiator over TCP/IP [ 15.570188] scsi 33:0:0:0: Direct-Access FreeBSD iSCSI Disk 0= 123 PQ: 0 ANSI: 7 [ 15.574942] scsi 33:0:0:0: alua: supports implicit TPGS [ 15.574951] scsi 33:0:0:0: alua: device t10.FreeBSD MYDEVID0000\0\0\0\0\0 port group 1 rel port 3 [ 15.575206] sd 33:0:0:0: Power-on or device reset occurred [ 15.575843] sd 33:0:0:0: [sdb] 483183822 4096-byte logical blocks: (1.98 TB/1.80 TiB) [ 15.575849] sd 33:0:0:0: [sdb] 8192-byte physical blocks [ 15.575934] sd 33:0:0:0: [sdb] Write Protect is off [ 15.575939] sd 33:0:0:0: [sdb] Mode Sense: 7f 00 10 08 [ 15.576096] sd 33:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 15.576349] sd 33:0:0:0: [sdb] Optimal transfer size 1048576 bytes [ 15.579762] sd 33:0:0:0: [sdb] Attached SCSI disk [ 15.580794] sd 33:0:0:0: Attached scsi generic sg2 type 0 [ 15.583250] sd 33:0:0:0: alua: transition timeout set to 60 seconds [ 15.583258] sd 33:0:0:0: alua: port group 01 state A non-preferred suppo= rts TolUSNA [ 62.026528] loop5: detected capacity change from 0 to 8 balchen@blocksize-test:~$ sudo sg_format -v /dev/sdb FreeBSD iSCSI Disk 0123 peripheral_type: disk [0x0] PROTECT=3D0 Unit serial number: MYSERIAL0000 LU name: mode sense(10) cdb: [5a 00 01 00 00 00 00 00 fc 00] Mode Sense (block descriptor) data, prior to changes: Number of blocks=3D483183822 [0x1cccccce] Block size=3D4096 [0x1000] read capacity(10) cdb: [25 00 00 00 00 00 00 00 00 00] Read Capacity (10) results: Number of logical blocks=3D483183822 Logical block size=3D4096 bytes No changes made. To format use '--format'. To resize use '--resize' balchen@blocksize-test:~$ sudo blockdev --report /dev/sdb RO RA SSZ BSZ StartSec Size Device rw 4096 4096 4096 0 1979120934912 /dev/sdb balchen@blocksize-test:~$ sudo blockdev -v --getbsz /dev/sdb get blocksize: 4096 balchen@blocksize-test:~$ sudo blockdev -v --getpbsz /dev/sdb get physical block (sector) size: 8192 balchen@blocksize-test:~$ sudo blockdev -v --getss /dev/sdb get logical block (sector) size: 4096 --=20 You are receiving this mail because: You are the assignee for the bug.=