The ISINTEG tool in Exchange 2007

Exchange 2007 uses the extensible storage engine database format to store data including user mailboxes and public folders. The ESE database is used by several different server applications, and ESE databases can be maintained and repaired using the ESEUTIL binary, which is included with the install of Exchange. However, ESEUTIL is a more generic maintenance tool for ESE databases in general, and does not understand mailboxes and public folders, nor does it understand how the tables in an ESE database are related. To perform higher level maintenance and repair of Exchange databases, the ISINTEG tool is invaluable.

ISINTEG (Information Store Integrity Checker) is the tool that understands how Exchange’s ESE databases work, and knows the relationship between tables and records and how they relate to user mailboxes, folders, and messages. When errors in a database keep the Information Store from starting, or users from logging on, receiving or sending email, or opening, moving or deleting messages in their mailbox, it’s time to use ISINTEG.

As a command line utility, ISINTEG is meant to be run from a command prompt by an Exchange administrator. It supports several switches, and can be used to run non-invasive tests or automated repairs. It can also run remotely against other mailbox servers. The syntax of the command looks like this:

isinteg –s servername [-fix] [-verbose] [-l logfilename] –test [alltest|testname1, testname2…]

Here’s a list of the common switches you might use:

switch mode description
-s servername specifies the local or remote server hosting the database
-fix repair repairs errors found. If you do not specify –fix, ISINTEG will only run noninvasive tests that do not modify the database
-verbose verbose outputs (or logs) verbose information about tests run, issues found, and actions taken
-l logfile name specifies the logfile created
-test testname specifies one or more tests to perform
-alltests all tests specifies to run all tests
-t temp location specifies where the temporary reference database should be created, rather than using %TEMP%
 
Test Description Test length dependencies
aclitemref Verifies reference counts for access control list items. Number of folders in the information store and the number of members of each access control list.
acllist Examines folders and validates access control lists. Number of folders in the information store.
acllistref Verifies the access control list reference counts. The number of folders in the information store.
allacltests Combines the acllist, acllistref, and aclitemref tests. See description for each subtest.
allfoldertests Combines the folder, fldsub, and search tests. See description for each subtest.
artidx (public store only) Tests the consistency of the Network News Transport Protocol (NNTP) article index. Number of NNTP messages and folders.
attach Validates properties for all attachments. Number of attachments in the information store.
attachref Validates attachment reference counts. Number of messages and attachments in the information store.
deleteextracolumns Deletes all cached indexes and some “extra” columns. Number of folders in the information store.
delfld Examines deleted folders, validates properties, and accumulates reference counts. Number of deleted folders and the number of messages in each folder.
dumpsterref Combines the msgref and msgsoftref tests. Additionally, it checks the item count of recoverable items and the size of the recoverable items available for Deleted Item Recovery. See description for msgref and msgsoftref.
dumpsterprops Runs the dumpsterref test and validates the presence of some required columns in the folder table. See description for dumpsterref.
fldrcv (private store only) Validates counts of special system folders, including Restrictions, Categorization, Inbox, Outbox, SentMail, Deleted Items, Finder, Views, Common Views, Schedule, and ShortCuts. Number of mailboxes and folders in the information store.
fldsub Validates the number of child folders. Also validates the number of recoverable child folders that are available for Deleted Item Recovery. Number of folders in the information store.
folder Examines folder tables and validates properties. Examines message tables, validates properties, and accumulates reference counts. Number of folders and messages in the information store.
mailbox (private store only) For each mailbox, examines folders, deleted folders, and tables. Also, validates properties and special folders (for example, Inbox, Outbox, Sent Items, Deleted Items, and other folders) that are in the folder table, and checks their sizes. Number of mailboxes, folders, deleted folders, and messages in the information store.
message Examines message tables and validates message table properties. Number of messages in the information store.
morefld Checks the search links (subset of the search test). In Fix mode, deletes all the cached categorization and restriction tables. Total number of cached categorization and total restriction tables.
msgref Validates message reference counts in the messages. Number of folders, messages, and attachments in the information store.
msgsoftref Validates message reference counts for messages marked for Deleted Item Recovery in the message table. Number of folders and messages in the information store.
namedprop Examines the folder, message, and attachment tables, and validates the named properties. Number of folders, messages, and attachments in the information store.
newsfeed (public store only) Validates newsfeed table properties, including permissions. Number of folders in the information store.
newsfeedref (public store only) Validates newsfeed reference counts. Number of folders in the information store.
oofhist (private store only) Validates out-of-office history information for all users. Number of out-of-office rules set.
peruser Validates per user read/unread information. Number of users.
rcvfld (private store only) Crosschecks receive folders with the folder table. Number of receive folders in the information store.
replstate Cleans up public folder replica lists that are out of sync and removes any unreferenced remote server rows from the replication state table. Number of entries in the replication state table.
rowcounts Validates the number of rows for all tables. Number of folders, messages, and attachments in the information store.
search Validates the search links. Number of folders in the information store.
timedev Counts the number of timed events (maintenance, periodic tasks, and so on). Number of timed events.

There are so many tests that ISINTEG can perform, it may be preferable to simply use the –alltests switch to run through them all. This can take hours to days on a very large database, so consider whether you want to do this, or run individual tests. It is faster to run all the tests you want in one command, rather than separating tests into multiple commands, so if you do not want to run them all, but you do want to run more than one test, string them together using the –test switch followed by a comma delimited list of the tests to run.

If your event logs indicate a problem with the Exchange database, including database inconsistencies, or hard errors when trying to move mailboxes, you probably need to run ISINTEG. Here is what to do, where in our example we want to run all tests. ISINTEG will only run against the offline database, so you do not need to specify which database to examine.

  1. Notify users that their mailbox will be unavailable.
  2. Dismount the database.
  3. Open a command prompt while logged on as an Exchange admin.
  4. Switch to the directory c:\program files\exchange\bin
  5. Run this command:
    isinteg –s localhost –fix –test alltest [enter]
  6. Check the last line of the output. If all reported outputs are 0, you are done. If you still see errors, don’t worry yet. Just repeat the command until you get no more errors. If after several tries you still get errors, add the –verbose switch (consider outputting to a logfile) and research any reported issues that cannot be repaired by ISINTEG.

Remember, running the –test alltests against larger datastores could take a day or more, so unless the error is causing a severe outage, forestall the tests until a weekend, or try to either narrow down the number of tests you run on large databases. Large is a relative term, and the processing power and disk performance of your Exchange server will both impact the time it takes to run ISINTEG. Regardless, when it comes to application level errors in an Exchange database, ISINTEG can be the difference between repairing, and data loss, so keep it handy when the need arises.

 

 


Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>