Attempts to perform a file-based backup using the vCenter Server VAMI UI fail. The system logs and interface report the following behaviors:
`BackupManager encountered an exception` appears in the VAMI./var/log/vmware/applmgmt/backup.log file contains the error: VdcBackupDB: Server in state (8) in which it cannot perform backup. error(9125).YYYY-MM-DDTHH:MM:SS [LotusBackup:PID-######] [Lotus::BackupLotus:Lotus.py:##] INFO: Starting backup Lotus.YYYY-MM-DDTHH:MM:SS [LotusBackup:PID-######] [Lotus::BackupLotus:Lotus.py:##] INFO: BackupLotus: Running /usr/lib/vmware-vmdir/bin/vdcbackup /storage/db/vmware-vmdir/ /tmp/backup_lotusYYYY-MM-DDTHH:MM:SS [LotusBackup:PID-######] [Lotus::BackupLotus:Lotus.py:##] INFO: stdout: VdcBackupDB: Server in state (8) in which it cannot perform backup. error(9125)YYYY-MM-DDTHH:MM:SS [LotusBackup:PID-######] [Lotus::BackupLotus:Lotus.py:##] ERROR: BackupLotus: command "/usr/lib/vmware-vmdir/bin/vdcbackup /storage/db/vmware-vmdir/ /tmp/backup_lotus" failed. rc: 165.YYYY-MM-DDTHH:MM:SS [LotusBackup:PID-######] [Lotus::BackupLotusCleanup:Lotus.py:###] INFO: Successfully completed Lotus cleanup.YYYY-MM-DDTHH:MM:SS [MainProcess:PID-######] [vpxdevent_lib::dispatch_events:vpxdevent_lib.py:###] INFO: Event com.vmware.applmgmt.backup.job.failed.event successfully posted tohttp://localhost:8085/sdkYYYY-MM-DDTHH:MM:SS [MainProcess:PID-######] [BackupManager::main:BackupManager.py:###] INFO: Backup job failed.ORYYYY-MM-DDTHH:MM:SS [MainProcess:PID-######] [Proc::VerifyProcStatusAndGetArchive:Proc.py:###] ERROR: Error at process LotusBackup; rc:165.YYYY-MM-DDTHH:MM:SS [MainProcess:PID-######] [Proc::VerifyProcStatusAndGetArchive:Proc.py:###] ERROR: stderr:Encounter error during dump Lotus, check log for details: backup.logYYYY-MM-DDTHH:MM:SS [MainProcess:PID-######] [Proc::VerifyProcStatusAndGetArchive:Proc.py:###] INFO: Following error message isn't localized: stderr:Encounter error during dump Lotus, check log for details: backup.logYYYY-MM-DDTHH:MM:SS [MainProcess:PID-######] [BackupManager::main:BackupManager.py:###] ERROR: BackupManager encountered an exception: Hit exception inside process LotusBackup:YYYY-MM-DDTHH:MM:SS [MainProcess:PID-######] [BackupManager::HandleBackupCleanup:BackupManager.py:###] INFO: Cleaning up the backup job./usr/lib/vmware-vmdir/bin/vdcadmintoolSelect option 6VmDir State is - Standalone
To resolve the issue, validate and change the vmdir state to Normal
Take a snapshot of the vCenter Server Appliance. Refer to Snapshot Best practices for vCenter Server Appliance.
Log in to the VCSA via SSH and enter the shell.
Validate the entry in the likewise registry:
/opt/likewise/bin/lwregshell list_values '[HKEY_THIS_MACHINE\Services\vmdir]' | grep "Arguments"
Example output+ "Arguments" REG_SZ "/usr/lib/vmware-vmdir/sbin/vmdird -s -l 0 -f /usr/lib/vmware-vmdir/share/config/vmdirschema.ldif -m standalone"
Update the vmdird state to NORMAL if the registry does not show standalone but the state check returned (8):
/usr/lib/vmware-vmdir/bin/vdcadmintool
Select Option 5 and set the value by manually typing Normal.
If the argument includes -m standalone, the registry must be modified.
Modify the likewise registry based on your vCenter version:
For vCenter 8.0 U3 and later:
/opt/likewise/bin/lwregshell set_value '[HKEY_THIS_MACHINE\Services\vmdir]' "Arguments" "/usr/lib/vmware-vmdir/sbin/vmdird -L /var/log/vmware/vmdird/vmdird.log -l 0 -f /usr/lib/vmware-vmdir/share/config/vmdirschema.ldif"
For versions prior to 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"
Reboot the VCSA to apply changes.
⚠️ IMPORTANT: The resolution steps provided for vCenter 8.x and earlier also address backup failures in vCenter 9.0 and 9.1, where ELM is no longer supported but vmdird state issues may still persist.
Japanese version : VAMI を介した VCSA バックアップが、vmdird データベースのバックアップ中に「Server in state (8) in which it cannot perform backup」のエラーで失敗する
NOTE: This issue will also affect backups in vCenter versions 9.0 and 9.1 even though ELM is no longer supported in these versions
The resolution in this KB will address the issue in version 9.x