Share via


Content Index FailedAndSuspended in Exchange 2010/2013/2016

Fixing a “Failed or FailedAndSuspended” Database Content Index in Exchange Server 2013/2016

 

Uses of Content Index is it will try to search Mailbox content in both Outlook and OWA (Outlook Web Access).

Sometimes there are chances of Database Failover and Switchover.

 

When Automatic Switchover or Failover takes place then checking Content Index State will be a good move.

Note: Rebuilding or Repairing the Content Index can cause High CPU Utilization on the servers. So it is recommended to perform such task only on the Week Ends or After Hours.

 

Checking the Content Index using the Below command

 

Get-MailboxDatabaseCopyStatus * |fl -auto

 

This will show all the Content Index State for all the Databases in the Organization

 

Today I’ve found my Database Content Index FailedAndSuspended as shown below:

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-1-300x166.png

 

Verified with above error mentioned using Command line in Exchange Management Shell & found the same as shown below:

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-2-300x52.png

 

Events that can be generated to identify the situation is Event ID 1012 as shown below:

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-3-300x221.png

 

Ok now it’s confirmed let’s proceed with troubleshooting steps

 

First Stop the services

 

1: Microsoft Exchange Search

Command : Stop-Service MsExchangeFastSearch

 

2: Microsoft Exchange Search Host Controller

Command : Stop-Service HostControllerService

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-4-300x73.png

 

Now it’s time to identify the Database to Rename, Delete or Moving the Content Index “Catalog Folder”

If you don’t know the Path of Database (EDB File Path) then run the below command it will show the EDB File Path

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-5-300x43.png

 

Locate the folder then this “Catalog Folder or Guid” can be either Renamed, deleted or Moved to another location.

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-6-300x106.png

 

Here I’ve Renamed the folder to “Guid.old” as shown below:

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-7-300x104.png

 

Then I’ve restarted both the services as shown below:

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-8-300x57.png

 

Ones you start the service check the status of the Content Index for the Databases which are “Failed or FailedAndSuspended” by running the below command:

 

Get-MailboxDatabaseCopyStatus -Server “Server Name”

 

First it will go Unknown state

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-9-300x42.png

 

Then status of Content Index will be changed from Unknown state to Crawling as shown below:

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-10-300x57.png

 

Slowly the status of the Content Index will be changed from Crawling to Healthy

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-11-300x54.png

 

Both the Databases changed to Healthy State from Crawling as shown below:

 

http://www.techrid.com/wp-content/uploads/2015/12/CIS2016-12-300x48.png

 

If this is Server is Member of DAG then run the below command as shown below:

 

Command :

Update-MailboxDatabaseCopy “Database Name\Server Name” -CatalogOnly -BeginSeed

 

If you have multiple Databases and it’s Content Index in “Failed or FailedAndSuspended” State then run the below command:

 

Command :

Get-MailboxDatabaseCopyStatus * |Where {$_.ContentIndexState -eq “FailedAndSuspended” |Update-MailboxDatabaseCopy -CatalogOnly
**
**