• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Dirty shut down state / transaction logs not clearing

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> General >> Dirty shut down state / transaction logs not clearing Page: [1]
Login
Message << Older Topic   Newer Topic >>
Dirty shut down state / transaction logs not clearing - 29.Nov.2010 1:24:51 PM   
exchange_moron

 

Posts: 45
Joined: 21.Dec.2005
Status: offline
Hello,

My test Exchange 2007 transaction logs are not clearing even after a full backup (backup exec 2010 and NT windows 2008).

I am getting an EventID 200 that says "Instance 2: Database headers have been successfully validated. All databases are in a dirty shutdown state. To bring these databases to a clean shutdown state, log generations 7526 (0x00001d66) to 7527 (0x00001d67) will be required"

Does anyone have any idea how to resolve this?

Thanks in advance,
Post #: 1
RE: Dirty shut down state / transaction logs not clearing - 29.Nov.2010 1:42:04 PM   
fernlyn

 

Posts: 15
Joined: 21.Oct.2010
Status: offline
It sounds like you had a power failure or similar.
You could check them with eseutil /g you will have to dismount them to do that.
Or you could just one at a time dismount and remount them and do this at the end of the day. when you bring them back up they may say they cant find some logs and is it ok remount with out these and you want have much option but to say yes. If the logs have high number this is probably ok.

(in reply to exchange_moron)
Post #: 2
RE: Dirty shut down state / transaction logs not clearing - 29.Nov.2010 2:21:26 PM   
Nazim

 

Posts: 170
Joined: 23.Oct.2008
Status: offline
Take a dump of header information of exchange databases using the command

Eseutil /MH <database_name>

This information would provide more details to fix this issue.

(in reply to fernlyn)
Post #: 3
RE: Dirty shut down state / transaction logs not clearing - 29.Nov.2010 7:26:53 PM   
de.blackman

 

Posts: 3463
Joined: 4.Apr.2005
From: Toronto, Canada
Status: offline
When a database is dismounted in Exchange, all log files that have not been committed will immediately be committed to the database. What I could suggest would be to:
  1. dismount the databases one at a time.
  2. When it has successfully dismounted, open a command prompt and chaneg path to the location of the database file.
  3. Run ESEUTIL /MH DATABASENAME.EDB and check the state of the database to confirm it is in a clean shutdown state.
  4. Go to the location of the log files and move all files (including the *.chk file) out of the folder into a temporary folder.
  5. Remount the database and after it remounts successfully, try taking a full backup and see if that helps.

When all log files have been moved out and the database is remounted, Exchange will start generating the log files from E0x0000001.log! With that in mind, if you are using log shipping and database replication (CCR for example), then this method may require a full reseed of the database so I would NOT recommend doing that!!

< Message edited by de.blackman -- 29.Nov.2010 7:29:40 PM >


_____________________________

Ibrahim Benna - Microsoft Exchange MVP
Forum Moderator
Navantis
@IbrahimBenna

(in reply to Nazim)
Post #: 4
RE: Dirty shut down state / transaction logs not clearing - 1.Dec.2010 11:33:23 PM   
exchange_moron

 

Posts: 45
Joined: 21.Dec.2005
Status: offline
What are the ramifications if I had manually deleted the logs up until yesterday?
Will I run into trouble if I run ESEUTIL /MH?

Thanks again for answering my post.

(in reply to de.blackman)
Post #: 5
RE: Dirty shut down state / transaction logs not clearing - 2.Dec.2010 8:08:18 AM   
de.blackman

 

Posts: 3463
Joined: 4.Apr.2005
From: Toronto, Canada
Status: offline
quote:

What are the ramifications if I had manually deleted the logs up until yesterday?


If you were following the process I described, then you are fine BUT if you were simply deleting the log files without dismounting the database, you will definitely have issues with backup! The checkpoint file (E0*.chk) will be pointing to an invalid log file and the database may have issues mounting!

Were you deleting the logs without dismounting the database???

_____________________________

Ibrahim Benna - Microsoft Exchange MVP
Forum Moderator
Navantis
@IbrahimBenna

(in reply to exchange_moron)
Post #: 6
RE: Dirty shut down state / transaction logs not clearing - 2.Dec.2010 2:36:09 PM   
exchange_moron

 

Posts: 45
Joined: 21.Dec.2005
Status: offline
de.blackman,

Opppss....I deleted the logs without dismounting.
What steps can I take to resolve this?

Thanks again.

(in reply to de.blackman)
Post #: 7
RE: Dirty shut down state / transaction logs not clearing - 2.Dec.2010 6:15:07 PM   
de.blackman

 

Posts: 3463
Joined: 4.Apr.2005
From: Toronto, Canada
Status: offline
At the moment, it seems you may be SOL! In order to check the last log file that has been commited to the database, you will have to take it offline (dismount it)! SO unfortunately, I really cannot see any other option except for you to dismount the database, run ESEUTIL /MH on it and see the state! If it is in a clean shutdown state, then follow the procedures I provided before.

_____________________________

Ibrahim Benna - Microsoft Exchange MVP
Forum Moderator
Navantis
@IbrahimBenna

(in reply to exchange_moron)
Post #: 8
RE: Dirty shut down state / transaction logs not clearing - 2.Dec.2010 7:48:51 PM   
exchange_moron

 

Posts: 45
Joined: 21.Dec.2005
Status: offline
quote:

ORIGINAL: de.blackman

At the moment, it seems you may be SOL! In order to check the last log file that has been commited to the database, you will have to take it offline (dismount it)! SO unfortunately, I really cannot see any other option except for you to dismount the database, run ESEUTIL /MH on it and see the state! If it is in a clean shutdown state, then follow the procedures I provided before.


Pardon my ignorance, what's the normal frequency for the log files to commit to the database?

(in reply to de.blackman)
Post #: 9
RE: Dirty shut down state / transaction logs not clearing - 3.Dec.2010 8:33:39 AM   
de.blackman

 

Posts: 3463
Joined: 4.Apr.2005
From: Toronto, Canada
Status: offline
I think you have to read this to get a better understanding:

Understanding the Exchange 2010 Storehttp://technet.microsoft.com/en-us/library/bb331958.aspx



_____________________________

Ibrahim Benna - Microsoft Exchange MVP
Forum Moderator
Navantis
@IbrahimBenna

(in reply to exchange_moron)
Post #: 10
RE: Dirty shut down state / transaction logs not clearing - 3.Dec.2010 9:19:32 AM   
exchange_moron

 

Posts: 45
Joined: 21.Dec.2005
Status: offline
Thank you, de.blackman. I appreciate your help.

Since this is a test server with only limited beta test (less than 12 people). My backout procedure is to export their mail files to a pst file. If the store doesn't come up or repair itself, then I just import the pst back into their account.

If you see any flaw with my backout apporach please feel free to comment.

Thanks again,

quote:

ORIGINAL: de.blackman

I think you have to read this to get a better understanding:

Understanding the Exchange 2010 Storehttp://technet.microsoft.com/en-us/library/bb331958.aspx



(in reply to de.blackman)
Post #: 11
RE: Dirty shut down state / transaction logs not clearing - 3.Dec.2010 12:19:14 PM   
de.blackman

 

Posts: 3463
Joined: 4.Apr.2005
From: Toronto, Canada
Status: offline
Sounds good to me. I was under the impression this was in production. Let me know what happens please.

_____________________________

Ibrahim Benna - Microsoft Exchange MVP
Forum Moderator
Navantis
@IbrahimBenna

(in reply to exchange_moron)
Post #: 12
RE: Dirty shut down state / transaction logs not clearing - 3.Dec.2010 9:22:07 PM   
exchange_moron

 

Posts: 45
Joined: 21.Dec.2005
Status: offline
quote:

ORIGINAL: de.blackman

Sounds good to me. I was under the impression this was in production. Let me know what happens please.


de.blackman,

I was able to bring up the store after running the eseutil command; however, I didn't delete log files afterwards.  Should I have deleted them?  I wasn't sure what to do.

I'm running a NT backup right now to see if that will clear my log files.

Thanks again,

Here's the result of eseutil:
C:\Program Files\Microsoft\Exchange Server\Bin>eseutil /mh "c:\program files\microsoft\exchange server\mailbox\exc sg1\mailbox database.edb"
 
 
Extensible Storage Engine Utilities for Microsoft(R) Exchange Server
Version 08.01
Copyright (C) Microsoft Corporation. All Rights Reserved.
 
Initiating FILE DUMP mode...
         Database: c:\program files\microsoft\exchange server\mailbox\exc sg1\mailbox database.edb
 
        File Type: Database
   Format ulMagic: 0x89abcdef
   Engine ulMagic: 0x89abcdef
Format ulVersion: 0x620,12
Engine ulVersion: 0x620,12
Created ulVersion: 0x620,12
     DB Signature: Create time:01/23/2009 14:07:26 Rand:70193565 Computer:
         cbDbPage: 8192
           dbtime: 879195690 (0x3467762a)
            State: Clean Shutdown
     Log Required: 0-0 (0x0-0x0)
    Log Committed: 0-0 (0x0-0x0)
   Streaming File: No
         Shadowed: Yes
       Last Objid: 127396
     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: (0x34F7B,73A,119)  12/03/2010 20:20:02
      Last Attach: (0x2EE9A,9,86)  10/06/2010 23:33:34
      Last Detach: (0x34F7B,73A,119)  12/03/2010 20:20:02
             Dbid: 1
    Log Signature: Create time:01/23/2009 14:07:26 Rand:70209288 Computer:
       OS Version: (6.0.6001 SP 1 NLS 500100.50100)
 
Previous Full Backup:
        Log Gen: 216210-216230 (0x34c92-0x34ca6) - OSSnapshot
           Mark: (0x34CA7,8,16)
           Mark: 12/02/2010 19:52:56
 
Previous Incremental Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00
 
Previous Copy Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00
 
Previous Differential Backup:
        Log Gen: 215307-216232 (0x3490b-0x34ca8) - OSSnapshot
           Mark: (0x34CA9,8,16)
           Mark: 12/02/2010 19:59:21
 
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 0.249 seconds.

(in reply to de.blackman)
Post #: 13
RE: Dirty shut down state / transaction logs not clearing - 6.Dec.2010 12:20:09 PM   
de.blackman

 

Posts: 3463
Joined: 4.Apr.2005
From: Toronto, Canada
Status: offline
Did the backup you did purge the log files?

_____________________________

Ibrahim Benna - Microsoft Exchange MVP
Forum Moderator
Navantis
@IbrahimBenna

(in reply to exchange_moron)
Post #: 14
RE: Dirty shut down state / transaction logs not clearing - 6.Dec.2010 3:20:58 PM   
exchange_moron

 

Posts: 45
Joined: 21.Dec.2005
Status: offline
quote:

ORIGINAL: de.blackman

Did the backup you did purge the log files?


Nope. The logs are still there.

I ran two full backup, one with Windows 2008 NT backup and another with Backupexec 2010.

Backupexec doesn't see the mailbox in grandular level when I'm in the restore view.

The job log says: "Unable to complete the operation for the selected resource using the specified options. The following error was returned when opening the Exchange Database file: '-1032 The file cannot be accessed because the file is locked or in use."

I am pretty sure that was the log file I deleted.

Should I dismount the store again and delete all logs and files in that folder with the exception of my mail database (edb)?

(in reply to de.blackman)
Post #: 15
RE: Dirty shut down state / transaction logs not clearing - 8.Dec.2010 8:14:47 AM   
de.blackman

 

Posts: 3463
Joined: 4.Apr.2005
From: Toronto, Canada
Status: offline
I think that is your best bet right now. Dismount and clear the log files out of their existing folder. Don't forget to remove the e0x.chk file too!

_____________________________

Ibrahim Benna - Microsoft Exchange MVP
Forum Moderator
Navantis
@IbrahimBenna

(in reply to exchange_moron)
Post #: 16

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> General >> Dirty shut down state / transaction logs not clearing Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter