Link to home
Start Free TrialLog in
Avatar of brasso_42
brasso_42

asked on

Error message when running eseutil offline defrag on Exchange 2010 database

I get the below error message when trying to run an offline defrag on an exchange database.
The database is 241GB. The disk that the database is on is 259GB with 13.4GB free. So I am using a UNC path as the temp directory.
The disk I am using as the temp directory has 1.6TB free. So space on there isn't an option.

Below is the command I am running and the error message I am getting.

[PS] F:\OfficeDB>eseutil /d Office-DB.edb /t \\ADROOT\ExchangeDefragTemp

Extensible Storage Engine Utilities for Microsoft(R) Exchange Server
Version 14.03
Copyright (C) Microsoft Corporation. All Rights Reserved.

Initiating DEFRAGMENTATION mode...
            Database: Office-DB.edb

                  Defragmentation Status (% complete)

          0    10   20   30   40   50   60   70   80   90  100
          |----|----|----|----|----|----|----|----|----|----|
          X



Operation terminated with error -1022 (JET_errDiskIO, Disk IO error) after 0.141 seconds.



[PS] F:\OfficeDB>

Any help would be much appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Ivan
Ivan
Flag of Serbia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brasso_42
brasso_42

ASKER

Thanks. Will try again with the .edb database specified. Yes I dismounted the database first.
Is there any "auto service starts"?  Also any service monitoring functions that will auto start a service or mount a database when it's found to be down/unmounted?  

May be the cause of Exchange error -1022 JET_errDiskIO is:

- Damaged/corrupt database file
- Damaged file system or other Issues in the file system
- Missing file  elements
- Truncated file elements
- improper transaction log replay
- Other applications

If the error occurred due to Damaged/corrupt database file or file system then, you need to restore Exchange from a backup and verify or repair the file system.
If you don’t have an updated backup of the data then you need to repair the corrupt data. Get help from this article to use the Eseutil function to restore Exchange databases: http://blog.technotesdesk.com/how-to-use-the-eseutil-function-to-restore-exchange-databases/

The error can also occur if other applications are keeping the database pages open, that don’t let exchange to access them. In such case:
Restart all Exchange services, then restart the Exchange server

However, the amount of free disk space needed to defragment a database (Eseutil /d) is 110 percent of the size of the file being defragmented. When you repair a database (Eseutil /p), the amount of free disk space required depends on the number of corrupt pages in the database. This is different from how the older Edbutil.exe program repaired databases. Normally, 25 percent of the file being repaired is a conservative estimate of the amount of free disk space required.

Hope this helps!
Specifying the temp.edb file worked.

eseutil /d Office-DB.edb /t \\ADROOT\ExchangeDefragTemp\temp.edb