Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

repair exchange data base

Posted on 2014-02-20
12
428 Views
Last Modified: 2014-02-20
2007 exchange
I have a data base that is in a dirty shut down state. I copied the required transaction logs into a folder and ran the following command.

Eseutil /R E00 /L "C:\Program Files\Microsoft\Exchange Server\Mailbox\RequiredLogs" /s "C:\Program Files\Microsoft\Exchange Server\Mailbox\RequiredLogs" /d "E:\s2" /i
o   The command completed successfully.
 
¿  We ran the following in the command prompt to check the health of s3 databases.
o    Eseutil /MH "E:\s2\s3.edb"
-------------------------------
State: Dirty Shutdown
-------------------------------
Do I have to move the log files back before I check the database health.

Please Help
0
Comment
Question by:WIZU2
  • 6
  • 6
12 Comments
 
LVL 37

Expert Comment

by:Jamie McKillop
ID: 39874380
Hello,

You were not supposed to move the logs, you were supposed to copy then. If you moved them, put them back then run:

Eseutil /r E00 /l <path to logs> /d <path to database>

If that doesn't succeed, you will have to try a hard repair:

Eseutil /d <path to database>

After running a hard repair, you will need to remove any log files.

-JJ
0
 

Author Comment

by:WIZU2
ID: 39874524
it says that it completes successfully but when I check the health it says that it is still dirty?
/d or /p for a hard repair?
0
 
LVL 37

Expert Comment

by:Jamie McKillop
ID: 39874539
You will need to do a hard repair using /p

-JJ
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:WIZU2
ID: 39874541
After I run this
Eseutil /R E00 /L "C:\Program Files\Microsoft\Exchange Server\Mailbox\RequiredLogs" /s "C:\Program Files\Microsoft\Exchange Server\Mailbox\RequiredLogs" /d "E:\s2" /I

am I supposed to move those logs back to where I copied them from before I try a health check?
0
 
LVL 37

Expert Comment

by:Jamie McKillop
ID: 39874560
No. Before you run Eseutil /R, you should copy the logs and database to another location in case something goes wrong and you need to restore them. After eseutil /r completes, you don't move or copy anything.

-JJ
0
 

Author Comment

by:WIZU2
ID: 39874650
I copied the transaction logs to a folder called requiredlogs including the E00.logs and E00.chk

I ran this

Eseutil /R E00 /L "C:\Program Files\Microsoft\Exchange Server\Mailbox\RequiredLogs" /s "C:\Program Files\Microsoft\Exchange Server\Mailbox\RequiredLogs" /d "E:\s2" /I

says it completes successfully

then I run
Eseutil /MH "E:\s2\s3.edb"

still says dirty shutdown. So the next step would be to run?????

Eseutil /P E00 /L "C:\Program Files\Microsoft\Exchange Server\Mailbox\RequiredLogs" /s "C:\Program Files\Microsoft\Exchange Server\Mailbox\RequiredLogs" /d "E:\s2" /I
0
 
LVL 37

Expert Comment

by:Jamie McKillop
ID: 39874656
No, you don't run ESEUTIL against the copy. You need to run it against the originals.

-JJ
0
 

Author Comment

by:WIZU2
ID: 39874831
There is more than one database in the original folder. One of them in there mounts fine. I assume I would need to dismount the other database before I run this? Do I have to copy the databases somewhere first?
0
 
LVL 37

Expert Comment

by:Jamie McKillop
ID: 39874859
Yes, you will need to dismount all the stores in the storage group as they share log files.

-JJ
0
 

Author Comment

by:WIZU2
ID: 39874898
So just to be sure try running this first

Eseutil /R E00 /L "C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group" /d "E:\s2" /I

if that doesn't work run

Eseutil /P E00 /L "C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group" /d "E:\s2" /I
0
 
LVL 37

Accepted Solution

by:
Jamie McKillop earned 500 total points
ID: 39874916
No.

Eseutil /r E00 /l "C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group" /d "E:\s2"

If that doesn't succeed, you will have to try a hard repair:

Eseutil /d "C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\<name>.edb"

Replace <name> with the actual file name.

After running a hard repair, you will need to remove any log files

-JJ
0
 

Author Comment

by:WIZU2
ID: 39874991
It worked....your Awesome!!
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
how to add IIS SMTP to handle application/Scanner relays into office 365.

839 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