Directory partition has not been backed up [DC=virtualcenter,DC=vmware,DC=int]

With the help of Alan Renouf’s vCheck (Daily Report) script I recently started noticing an error in my Windows event log on a vCenter server.

This directory partition has not been backed up since at least the following number of days. Directory partition: DC=virtualcenter,DC=vmware,DC=int 'Backup latency interval' (days): 90 It is recommended that you take a backup as often as possible to recover from accidental loss of data. However if you haven't taken a backup since at least the 'backup latency interval' number of days, this message will be logged every day until a backup is taken. You can take a backup of any replica that holds this partition. By default the 'Backup latency interval' is set to half the 'Tombstone Lifetime Interval'. If you want to change the default 'Backup latency interval', you could do so by adding the following registry key. 'Backup latency interval' (days) registry key: System\CurrentControlSet\Services\NTDS\Parameters\Backup Latency Threshold (days)

This error only occurred in one of the three vCenter instances I manage. After checking with my enterprise backup team and confirming this server does get backed up on a regular basis I opened an support request (SR) with VMware Tech Support. Two weeks later VMware technical support finally contacted me about my SR. The response: since the error occurs as part of the ADAM/LDAP instance that comes with the underlying operating system please contact your Operating System vendor for support. After waiting as long as I did for an initial response I had higher hopes for an actual solution.

I started Google-ing for solutions on backing up the ADAM/ADLDS instance on my own. I found an excellent article on how to do this in powershell at Here is the actual script that I now run as a scheduled task:

[cc lang=”powershell”]
$vcenter = “”
$date = Get-Date -Format yyyy-MM-dd
$backpath = “D:\ESXiBackup\$vcenter\$date\”

#Create a backup of the ADAM Instance VMwareVCMSDS
md “$backpath#VMwareVCMSDS”
$cmd = $env:SystemRoot + “\system32\dsdbutil.exe `”ac i VMwareVCMSDS`” ifm `”create full $backpath\#VMwareVCMSDS`” q q”
Invoke-Expression $cmd

Now that I have my own VCMSDS backup — and no errors in the event log — I can sleep better at night.

This entry was posted in Scripting, Virtualization. Bookmark the permalink.

2 Responses to Directory partition has not been backed up [DC=virtualcenter,DC=vmware,DC=int]

  1. Joern says:

    Hi Brian,

    Well done ! I’ll use this one.
    Do I understand it correct that your D-partition eventually will run full with the backups ?
    Did you build in any check for a max-number of backup directories in your “D:\ESXiBackup\” directory ?

    Just asking before I try to do it myself 😉

    Kind regards


  2. Pingback: » Blog Archive » ESXiBackup Folder Cleanup

Leave a Reply

Your email address will not be published. Required fields are marked *


Notify me of followup comments via e-mail. You can also subscribe without commenting.