Comprehensive data protection for all workloads
Post Reply
Posts: 1
Liked: 2 times
Joined: Jun 08, 2015 5:43 pm
Full Name: Wes Brown

Tip on how to speed up snapshot commit for Exchange DAG

Post by swbcwes » Jun 08, 2015 6:13 pm 2 people like this post

Like many here, I was struggling with issues with my Exchange 2013 DAG backups, mainly due to storage contention during the snapshot commit (remove snapshot). We have a passive node that we are using strictly for backup. I first tried to put the node into maintenance mode, which prevents the log files from being played into the database. This helped a little, by keeping the database the same, but I still had to deal with all the log files that were copied during the backup. I decided to try suspending the database copies during the backup and that made a huge difference.

Time to delete snapshot on Passive Node:
Normal: 1.5 to 3 hours
Maintenance Mode: 45 minutes to 1 hour
Mailbox Database Copy Suspended: 2-3 minutes!!!

Note: I tested a restore of an Incremental Backup using this method and was able to restore and view and restore emails with the Veeam Explorer for Microsoft Exchange with the database suspended.

I first tried this manually and after it worked, I create a script to do the suspend and resume. My scripts are running on the Exchange Server itself, but you could certainly do this within the Veeam job under the Advanced Settings, Advanced Tab, then Job Scripts.


Code: Select all

get-mailboxdatabasecopystatus -server passivenode|Suspend-MailboxDatabaseCopy -SuspendComment "Backup" -Confirm:$False

Code: Select all

get-mailboxdatabasecopystatus -server passivenode|Resume-MailboxDatabaseCopy -Confirm:$False
Disclaimer: Attempt at your own risk. While I have tested this and it is working well for me, attempt first in a everyone has one of those. At the very minimum, run through your own backup/restore test to make sure it doesn't impact your ability to do the restores you want.

SVP, Product Management
Posts: 24304
Liked: 3335 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Tip on how to speed up snapshot commit for Exchange DAG

Post by Gostev » Jun 08, 2015 10:30 pm

Thanks for sharing this with the community, Wes. I am also moving this to the general forum for visibility - and because this should help with snapshot commit speed regardless of hypervisor in use.

Veeam ProPartner
Posts: 237
Liked: 31 times
Joined: Dec 03, 2015 3:41 pm
Location: UK

Re: Tip on how to speed up snapshot commit for Exchange DAG

Post by ferrus » May 04, 2017 9:09 am

I've been using these scripts successfully for some time, and they've made backing up our passive Exchange 2010 node - incredibly easy.

During the final migration away from our old backup system, we finally enabled the log truncation option in the Veeam Backup job.
Unfortunately, only the public folder logs were truncated - the rest were ignored.

After a lot of testing, we removed the pre/post scripts above - and log truncation occurred across all mailboxes immediately.
That's fine for our current requirements, but is anyone aware of another method of suspending the DB copies - which still permits log truncation?

Veeam Software
Posts: 17931
Liked: 1512 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Tip on how to speed up snapshot commit for Exchange DAG

Post by foggy » May 05, 2017 3:08 pm

I'm not sure suspending the node allows for logs truncation, since in this case nodes are not in sync (logs are actually truncated on active node and then replicated back to passive, AFAIR).

Post Reply

Who is online

Users browsing this forum: Bing [Bot], moctad_harry and 73 guests