Table of Contents
Issue One
One cause of this error is the mailbox database being in a ‘dirty shutdown’ state.
To check the state of a mailbox database, open the Exchange Management Shell and run the following:
1
eseutil /mh C:\ExchangeDatabases\DB01\DB01.edb
The output of the command will be something like:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
PS C:\Users\davidmarker> Set-Location $EXScripts
PS C:\Users\davidmarker> eseutil /mh C:\ExchangeDatabases\DB01\DB01.edb
Extensible Storage Engine Utilities for Microsoft(R) Windows(R)
Version 6.3
Copyright (C) Microsoft Corporation. All Rights Reserved.
Initiating RECOVERY mode...
Logfile base name: C:\ExchangeDatabases\DB01\DB01.edb
Log files: <current directory>
System files: <current directory>
Operation terminated with error -1003 (JET_errInvalidParameter, Invalid API par
meter) after 0.16 seconds.
c:\Program Files\Microsoft\Exchange Server\V15\Bin>esentutl.exe /MH C:\Exchange
atabases\DB01\DB01.edb
Extensible Storage Engine Utilities for Microsoft(R) Windows(R)
Version 6.3
Copyright (C) Microsoft Corporation. All Rights Reserved.
Initiating FILE DUMP mode...
Database: C:\ExchangeDatabases\DB01\DB01.edb
DATABASE HEADER:
Checksum Information:
Expected Checksum: 0x891e5d90
Actual Checksum: 0x891e5d90
Fields:
File Type: Database
Checksum: 0x891e5d90
Format ulMagic: 0x89abcdef
Engine ulMagic: 0x89abcdef
Format ulVersion: 0x620,20
Engine ulVersion: 0x620,20
Created ulVersion: 0x620,20
DB Signature: Create time:04/14/2020 21:11:30.197 Rand:3200906174 Computer
cbDbPage: 32768
dbtime: 236579052 (0xe19e8ec)
State: Dirty Shutdown
To soft recovery the database, run the following in the EMC:
1
esutil /R E:01 /l C:\ExchangeLogs\DB01\ /d C:\ExchangeDatabases\DB01\
Database in a Dirty Shutdown state even after the soft recovery To hard recovery the database, run the following in the EMC:
1
eseutil /p C:\ExchangeDatabases\DB01\DB01.edb
The state should now be ‘clean shutdown’:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
C:\Program Files\Microsoft\Exchange Server\V15\Bin>.\esentutl.exe /mh C:\ExchangeD
atabases\DB01\DB01.edb
Extensible Storage Engine Utilities for Microsoft(R) Windows(R)
Version 6.3
Copyright (C) Microsoft Corporation. All Rights Reserved.
Initiating FILE DUMP mode...
Database: C:\ExchangeDatabases\DB01\DB01.edb
DATABASE HEADER:
Checksum Information:
Expected Checksum: 0xb65e3837
Actual Checksum: 0xb65e3837
Fields:
File Type: Database
Checksum: 0xb65e3837
Format ulMagic: 0x89abcdef
Engine ulMagic: 0x89abcdef
Format ulVersion: 0x620,20
Engine ulVersion: 0x620,20
Created ulVersion: 0x620,20
DB Signature: Create time:04/14/2020 22:47:27.957 Rand:2497907570 Computer:
cbDbPage: 32768
dbtime: 593646961 (0x23625571)
State: Clean Shutdown
You should now be able to mount the mailbox database.
Issue Two
If the mount still fails with the same error above and the state is ‘clean shutdown’, move all the log files + 1 check file (E00.chk) from the Transaction logs folder location then try mounting the database again.
You can also determine the location by running the following in the Exchange Management Shell
1
Get-MailboxDatabase | Format-List Name,EdbFilePath,LogFolderPath