Hello,
When i create a new device (vdisk_blockio) with Block Size 4096, ESXi will not find the disk. Size 512 works fine.
dmesg
===
[211233.786891] dev_vdisk: Registering virtual vdisk_blockio device T610---001 (BLOCKIO, ROTATIONAL)
[211233.798091] dev_vdisk: Auto enable thin provisioning for device /dev/mapper/VG_Data_001-LV_Data_001
[211233.798097] dev_vdisk: Attached SCSI target virtual disk T610---001 (file="/dev/mapper/VG_Data_001-LV_Data_001", fs=1869312MB, bs=4096, nblocks=478543872, cyln=233664)
[211233.798210] scst: Added device T610---001 to group copy_manager_tgt (LUN 8, flags 0x4) to target copy_manager_tgt
[211233.798220] scst: Attached to virtual device T610---001 (id 9)
[211244.019144] scst: Added device T610---001 to group G-ESXi-T-T2 (LUN 0, flags 0x2) to target iqn.2022-10.esos.t610:rnd002
===
ESXi:
===
2023-01-16T06:51:18.394Z cpu2:2767050 opID=db7cd4bf)WARNING: NMP: nmp_RegisterDevice:873: Registration of NMP device with primary uid 'eui.3435313866393361' failed. Not supported
2023-01-16T06:51:18.394Z cpu2:2767050 opID=db7cd4bf)WARNING: NMP: nmp_RegisterDevice:873: Registration of NMP device with primary uid 'eui.3435313866393361' failed. Not supported
2023-01-16T06:55:35.036Z cpu1:2097347)WARNING: NMP: nmp_RegisterDevice:873: Registration of NMP device with primary uid 'eui.3435313866393361' failed. Not supported
2023-01-16T06:55:35.037Z cpu3:2097347)WARNING: NMP: nmp_RegisterDevice:873: Registration of NMP device with primary uid 'eui.3435313866393361' failed. Not supported
===
cat /sys/kernel/scst_tgt/handlers/vdisk_blockio/T610---001/blocksize
4096
without size 4096 i can't test LVM writecache
thanks