This article provides detailed information about the vSAN Health Service - Cluster Health - Homogeneous vSAN disk sector size Health.
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 ESA 9.0
Q: What does the Homogeneous vSAN disk sector size Health Check do?
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.
Q: What does it mean when it is in an error state?
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.
Q: How does one troubleshoot and fix the error state?
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 Check if the disk supports 4K native sectors and retrieve corresponding LBA format number by running the command /bin/esxcli nvme namespace identify -n <namespace name> . Below is an example of the command output.
If the output shows 0xc0000, it indicates that the disk supports a 4K native sector size, corresponding to LBA format 2. Conversely, 0x9000 represents support for 512-byte sectors, mapped to LBA format 0. The format number will be used in Step 5
Get controller - vmhba mapping through command /bin/esxcli nvme controller list . Below is an example of the command output.
/bin/esxcli nvme device namespace format -f <LBA format> -s 1 -n 1 -p 0 -A <vmhba name> -m 0 -l 0