Link to home
Start Free TrialLog in
Avatar of Pall Palsson
Pall PalssonFlag for Iceland

asked on

Exchange Mailbox Restore Failed

Good Day.
I have a problem that i have not been able to resolve.
I need to make a mailbox recovery of one of my mailboxes.
I took an restore from DPM 2010 and recovered the Mailbox Database that contains 15 Mailboxes.
Move the mailbox Database and the log folder to the exchange server , and used eseutil to check the sutdown state of the database. i was unable to get the database in to clean shutdown using
eseutil /r E05 /i /l <log dir> /d edb_file

Open in new window

After that i used
eseutil -p

Open in new window

 witch did set the database to a clena sutdown.
After that i mounted the database as an recovery database , and tried to restore the mailbox.
The mailboxrestorerequest failes after 28% with the Error.
The Microsoft Exchange Mailbox Replication service was unable to process jobs in a mailbox database.
Database: Recovery
Error: MapiExceptionLogonFailed: Unable to open message store. (hr=0x80040111, ec=-2147221231)
Diagnostic context:
    Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=232]
    Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=272][latency=0]
    Lid: 23226   --- ROP Parse Start ---
    Lid: 27962   ROP: ropLogon [254]
    Lid: 17082   ROP Error: 0x80040111
    Lid: 26937  
    Lid: 21921   StoreEc: 0x80040111
    Lid: 27962   ROP: ropExtendedError [250]
    Lid: 1494    ---- Remote Context Beg ----
    Lid: 26426   ROP: ropLogon [254]
    Lid: 44215  
    Lid: 60049   StoreEc: 0x8004010F
    Lid: 49469  
    Lid: 65341   StoreEc: 0x8004010F
    Lid: 56125  
    Lid: 47933   StoreEc: 0x8004010F
    Lid: 32829  
    Lid: 49213   StoreEc: 0x8004010F
    Lid: 48573  
    Lid: 64957   StoreEc: 0x8004010F
    Lid: 59409  
    Lid: 45073  
    Lid: 11173   StoreEc: 0x80040111
    Lid: 22970  
    Lid: 8620    StoreEc: 0x80040111
    Lid: 1750    ---- Remote Context End ----
    Lid: 26849  
    Lid: 21817   ROP Failure: 0x80040111
    Lid: 26297  
    Lid: 16585   StoreEc: 0x80040111
    Lid: 32441  
    Lid: 1706    StoreEc: 0x80040111
    Lid: 24761  
    Lid: 20665   StoreEc: 0x80040111
    Lid: 25785  
    Lid: 29881   StoreEc: 0x80040111

Open in new window


My research shows this error in regards to moving from Exchange 2003 to Exchange 2010. But i found no information about this error in regards to mailbox restore.
I did do an restore of another mailbox just to make sure that the db is ok. and that restore wen't ok.
It should be noted i am restoring into an alternative mailbox using the -AllowLegacyDNMismatch
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

I would if no Mailbox mount this on some Production DB (Create a Temp Database) and then connect a test AD account and export data to PST using Outlook ....

As after Eseutil /P its recommended to run Eseutil /D and Isinteg as without the latter 2 you just fixed the Corruption or to bring it to CleanState what about fixing its moved or cleared pages and what about broken pointers

- Rancy
Avatar of Pall Palsson

ASKER

This is just a restore of an production db, so this is a temp db.
I did not run the eseutil /d and isinteg after eseutil /p.
So what i will do now is just to throw away the temp db i have created, and start over.
Ohk .... let  me know how it goes

- Rancy
Hope you were able to get this completed ?

- Rancy
sorry about the long wait , i got the flew and just got back to the office.
Im starting this to day , hopefully with some results within the next hours
Here are the steps i took to restore the database.

Fresh dpm restore to a file share.

eseutil /mh 

Open in new window

Status = Dirty Shutdown
eseutil /ml <DBLogFolder>\E05 

Open in new window

All logs are OK
eseutil /r "E05" /l <DBLogFolder> 

Open in new window

Completed with error.
"Operation terminated with error -1216 (JET_errAttachedDatabaseMismatch, An outst
anding database attachment has been detected at the start or end of recovery, bu
t database is missing or does not match attachment info) after 10.47 seconds."


eseutil /r "E05" /l <DBLogFolder> /i 

Open in new window

Competed OK

eseutil /p <Path to edb File>

Open in new window

"Operation completed successfully with 595 (JET_wrnDatabaseRepaired, Database co
ruption has been repaired) after 3188.769 seconds."


Next i created a new mailbox recovery database , and mounted it , created a new request.
That failed with the following Events. First an information event , Error Event and then and warning event.
// I had to remove all the email address from the events , so all of them are email@domain.com or some.email@domain.com where the email was name.name@domain.com

First Event
The Microsoft Exchange Mailbox Replication service started processing a mailbox move for 'RequestGuid (0f96a33a-d0a1-47f2-ae56-d9646f22642f), RequestQueue: (f3f0ed5c-d3d7-4ce5-be83-0362d52264aa)'.
Mailbox GUID: 0f96a33a-d0a1-47f2-ae56-d9646f22642f
Source MDB: RecoveryDatabase
Destination mailbox database: Database-no-limit
Move flags: IntraOrg, Pull

Open in new window


Error Event
Request 'RequestGuid (0f96a33a-d0a1-47f2-ae56-d9646f22642f), RequestQueue: (f3f0ed5c-d3d7-4ce5-be83-0362d52264aa)' (0f96a33a-d0a1-47f2-ae56-d9646f22642f) failed.
Error code: -2147024809
MapiExceptionInvalidParameter: Unable to modify table. (hr=0x80070057, ec=-2147024809)
Diagnostic context:
    Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=228]
    Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=324][latency=0]
    Lid: 23226   --- ROP Parse Start ---
    Lid: 27962   ROP: ropModifyRules [65]
    Lid: 17082   ROP Error: 0x80070057
    Lid: 27745  
    Lid: 21921   StoreEc: 0x80070057
    Lid: 27962   ROP: ropExtendedError [250]
    Lid: 1494    ---- Remote Context Beg ----
    Lid: 26426   ROP: ropModifyRules [65]
    Lid: 23921   StoreEc: 0x3EC     
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x668F0040
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x668F0040
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x67F60040
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x67F60040
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x67F60040
    Lid: 48851  
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x67F60040
    Lid: 51077   dwParam: 0x80000000
    Lid: 65267  
    Lid: 40691  
    Lid: 5559    StoreEc: 0x80070057
    Lid: 65015  
    Lid: 65439  
    Lid: 4302    StoreEc: 0x80070057
    Lid: 1750    ---- Remote Context End ----
    Lid: 26849  
    Lid: 21817   ROP Failure: 0x80070057
    Lid: 29150  
    Lid: 20446   StoreEc: 0x80070057
Context:
--------
Operation: IDestinationFolder.SetRules
OperationSide: Target
Primary (6e819cdd-af7a-42e3-8a05-e52059076898)
Rules: [Rule: Condition: Restriction: AND[OR[OR[CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"Email@domain.is"(string)]]]; AND[OR[AND[EXIST[ptag:SpamConfidenceLevel]; PROPERTY[ptag:SpamConfidenceLevel, GreaterThan, val:[Tag:SpamConfidenceLevel, Value:-1(int)]]]; OR[]]; NOT[OR[OR[]; RECIPIENT[OR[]]]]]]; NOT[OR[OR[CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]]; RECIPIENT[OR[]]; OR[CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"some.email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"some.email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"some.email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"some.email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"some.email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"some.email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"some.email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.is"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@doamin.co.za"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.is"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.is"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"email@domain.com"(string)]]; CONTENT[ptag:SenderEmailAddress, IgnoreCase, val:[Tag:SenderEmailAddress, Value:"gunnarn@microsoft.com"(string)]]]]]]; Actions: [RuleAction: MOVE FolderEID:[len=46, data=00000000E26579B08EF30C43A65EC299B33D092B01003E4F7FA9A16F2A478C80AC64A9AB9604000000DC543A0000], StoreEID:[len=160, data=0000000038A1BB1005E5101AA1BB08002B2A56C20000454D534D44422E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC45A0C0000004D41524B4F504D583031002F6F3D4D617269746563682F6F753D45786368616E67652041646D696E6973747261746976652047726F7570202846594449424F484632335350444C54292F636E3D526563697069656E74732F636E3D736967726964757200]; RuleAction: TAG [Tag:0x816e0003(NamedProp), Value:-946502290(int)]]; Name 'Junk E-mail Rule'; Provider: 'JunkEmailRule'; ProviderData: 010000000000000015EA84CEC9B4CC01; ExecutionSequence: 0; Level: 0; StateFlags: 49; UserFlags: 0; IsExtended: True; Rule: Condition: none; Actions: [RuleAction: OOFREPLY TemplateEID:null, TemplateGuid:81b960fc-15a6-4975-8915-35231b15a2a2, Flags:0]; Name 'MSFT:TDX OOF Rules'; Provider: 'MSFT:TDX OOF Rules'; ProviderData: ; ExecutionSequence: 50; Level: 0; StateFlags: 141; UserFlags: 2; IsExtended: False]
--------
Folder: '/Top of Information Store/Inbox', entryId [len=46, data=00000000292F2F5E0CC7914DB25665347651D78F0100BD3C77324057B84AAEFC518CC26E22DF0000000012640000], parentId [len=46, data=00000000292F2F5E0CC7914DB25665347651D78F0100BD3C77324057B84AAEFC518CC26E22DF0000000012610000]

Open in new window


warning event
The Microsoft Exchange Mailbox Replication service was unable to process jobs in a mailbox database.
Database: RecoveryDatabase
Error: MapiExceptionRecoveryMDBMismatch: Unable to open message store. (hr=0x80004005, ec=1165)
Diagnostic context:
    Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=232]
    Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=184][latency=0]
    Lid: 23226   --- ROP Parse Start ---
    Lid: 27962   ROP: ropLogon [254]
    Lid: 17082   ROP Error: 0x48D     
    Lid: 26937  
    Lid: 21921   StoreEc: 0x48D     
    Lid: 27962   ROP: ropExtendedError [250]
    Lid: 1494    ---- Remote Context Beg ----
    Lid: 26426   ROP: ropLogon [254]
    Lid: 45151  
    Lid: 33887   StoreEc: 0x48D     
    Lid: 17097   StoreEc: 0x48D     
    Lid: 8620    StoreEc: 0x48D     
    Lid: 1750    ---- Remote Context End ----
    Lid: 26849  
    Lid: 21817   ROP Failure: 0x48D     
    Lid: 26297  
    Lid: 16585   StoreEc: 0x48D     
    Lid: 32441  
    Lid: 1706    StoreEc: 0x48D     
    Lid: 24761  
    Lid: 20665   StoreEc: 0x48D     
    Lid: 25785  
    Lid: 29881   StoreEc: 0x48D     

Open in new window

This looks like a rules error , I saw that exchange 2013 has a new option -SkipMerge , is that at all possible in exchange 2010 ?
No thats not there with Exchange 2010 .... once you did the Repair eseutil /p did you mount the database ?

- Rancy
yes the database is mounted , and i tested recovery of other mailboxes within the database , All of them worked fine.
I did some test where i Excluded the Inbox/* folder , that gave me partial results.
I'm looking at 3 party software to restore the mailbox directly from the edb file to pst.
You can try Kernel or you can find many on the internet but all would ask you to buy the product

- Rancy
yes. It is quite amazing that Microsoft does not publish products that deal with this problem.  

Gun to my head they have to tools (methods) to export directly from recovery databases.
You can use the New-MailboxExportRequest using Exchange shell to Export data to PST

- Rancy
ASKER CERTIFIED SOLUTION
Avatar of Pall Palsson
Pall Palsson
Flag of Iceland 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
Issue was circumvented using 3-party tools. The original issue still remains unsolved.
Hi.

I am having the same problem. What tool did you use?