Site icon Franky's Web

Exchange 2013/2016: Recreate index

If the search in Outlook Web Access, or Outlook on the Web, no longer works, a broken index is usually to blame. However, the index can be recreated quite easily and in most cases this solves the problem.

You can find out whether the index should be recreated using the Exchange Management Shell:

Get-MailboxDatabaseCopyStatus | ft name,contentindexstate -AutoSize

Der Befehl oben listet die Datenbanken auf und zeigt des Status des Index an. Wird in der Spalte „ContentIndexState“ der Wert „FailedAndSuspended“ oder „Failed“ angezeigt, bedeutet dies, dass der Index gar nicht oder unvollständig ist. In diesem Fall sollte der Index neu erstellt werden.

There are two ways to recreate the index. If a DAG is used, the index can simply be transferred from another mailbox server using the following command:

Update-MailboxDatabaseCopy Test-MBX\KAPUTTERSERVER -CatalogOnly

If no DAG is used, the index can be rebuilt in the following way. The following procedure also works if there is no intact index on all mailbox servers within the DAG.

To completely recreate the index, the following services must first be stopped

As soon as the services are terminated, the index directory in the mailbox database directory can be renamed or deleted. The directory can be quickly determined using the Exchange Management Shell:

Get-MailboxDatabase DB2013 | ft edbfilepath

Der Index befindet sich in diesem Fall im Verzeichnis „d:\DB2013“, im Ordner der Datenbank gibt es für den Index einen Ordner der die Datenbank GUID im Ordnernamen enthält:

This folder can now be renamed or deleted. The two Exchange services can then be restarted. The index will now be recreated. Depending on the size and number of elements within the database, this can take quite a while.

After the services have been restarted, the folder for the index is automatically recreated:

The status can be checked using the Exchange Management Shell:

Get-MailboxDatabaseCopyStatus DB2013 | ft name,contentindexstate -AutoSize

Nachdem der Index erfolgreich erstellt wurde, wird in der Spalte „ContentIndexState“ der Wer „Healthy“ angezeigt.

Exit mobile version