Host is out of compliance with desired configuration after disable and enable LUN path
search cancel

Host is out of compliance with desired configuration after disable and enable LUN path

book

Article ID: 437312

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • ESXi host is configured with desired configuration in Desired State of vCenter Server.
  • Host will report out of compliance with desired configuration after disable and enable LUN path.

    Message: Host is out of compliance with desired configuration
    Setting: /profile/esx/storage/paths/iqn.1998-01.com.vmware:<host-fqdn-or-ip>:1409364661,<iqn-name-target>:<target-name>,t,1-<lun-id>
    Host value: Configured
    Cluster value: Not Configured

Environment

VMware vCenter Server 8.0.x
VMware vCenter Server 9.0.x

Cause

The action to disable and enable LUN path will write the path status into configstore of ESXi host. However the default state of configstore will not contain path of storage. This will cause drift between the original state and the host on storage path. 

Resolution

To fix the issue with either below options:

  • Extract the new configuration of the ESXi host and apply the draft to the whole cluster.  
    1. Configure draft from the ESXi host by "IMPORT FROM HOST" under Draft. See Import a Configuration Document or a Configuration from a Reference Host Into an Existing Draft Configuration.
    2. Click APPLY CHANGES. Hosts in the cluster will be remediated with the configuration of the reference host. 
    3. Check Compliance again all hosts are in compliance. 
  • Remove storage path status from configstore of the ESXi host if don't want to apply the change to the whole cluster. 

    1. SSH to the ESXi host.
    2. Run the command to confirm the storage path in configstore:

      /bin/configstorecli config current get -c esx -g storage -k paths

      Sample output:

      [
         {
            "path": "iqn.1998-01.com.vmware:<host-fqdn-or-ip>:1409364661,<iqn-name-target>:<target-name>,t,1-<lun-id>,
            "state": "ACTIVE"
         }
      ]

    3. Delete the path info in configstore:

      /bin/configstorecli config current delete -c esx -g storage -k paths --all

      Sample output:

      Delete: completed successfully.

    4. Check compliance again.

    Note: 
    • The action to remove the storage path in configstore will not impact the LUN path connectivity. 
    • Suggest to migrate virtual machine in this LUN to other ESXi hosts before this action.