Solved

mount edb to Exchange sbs2003

Posted on 2012-03-15
13
408 Views
Last Modified: 2012-04-18
I have a software that repair exchange databases , the name is Kernel for Exchange Server by Nucleus technologies, anyway

After I got the repair database, I still have the standard folder \exchsrvr\mdbdata with the old files:
-A bunch of e00xxxx.log
-One E00.log
-One E00.chk
-Some IFS files
-the old priv1.edb
-the old priv1.stm
 
How should i treat these ones? Should I delete all the .log files, what about the old priv1.edb? etc.

Thanks
Etc.
0
Comment
Question by:75carlos
  • 8
  • 4
13 Comments
 
LVL 12

Expert Comment

by:DLeaver
Comment Utility
I have never used this software but I can tell you the procedure that I use on repairing EDB's using Eseutil

- I set the mailbox and PF mailbox database stores to be allowed to be overridden by a restore
- Ensure all stores are dismounted
- Stop all Exchange services
- rename the MDBDATA folder to MDBDATA-old
- Drop in the repaired EDB and STM - nothing else
- restart the Exchange services, with the IS being the last

Open the Management msc and if the DB's are healthy then they should be mounted

*This process is a form of Forklifting, and I didn't create it but I have done it so many times that I can list it from memory hence no web links
0
 

Author Comment

by:75carlos
Comment Utility
I was not able to get a clean database with that tape. I got "dirty shutdown"
So my only option is to restore from tape.
What should be the corre4ct procedure for this?

Thanks
0
 
LVL 12

Expert Comment

by:DLeaver
Comment Utility
Run eseutil /mh to check the database status, if its in a dirty shutdown state then run the /P switch to repair it and then run the /mh switch again to check the status is now clean

Then follow my last post to re mount
0
 

Author Comment

by:75carlos
Comment Utility
I 'm coping the directory mdbdata just in case.
Run eseutil /mh:

Microsoft(R) Exchange Server Database Utilities

Version 6.5

Copyright (C) Microsoft Corporation. All Rights Reserved.



Initiating FILE DUMP mode...
         Database: e:\program files\exchsrvr\mdbdata\priv1.edb

        File Type: Database
   Format ulMagic: 0x89abcdef
   Engine ulMagic: 0x89abcdef
 Format ulVersion: 0x620,11
 Engine ulVersion: 0x620,11
Created ulVersion: 0x620,9
     DB Signature: Create time:04/05/2006 02:01:26 Rand:6384431 Computer:
         cbDbPage: 4096
           dbtime: 3753225152 (0xdfb5abc0)
            State: Dirty Shutdown
     Log Required: 198483-198485 (0x30753-0x30755)
   Streaming File: Yes
         Shadowed: Yes
       Last Objid: 176437
     Scrub Dbtime: 0 (0x0)
       Scrub Date: 00/00/1900 00:00:00
     Repair Count: 0
      Repair Date: 00/00/1900 00:00:00
 Old Repair Count: 0
  Last Consistent: (0x2E27D,27C8,4D)  02/06/2012 21:07:27
      Last Attach: (0x2E27D,27D0,20)  02/06/2012 21:15:33
      Last Detach: (0x0,0,0)  00/00/1900 00:00:00
             Dbid: 1
    Log Signature: Create time:04/05/2006 02:01:25 Rand:6396490 Computer:
       OS Version: (5.2.3790 SP 2)

Previous Full Backup:
        Log Gen: 198374-198388 (0x306e6-0x306f4)
           Mark: (0x306EA,1B95,2F)
           Mark: 03/14/2012 19:31:22

Previous Incremental Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

Current Full Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

Current Shadow copy backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

     cpgUpgrade55Format: 0
    cpgUpgradeFreePages: 0
cpgUpgradeSpaceMapPages: 0

       ECC Fix Success Count: none
   Old ECC Fix Success Count: none
         ECC Fix Error Count: none
     Old ECC Fix Error Count: none
    Bad Checksum Error Count: none
Old bad Checksum Error Count: none

Operation completed successfully in 3.16 seconds.
0
 
LVL 3

Expert Comment

by:rocket_sudhi
Comment Utility
Try the following

1) Take a backup of .edb, .stm and Log files.
2) Run eseutil /g---> check the integrity of file
3) Try ISinetg
4) then try eseutil /p (dont try at first attempt)
0
 
LVL 12

Expert Comment

by:DLeaver
Comment Utility
Ok so its in a dirty shutdown state

Run eseutil /p

Then run the eseutil /mh and post it back here if you like. - it should state it is in a clean state

Its a matter of opinion as the /p switch shouldn't be tried likely but as you are using a copy of your edb then there is no harm done, and I have used this fix many times before without issue
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:75carlos
Comment Utility
I run eseutil /p  but I have to terminate it since it got stuck in
"deleting unicode fixed up table"

the new result of eseutil /mh is:

Microsoft(R) Exchange Server Database Utilities

Version 6.5

Copyright (C) Microsoft Corporation. All Rights Reserved.



Initiating FILE DUMP mode...
         Database: e:\program files\exchsrvr\mdbdata\priv1.edb

        File Type: Database
   Format ulMagic: 0x89abcdef
   Engine ulMagic: 0x89abcdef
 Format ulVersion: 0x620,11
 Engine ulVersion: 0x620,11
Created ulVersion: 0x620,9
     DB Signature: Create time:03/17/2012 02:08:54 Rand:64436131 Computer:
         cbDbPage: 4096
           dbtime: 3886819273 (0xe7ac27c9)
            State: Dirty Shutdown
     Log Required: 0-0 (0x0-0x0)
   Streaming File: Yes
         Shadowed: Yes
       Last Objid: 185147
     Scrub Dbtime: 0 (0x0)
       Scrub Date: 00/00/1900 00:00:00
     Repair Count: 2
      Repair Date: 03/17/2012 02:08:54
 Old Repair Count: 0
  Last Consistent: (0x0,0,0)  00/00/1900 00:00:00
      Last Attach: (0x0,0,0)  03/17/2012 02:08:54
      Last Detach: (0x0,0,0)  00/00/1900 00:00:00
             Dbid: 1
    Log Signature: Create time:00/00/1900 00:00:00 Rand:0 Computer:
       OS Version: (5.2.3790 SP 2)

Previous Full Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

Previous Incremental Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

Current Full Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

Current Shadow copy backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

     cpgUpgrade55Format: 0
    cpgUpgradeFreePages: 0
cpgUpgradeSpaceMapPages: 0

       ECC Fix Success Count: none
   Old ECC Fix Success Count: none
         ECC Fix Error Count: none
     Old ECC Fix Error Count: none
    Bad Checksum Error Count: none
Old bad Checksum Error Count: none

Operation completed successfully in 3.16 seconds.


When I run eseutil /p, it was recomended that I should run:
---To ensure the database is up-to-date please use the 'Recovery' operation.--
0
 

Author Comment

by:75carlos
Comment Utility
Runing sesutil /r e000 i get:


Microsoft(R) Exchange Server Database Utilities
Version 6.5
Copyright (C) Microsoft Corporation. All Rights Reserved.

Initiating RECOVERY mode...
    Logfile base name: e00
            Log files: <current directory>
         System files: <current directory>

Performing soft recovery...

Operation terminated with error -1032 (JET_errFileAccessDenied, Cannot access fi
le, the file is locked or in use) after 21.32 seconds.



All the rights on folders are as should be.
0
 

Author Comment

by:75carlos
Comment Utility
I restore but still "dirty shutdown"

is it possible to get a restore that has a corrupted db already?

I'm f... at lost here.
0
 

Author Comment

by:75carlos
Comment Utility
I'm getting event id 619

Whic is telling that the "attemped to attach database e:\program files\exchsrvr\mdbdata\priv1.edb  but it is a database restored from backup set on which hard recovery was not started or did not complete succesfully.
0
 
LVL 12

Expert Comment

by:DLeaver
Comment Utility
Run through the steps in this KB article

http://support.microsoft.com/kb/810199

What backup software have you been using?  At the start you said you were using a recovery software - has this not been successful?
0
 

Accepted Solution

by:
75carlos earned 0 total points
Comment Utility
I did call Microsoft on Saturday and they help me to resolve the problem.
To make it short I had to restore (the instructions that were posted by the expert are the same as MS told me to run) until I was able to find a restore with a "Clean state" from the beginning of the week, so I lost like 3 days.

So obviously you can be restore from an early date run eseutil /mh and get "dirty shutdown"...not clear for me how that is possible but it did happen.

Regarding the software I got...same problem, it was not able to fix the .EDB
0
 

Author Closing Comment

by:75carlos
Comment Utility
restore from good backup thT'S WAS ALL
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Experts-Exchange users below are the steps you can follow to upgrade your Lync server to latest CU's or cumulative updates. Note: Perform it during non-production hours.   Step 1: Backup your lync and SQL server database. Follow below article: h…
You may have discovered the 'Compatibility View Settings' workaround for making your SBS 2008 Remote Web Workplace 'connect to a computer' section stops 'working around' after a Windows 10 client upgrade.  That can be fixed so it 'works around' agai…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now