"Vmdir service is not in Normal state", vCenter Server upgrade pre-check fails due to VMDIR in Standalone mode
search cancel

"Vmdir service is not in Normal state", vCenter Server upgrade pre-check fails due to VMDIR in Standalone mode

book

Article ID: 369151

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • vCenter Server update/upgrade pre-check fails during VMDIR replication status check with below error message

    Error
    Vmdir service is not in Normal state
    Check the vmdir state in vCenters - <VC FQDN>(Normal), <VC FQDN - ELM partner>(Standalone)
    Resolution
    For vCenters with vmdir state as “Standalone” refer KB https://knowledge.broadcom.com/external/article/369151
    Make sure vmdir service is Normal on all the vCenters before continuing.

  • Validating the VMDIR Arguments in Likewise registry shows the value "-m standalone"

    /opt/likewise/bin/lwregshell list_values '[HKEY_THIS_MACHINE\Services\vmdir]' | grep "Arguments"

    +  "Arguments"         REG_SZ          "/usr/lib/vmware-vmdir/sbin/vmdird -s -l 0 -f /usr/lib/vmware-vmdir/share/config/vmdirschema.ldif -m standalone"

Environment

  • vCenter Server 8.x
  • vCenter 9.x

Resolution

Perform below steps to resolve the issue :

  • Take Powered off snapshot of all the vCenter Servers in the same vSphere Domain
  • Login to the VCSA via SSH
  • Modify the likewise registry to update the value using below command depending on vCenter Server versions, this will remove the "-m standalone" switch:

    For any version below 8.0 U3:
    /opt/likewise/bin/lwregshell set_value '[HKEY_THIS_MACHINE\Services\vmdir]' "Arguments" "/usr/lib/vmware-vmdir/sbin/vmdird -s -l 0 -f /usr/lib/vmware-vmdir/share/config/vmdirschema.ldif"

    For 8.0 U3 and above versions:
    /opt/likewise/bin/lwregshell set_value '[HKEY_THIS_MACHINE\Services\vmdir]' "Arguments" "/usr/lib/vmware-vmdir/sbin/vmdird -l 0 -f /usr/lib/vmware-vmdir/share/config/vmdirschema.ldif -L /var/log/vmware/vmdird/vmdird.log"


  • Refresh the Likewise registry using below command

    /opt/likewise/bin/lwsm refresh

  • Change VMDIR state to NORMAL

    /usr/lib/vmware-vmafd/bin/dir-cli state set --state NORMAL --login administrator --password <password>

  • Check the VMDIR replication using vdcrepadmin

    /usr/lib/vmware-vmdir/bin/vdcrepadmin -f showpartnerstatus -h localhost -u administrator

  • Continue with the vCenter Server lifecycle operation if the replication status shows "0 changed behind"