[Bug 276524] Setting LUN block size in ctl.conf to 512 will use volblocksize instead

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 26 Jan 2024 20:58:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276524

--- Comment #3 from balchen@ste.no ---
Hi Alexander.

I hope this is a better illustration of the issue. As you can see, the logical
block size reported to ESXi is always 512, but the physical block size is 4K
when set to 4K, and 8K when set to 512.

volblocksize=8K
LUN Block Size=4K
LUN Physical Block Size=<blank>

[root@localhost:~] esxcli storage core device capacity list
Device                             Physical Blocksize  Logical Blocksize 
Logical Block Count         Size  Format Type
---------------------------------  ------------------  ----------------- 
-------------------  -----------  -----------
t10.FreeBSD_MYDEVID00000000000000                4096                512       
   3865470576  1887436 MiB  Unknown


volblocksize=8K
LUN Block Size=512
LUN Physical Block Size=<blank>

[root@localhost:~] esxcli storage core device capacity list
Device                             Physical Blocksize  Logical Blocksize 
Logical Block Count         Size  Format Type
---------------------------------  ------------------  ----------------- 
-------------------  -----------  -----------
t10.FreeBSD_MYDEVID00000000000000                8192                512       
   3865470576  1887436 MiB  Unknown

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