This article explains the Cluster health - Homogeneous vSAN disk sector size check in the vSAN Health Service and provides details on why it might report a warning/error and how to fix the warning/error state.
Starting from VCF 9.0 release, VSAN ESA can be created on 4KN NVMe devices. With addition of this support, there is a possibility that the ESXi host has a mix of 512N and 4KN NVMe devices, while this is a supported config but is not a recommended configuration. A recommendation is to always use homogenous devices for optimal performance
VMware vSAN 9.0 and higher
It checks that all storage devices within the vSAN ESA cluster have a consistent sector size, either 512 or 4K bytes. This prevents mixed sector sizes in the cluster, ensuring optimal performance and reliability.
When the health status is in an error state, it indicates that mixed sector sizes (512 and 4K bytes) of NVMe disks have been detected within the vSAN ESA cluster, excluding the witness host.
To fix the error state from this health check, you can ungroup the disk from the vSAN storage pool and then choose to either reformat or replace it.
To reformat the disk sector size, follow these steps
/bin/esxcli nvme namespace list /bin/esxcli nvme namespace identify -n <namespace name> . Below is an example of the command output.Name Value Description-------- -------------------------------- -----------...LBAF0 0x90000 LBA Format 0 SupportLBAF1 0x90008 LBA Format 1 SupportLBAF2 0xc0000 LBA Format 2 SupportLBAF3 0xc0008 LBA Format 3 SupportLBAF4 0xc0040 LBA Format 4 Support |
/bin/esxcli nvme controller list . Below is an example of the command output.Name Controller Number Adapter Transport Type Is Online Controller Type Is VVOL Keep Alive Timeout IO Queue Number IO Queue Size------------------ ----------------- ------- -------------- --------- --------------- ------- ------------------ --------------- -------------<Controller Name> 256 vmhba1 PCIe true false 0 2 1024<Controller Name> 257 vmhba0 PCIe true false 0 2 1024 |
/bin/esxcli nvme device namespace format -f <LBA format> -s 1 -n 1 -p 0 -A <vmhba name> -m 0 -l 0