When attempting to create any objects on the vSAN datastore it fails with the error, "Cannot complete file creation operation. Object policy is not compatible with datastore space efficiency policy configured on the cluster."
esxcli vsan storage list (see example output below)naa.XXXXXXXXXXXXXX Device: naa.XXXXXXXXXXXXXX Display Name: naa.XXXXXXXXXXXXXX Is SSD: true VSAN UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX VSAN Disk Group UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX VSAN Disk Group Name: naa.XXXXXXXXXXXXXX Used by this host: true In CMMDS: true On-disk format version: 20 Deduplication: true Compression: true Checksum: 12345678901234567890 Checksum OK: true Is Capacity Tier: false Encryption Metadata Checksum OK: true Encryption: false DiskKeyLoaded: false Is Mounted: true
This is caused by a discrepancy in the vSAN configuration between how the vSAN disk groups are configured which show TRUE for both deduplication and compression, and vCenter which shows None for the Space efficiency setting.
In order to resolve this issue the vSAN configuration must be consistent for all settings. Otherwise, it will fail to create any objects, and could lead to other unexpected behavior. The most efficient way to resolve this is to Enable Deduplication and Compression on an Existing vSAN Cluster by following these steps.
Note:
While enabling deduplication and compression on a vSAN OSA cluster, vSAN updates the on-disk format of each disk group of the cluster. To accomplish this change, vSAN evacuates data from the disk group, removes the disk group, and recreates it with a new format that supports deduplication and compression. This will likely happen even if deduplication and compression are already enabled on the disk groups.