Exchange (2013) Log Files are not being deleted after a full backup.

Exchange Log Files are not being deleted after a full backup. I ran the full backup last night, just backed up the MS Information Store using Backup Exec but the log files are still there.

The server is Windows 2012.
yaminz66Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Valentina PerezExchange ServersCommented:
Hi,

Which backup tool do you use?

You need to use VSS full backup in order to remove logs files in database.

Get-MailboxDatabase -Server <ServerName> -Status | fl Name,*FullBackup

Regards
Valentina
0
yaminz66Author Commented:
Hi

I am using Symantec Backup Exec latest version.

Regards
0
Valentina PerezExchange ServersCommented:
Hi,

You want to remove logs transaction in the database?

regards
Valentina
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

yaminz66Author Commented:
Hi

Yes, the log files are going back to March for some reason. I thought after a full backup the log files get committed and deleted.

I do not have circular logging enabled either.

Regards
0
Vidit BhardwajAdminCommented:
One way of doing it is enable circular logging.
2. If this is stand alone database dismount it check the status of it is clean shutdown move the transaction log files or just rename the transaction log folder and mount it, this will start the sequence of the log files, you can do it for DAG copy as well but than you have to reseed the database copy from scratch.
3. Is to use VSstester script to simulate the backup it will Purge the logs if successful if not it will collect the logs which can be helpful to identify the issue.
4. Check in the event logs in any log is missing, you can also use eseutil /ml to check the consistency of the log files, if they are consistent either of the above option will work, if not we have to use option 2
0
yaminz66Author Commented:
Hi

I did the full backup last night and tempted to enable the circular logging, will this remove the current log files?  Can I then simply dismount and delete log files and restart the process?

It is a single database in a single MS Exchange Server so there is no DAG with an additional mailbox.
0
Vidit BhardwajAdminCommented:
Yes if it is a single database, you can dismount it make sure you clean the transaction log folder or rename it to something like log.old and create a new one with the earlier name.

After this just mount the database, make sure the edb file is in clean shutdown state by running eseutil /mh before mounting it, ideally it should be in clean state as we are dismounting the database gracefully

One the database got mounted you can clean the old logs, you can than set the circular logging as well.
0
Valentina PerezExchange ServersCommented:
Hi,

Yes you can ebale circular logging but in order that the change will applied. You need to restart information store service.

https://www.petenetlive.com/KB/Article/0001224

Be careful, circular logging is not recommended.

https://technet.microsoft.com/en-us/library/ee832792%28v=exchg.150%29.aspx

Regards
Valentina
0
Vidit BhardwajAdminCommented:
The only impact circular logging can have is on backup restore, because it will keep on clearing transaction logs and your incremental backup will not be successful if your fine with full back each day you can go with circular logging, but if your current goal is to clear current log files use the option 2 I suggested and than run a full backup
0
Annie RoseTech LeadCommented:
As above suggested, you can enable the Circular Logging on the Databases , then restart the information store service, this will truncate all the logs

After all logs truncated , you will have to Disable circular logging, then configure a backup job to take full backup of the DB and truncate the logs

Exchange Circular Logging and VSS Backups:
https://blogs.technet.microsoft.com/exchange/2010/08/18/exchange-circular-logging-and-vss-backups/

As a workaround, you can dismount the database, move the log file manually to any other drive have free space and mount the database..you may get help from this solution.

You may also get help from this article to move and truncate logs in Exchange Server 2013:
http://expert-advice.org/exchange-server/move-truncate-logs-exchange-server-2013/
0
yaminz66Author Commented:
HI

I want to delete the diagnostic files, ETL files and maybe the IIS log files on the Exchange Server to create space. This is stated in the article here - https://social.technet.microsoft.com/wiki/contents/articles/31117.exchange-2013-logging-clear-out-the-log-files.aspx

ANy thoughts on this?
0
Vidit BhardwajAdminCommented:
@yaminz66 see clear your priorities if your aim is s just the make space you can clear the files you mentioned above, but at the end you have to work on your DB why the logs are not being terminated after full backup.

All the options I mentioned above are tested successfully.
0
yaminz66Author Commented:
Hi Vidit

That is correct and on that note, I want to move my MailDatabase file (178GB) to my D drive with ample space first, before I carry out the task of resetting the log files as you given your answer earlier.  

Will there be any issues of moving the Mail Database files to the D Drive, and leave the log files on the current C drive? Or should I move them both to the D drive?

Regards
0
Vidit BhardwajAdminCommented:
If you have stand alone database you can move the edb and log file location without any issues, but this requires downtime as your database will he dismounted during the process.

From best I can see you can first dismount the database rename the log folder mount it back, clear the old logs and than take full backup.

After that in off buisness hours you can move the database to ant other drive using move-databasepath command
0
Vidit BhardwajAdminCommented:
Also to add it doens not matter on what drive you keep the logs or edb it's just they should be accessible all the time
0
yaminz66Author Commented:
Hi Vidit

//From best I can see you can first dismount the database rename the log folder mount it back, clear the old logs and then take full backup.//

The exchange database and log files kept in the same directory. If I rename that directory will not cause problem when I try to mount the database again?
0
Vidit BhardwajAdminCommented:
If they are in same directory just cut and move all the files apart from EDB file to some other location, do name renmae the complete directory as it will mount a blank database.

Make sure only EDB file is left, if CI folder doesn't move don't bother about it, once all move just mount the database back it will start the log sequence again
0
yaminz66Author Commented:
Hi Vidit

Here is what I understand from your above posts -

a) Backup the Exchange Server (using Symantec Backup Exec) Information store that will commit the most recent transaction logs even if they are not being truncated.

b) Dismount the Information Store

c) Copy the log files to another directory except for the two EDB files. (What is CI folder?)

d) Rename the "MailDB" directory where the two remaining EDB files are kept.

e)  So when I mount the database again (restart the IS service), it will mount a blank database ?? What happens to the old EDB files?

Please clarify, I am confused about this stage.
0
Vidit BhardwajAdminCommented:
Ok , here are the steps.

1. Dismount the database.
2. Move all the files except the EDB files to some other directory.
3. Mount the database, take full backup .

CI is content index or catalog folder don't bother about it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vidit BhardwajAdminCommented:
No need to restart any service
0
Valentina PerezExchange ServersCommented:
Issue seems to be solved..enough information to confirm
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.