Get and Set HA FDM configuration using Configstore (8.02 and later)
search cancel

Get and Set HA FDM configuration using Configstore (8.02 and later)

book

Article ID: 313289

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

HA FDM configuration is moved to Configstore from vCenter 8.0.2 onwards. When the vCenter is 8.0.2 and above, the following changes are seen based on the underlying ESXi host versions.

Environment

VMware vCenter Server 8.0.2
VMware vCenter Server 8.0.3

Cause

The goal of the ESXi Shell tool configstorecli, introduced in ESXi 7.0 Update 1, is to manage all configurations for an ESXi host centrally, instead of using different methods and a variety of configuration files.

Resolution

  • GET (read) the FDM configuration:

  1. On host above 7.0.3

GET (read) the FDM running configuration from host 7.0.3 and above, when the managing vCenter is 8.0.2 and above:

esx# /bin/configstorecli config current  get -c ha -k fdm_service -g cluster

GET (read) the FDM default  configuration from host 7.0.3 and above, when the managing vCenter is 8.0.2 and above:

esx# /bin/configstorecli config default  get -c ha -k fdm_service -g cluster

Note:  The  file '/etc/opt/vmware/fdm/fdm.cfg' is non-operative from the running FDM agent perspective and should not be read.

  1. On host from 7.0.0 to 7.0.2

GET (read) the FDM running  configuration from host 7.0.0 to 7.0.2, when the managing vCenter is 8.0.2 and above:

esx# /bin/configstorecli config current  get -c ha -k fdm -g cluster


GET (read) the FDM default  configuration from host 7.0.0 to 7.0.2, when the managing vCenter is 8.0.2 and above:

esx# /bin/configstorecli config default  get -c ha -k fdm -g cluster

Note:  This is to GET (read only) the customized FDM properties.  For reading infrastructure configuration i.e., the non-FDM properties open  the file '/etc/opt/vmware/fdm/fdm.cfg'.

  1. On host below 7.0

Note: The  file '/etc/opt/vmware/fdm/fdm.cfg' is operative from the running FDM agent perspective and can be read by the user.

  • SET (update) the FDM configuration:

  1. On host above 7.0.3

Below command to update  the FDM running  configuration from host 7.0.3 and above, when the managing vCenter is 8.0.2 and above. FDM agent be restarted to read the updated configuration:

esx# $cat fdm.json

{
   "fdm": {
      "mem_reservation_MB": 200
   }
}

esx# $/bin/configstorecli config current  set -c ha -k fdm_service -g cluster -infile fdm.json

Note:  The  file '/etc/opt/vmware/fdm/fdm.cfg' is non-operative from the running FDM agent perspective and should not be modified.

  1.  On host from 7.0.0 to 7.0.2

Below command to update the FDM running  configuration from host 7.0.0 to 7.0.2, when the managing vCenter is 8.0.2 and above.
esx# $cat fdm.json

{
   "mem_reservation_MB": 200
}

esx# $/bin/configstorecli config current set -c ha -k fdm -g cluster -infile fdm.json


Note: This is to update  only the customized FDM properties.  For updating  the infrastructure configuration i.e., non-FDM properties modify  the file '/etc/opt/vmware/fdm/fdm.cfg'.

  1. On host below 7.0

Note: The  file '/etc/opt/vmware/fdm/fdm.cfg' is operative from the running FDM agent perspective and can be modified by the user.

Additional Information

You can modify ESXi configuration files in the ESXi Configuration Store (ConfigStore) by using the /bin/configstorecli tool.