[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 21:36:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276524

--- Comment #10 from balchen@ste.no ---
Changed LUN block size to 4K.

xigmanas: etc# cat ctl.conf
#   global settings
#   auth-group configuration
#   portal-group configuration
portal-group "iscsi" {
    discovery-auth-group "no-authentication"
    listen "0.0.0.0"
}
#   lun configuration
lun "test" {
    backend "block"
    blocksize "4096"
    device-type "disk"
    option "vendor" "FreeBSD"
    option "product" "iSCSI Disk"
    option "revision" "0123"
    option "rpm" "7200"
    option "formfactor" "3"
    path "/dev/zvol/test2/test2vol"
}
#   target configuration
target "iqn.2001-01-01.no.ste.test" {
    auth-group "no-authentication"
    portal-group "iscsi"
    lun "0" "test"
}


[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

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