How to disable vSAN CnsSync Warnings.
search cancel

How to disable vSAN CnsSync Warnings.

book

Article ID: 415074

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Customers may experience excessive Info-level logging from VMware vSAN, specifically warnings related to datastore synchronization (CnsSync). 

Environment

vSphere 8.0.3 and newer.

Cause

The frequent occurrence of CnsSync warnings is caused by the vSAN component's default setting for the CNS (Content Storage Node) synchronization interval. By default, this interval is set to 1 minute, leading to a high volume of Info-level logs that are generated every time the synchronization process attempts to sync datastores.

Resolution

Steps to disable CNS sync messages:

  1. Locate VsanVcMgmtConfig.xml File:

    Identify the path to the VsanVcMgmtConfig.xml file on your vSAN management node. This file is typically located in /etc/vmware/vsan/config/.

  2. Modify newSyncInterval Parameter:

    Open the VsanVcMgmtConfig.xml file using a text editor.
    Locate the <property name="newSyncInterval">60</property> entry.
    Change the value of 60 to 0. This disables periodic sync.

  3. Save and Restart Services:

    Save the changes to the VsanVcMgmtConfig.xml file.
    Restart the vSAN management services for the changes to take effect. Typically, this involves restarting the vsan-healthd, vsan-vc, and vsan-cluster-managementd services.