[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 992
  • Last Modified:

Exchange 2010 database corruption in DAG layout

Hi all,

Suppose you have a DAG that comprises two mailbox server.  One server hosts the active copy of a DB and the other hosts the passive copy.

If the active copy of the DB becomes corrupt for whatever reason be it corrupt log files or general DB corruption (and not due to a problem with the underlying hardware) would Exchange detect the corruption in the active copy first and make sure it didn't happen to the passive copy?

Having said that I suppose the whole point in having a DAG is the seamless switchover in event of a db failure so the passive copy does need to always be as up to date as the active copy.

Does that even make sense?!!

Thanks in advance
0
ysjwanda
Asked:
ysjwanda
  • 2
1 Solution
 
ckeshavCommented:
Convert the Get-MailboxStatistics output from Bytes to MB or GB in Exchange 2007.

Exchange 2003 Administrators are used to using the old Exchange Console to view the size of the mailboxes in your Exchange organization.  The Exchange 2007 EMC unfortunately doesn’t have this feature anymore.  Here’s a little PowerShell script that will translate the output of the Get-MailboxStatistics command from Bytes to MB or GB.
For a single user:

    Get-MailboxStatistics <USERNAME> |  select-object DisplayName, {$_.TotalItemSize.Value.ToMB()}
    Get-MailboxStatistics <USERNAME> |  select-object DisplayName, {$_.TotalItemSize.Value.ToGB()}
    Get-MailboxStatistics <USERNAME> |  select-object DisplayName, {$_.TotalItemSize/1.0MB}
    Get-MailboxStatistics <USERNAME> |  select-object DisplayName, {$_.TotalItemSize/1.0GB}

To get the script to work for all users just add the “Get-Mailbox” command.
For all users:

    Get-Mailbox | Get-MailboxStatistics |  select-object DisplayName, {$_.TotalItemSize.Value.ToMB()}

To export to a csv:

    Get-Mailbox | Get-MailboxStatistics |  select-object DisplayName, {$_.TotalItemSize.Value.ToMB()} | export-csv -path c:\path\filename.csv

http://aspoc.net/archives/2007/11/07/convert-the-get-mailboxstatistics-output-from-bytes-to-mb-or-gb-in-exchange-2007/
0
 
ysjwandaAuthor Commented:
I think you may have answered the qrong question?!!
0
 
dainesCommented:
0
 
ysjwandaAuthor Commented:
Yes!  That's exactly what I was looking for.  many thanks.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now