kdragon75
Wizard
- Joined
- Aug 7, 2016
- Messages
- 2,457
I just ran across an odd issue when playing with record sizes and testing UNMAP with vSphere 6.7. I tried to create a zvol backed LUN with a record size of 128K as shown below. When setting up the LUN I left the physical block size reporting ON and was unable to format the LUN with VMFS. I checked the host logs and found the message below. I thought ok but wait a second, my main LUN, zvol data/vmblock has physical block size reporting ON and was (still is) fine and that's a record size of 16K! So I'm a little lost on this one and looking for any insight someone may have. On the same subject, are there any recommended options for the best performance with VMFS 6?
vmkwarning.log error:
zvol block sizes:
Not working:
Disable Physical Block Size Reporting ENABLED
Working:
Disable Physical Block Size Reporting DISABLED
vmkwarning.log error:
Code:
The Physical block size "131072" reported by the path vmhba1:C0:T0:L3 is not supported. The only supported physical blocksizes are 512 and 4096
zvol block sizes:
Code:
FreeNAS# zfs get volblocksize data/vmblock NAME PROPERTY VALUE SOURCE data/vmblock volblocksize 16K - FreeNAS# zfs get volblocksize data/UNMAP_TEST NAME PROPERTY VALUE SOURCE data/UNMAP_TEST volblocksize 128K -
Not working:
Disable Physical Block Size Reporting ENABLED
Code:
lun "UNMAP_TEST" { ctl-lun 3 path "/dev/zvol/data/UNMAP_TEST" blocksize 512 serial "782bcb42394603" device-id "iSCSI Disk 782bcb42394603 " option vendor "FreeNAS" option product "iSCSI Disk" option revision "0123" option naa 0x6589cfc000000c3b3ff114fb27684794 option insecure_tpc on option pool-avail-threshold 9565751161651 option rpm 10000 }
Working:
Disable Physical Block Size Reporting DISABLED
Code:
lun "UNMAP_TEST" { ctl-lun 3 path "/dev/zvol/data/UNMAP_TEST" blocksize 512 option pblocksize 0 serial "782bcb42394603" device-id "iSCSI Disk 782bcb42394603 " option vendor "FreeNAS" option product "iSCSI Disk" option revision "0123" option naa 0x6589cfc000000c3b3ff114fb27684794 option insecure_tpc on option pool-avail-threshold 9565751161651 option rpm 10000 }