Pages

27 August 2013

Resume-MailboxDatabaseCopy if status is Failed and/or Suspended

A nice Exchange 2013 feature is auto resume if a database copy gets a status other than "Healthy".
The sad thing is that it doesn't exist in Exchange 2010.

There's a script for that, something I put together and runs scheduled every 3 hours.
This is enough to check all database copy's and keep them all healthy, and not make the backup stop, Avamar backup stops the backup if the status is failed or suspended.

So here goes:

Get-MailboxDatabase | Get-MailboxDatabaseCopyStatus | where {$_.Status -eq “FailedandSuspended”}| Resume-MailboxDatabaseCopy
Get-MailboxDatabase | Get-MailboxDatabaseCopyStatus | where {$_.Status -eq “Suspended”}| Resume-MailboxDatabaseCopy
Get-MailboxDatabase | Get-MailboxDatabaseCopyStatus | where {$_.Status -eq “Failed”}| Resume-MailboxDatabaseCopy

No comments:

Post a Comment