Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding mailbox servers to a Database Availability Group


Once you've created a Database Availability Group (DAG), you'll need to add DAG members, which are servers running the mailbox server role. In this recipe, you'll learn how to add mailbox servers to a DAG using the Exchange Management Shell.

How to do it...

To add a mailbox server to a DAG, use the Add-DatabaseAvailabilityGroupServer cmdlet :

Add-DatabaseAvailabilityGroupServer -Identity DAG `
-MailboxServer MBX1

In this example, the MBX1 server is added to a database availability group named DAG.

How it works...

In order to run the Add-DatabaseAvailabilityGroupServer cmdlet, the servers being added to the DAG must be running an Enterprise Edition of either Windows Server 2008 or 2008 R2. This is due to the requirement of the Windows Failover Clustering component which is required by the DAG. Additionally, the servers must not be a member of an existing DAG for you to successfully run this command.

If you use this cmdlet to add a mailbox server...