Link to home
Create AccountLog in
Avatar of mihaisz
mihaiszFlag for Afghanistan

asked on

Exchange 2007 log maintenance

Where can I configure Exchange for minimum logging/shorten the history of logs kept (ex. to a week)?
Now it seems to be logging a lot and it quickly fills in my hard disk.

For ex. I found 30GB of E000000xxx.log files in \\NEW-SQL\f$\Temp\Exchange\First Storage Group. Can I just delete them?
What other files can I delete?
ASKER CERTIFIED SOLUTION
Avatar of shodan15
shodan15
Flag of Russian Federation image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of mihaisz

ASKER

Actually I want to get rid of the logs.
How do I do a backup of the Exchange Server (since apparently this will clean up space)?
do you have 3rd party backup software? If not here is how to do it with NT backup that comes with the server. http://www.msexchange.org/tutorials/Exchange-2003-Backup-Restore-NTBACKUP.html
Avatar of mihaisz

ASKER

I ran the backup and it ended with the following error:

The 'Microsoft Information Store' returned 'Some log or patch files are missing. ' from a call to 'HrESEBackupOpenFile()' additional data 'C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\E00000060BA.log' The 'Microsoft Information Store' returned 'Functions called in an invalid sequence.

Well, this is why I wanted to do the backup in the first place, to get rid of the 'C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\E00000xxxxx.log files.
I had to move those files to another hard drive because I ran out of disk space.

How can I truncate these logs from Exchange Management Console (or Exchange Management Shell), so the backup would not look for them and end without errors?
if you want just truncate it set "Enable Circular logging" in you First Storage Group properties
Avatar of Akhater
NEVER manually delete an exchange log file this is the ABC of exchange

anyway it seems it is too late for this lesson now.


Do the following

Stop your information store
move all the log files (BUT res1.log and res2.log and e00.log) to another directory
start your information store

If all goes well and you db is mounted and all you can delete the log files you've moved

Take backup of exchange periodically to clean the log files
Avatar of mihaisz

ASKER

Since ths is a server I'm still testing, I'll start with 'Circular logging' and once everything works, I'll shitch to weekly backups.
Avatar of jbittelva
jbittelva

As I understand it if you have exch 07 w/ccr then log maint is NOT triggered by running bkup