Exchange 2010 Ignite Lab 9: Exchange 2010 High Availability and Storage Scenarios

..........................................................2 Exercise 2 Creating a New Database Availability Group ............................................... 1 Exercise 1 Installing the Mailbox Server Role ........................................................................................................................................................................................................................................3 Exercise 3 Managing the DAG and Performing a Database Switchover ...........................Lab: Exchange 2010 client Access Table of Contents Lab: Exchange 2010 High Availability and Storage Scenarios ........................................8 ..........6 Exercise 4 Simulating a Disk Failure and Testing Failover............

you will be better able to:     Install the Mailbox server role. Estimated Time to Complete This Lab Computers used in this Lab 60 minutes DC01 EX01 EX02 EX03 The password for the Administrator account on all computers in this lab is: pass@word1 Page 1 of 12 . Simulate a disk failure and test failover. Scenario Litwareinc Ltd. Manage the DAG and perform a database switchover. Create a new database availability group (DAG). intends to deploy its Exchange 2010 environment and provide high availability for its mailbox databases.Lab: Exchange 2010 client Access Lab: Exchange 2010 High Availability and Storage Scenarios Objectives After completing this lab. You will test the new features of Exchange 2010 based on the expected deployment topology.

Navigate to C:\EX2010 and click Open. click Step 3: Choose Exchange language option. click Next. click Install only languages from the DVD. In the Confirm Exit window. click Step 4: Install Microsoft Exchange. k. Tasks Complete the following task on: EX02 1. Install the Mailbox server role on EX02. b. On the Welcome page. On the Welcome page. click Yes. Navigate to C:\EX2010\. On the Server Role Selection page. Under Step 3: Choose Exchange language option. click Finish. f. j.Lab: Exchange 2010 client Access Exercise 1 Installing the Mailbox Server Role Scenario As the Exchange administrator for Contoso Ltd. click setup. Page 2 of 12 . You currently have two Exchange 2010 servers deployed. If prompted to Insert the Microsoft Exchange Server disk. On the Welcome page. then click OK.. i. d. e. The installation may take between 5-10 minutes.exe c. select Mailbox Role and then click Next. click Close. click Browse. On the Completion page. Wait for the readiness checks to complete and then click Install. g. On the Exchange Maintenance Mode page. you are preparing your test lab for deployment of Exchange 2010 and its new DAG features. Log on to EX02. Detailed Steps a. You need to install the Mailbox server role on another Exchange 2010 server. h.

q. type E:\MDB02 p. type E:\MDB02\MDB02. First.edb o. Click Start | All Programs | Microsoft Exchange 2010 | Exchange Management Shell. and then click Finish. Tasks Complete the following tasks on: EX01 1. you must configure the Exchange 2010 databases so that they will be as available as possible. click Next. click New Mailbox Database. Under Server name. n. Switch to EX01. At the PS Prompt. Detailed Steps a. r. Verify that Mount this database is selected. At the PS Prompt. m. type the following and then press ENTER: New-MailboxDatabase –Name MDB01 –Server EX01 –EdbFilePath D:\MDB01\MDB01. At the PS Prompt.Lab: Exchange 2010 client Access Exercise 2 Creating a New Database Availability Group Scenario You need to prepare your Exchange 2010 deployment for DAG implementation. In the Mailbox database name field. h. type the following and then press ENTER: MkDir E:\MDB02 i. and then click Next. expand Microsoft Exchange On-Premises | Organization Configuration | Mailbox. click EX02. In the Actions pane. type the following and then press ENTER: MkDir F:\MDB03 t. click New. Click Start | All Programs | Microsoft Exchange 2010 | Exchange Management Console.edb –LogFolderPath D:\MDB01 e. type the following and then press ENTER: Mount-Database MDB01 f. In the Log folder path field. c. After you have prepared the databases. At the PS Prompt. u. click OK. Click Start | All Programs | Microsoft Exchange 2010 | Exchange Management Console. b. click Browse. Configure MailTips settings in Outlook. l. expand Microsoft Exchange On-Premises | Organization Page 3 of 12 . j. Switch to EX02. s. you must create the DAG and add your organization mailbox servers to it. Click Start | All Programs | Microsoft Exchange 2010 | Exchange Management Shell. In the Navigation pane. Switch to EX03. In the Navigation pane. Click Start | All Programs | Microsoft Exchange 2010 | Exchange Management Shell. At the PS Prompt. specifically in the event of a disk failure. In the Database file path field. g. type MDB02 k. type the following and then press ENTER: MkDir D:\MDB01 d.

For the purpose of this lab. it will be configured with a dynamic IP address. click New Mailbox Database. click Browse.edb z. In the Results pane. 2. Complete the following task on: EX02 4. a. Select both EX02 and Ex03 and then click OK. click EX03. In the Actions pane. c. Note: Use the Add-DatabaseAvailabilityGroupServer cmdlet to add a Mailbox server to a DAG. In the Actions pane. In the Manage Database Availability Group Membership window. In the Result pane. Add EX02 and EX03 to DAG1. type F:\MDB03 aa. click DAG1. h. it is recommended to use an available server that is a member of the Exchange Servers Group. type the following and then press ENTER: “Claire@contoso. Switch to EX01 and the Exchange Management Shell. and then click Next. Verify that Mount this database is selected. click Next. Verify that all Exchange servers are listed under Member and Operational Servers.Lab: Exchange 2010 client Access Tasks Detailed Steps Configuration | Mailbox. If the DAG is created using the Exchange Management Console. Distribute mailboxes to Mailbox servers. 3. y. type MDB03 x. Switch to EX02 and the Exchange Management Console.“John@contoso. click Manage Database Availability Group Membership. type the following and then press ENTER: Get-DatabaseAvailabilityGroup –Identity DAG1 -Status c. click OK. In a production environment. b. type the following and then press ENTER: Add-DatabaseAvailabilityGroupServer -Identity DAG1 MailboxServer EX01 Failover Clustering will be installed automatically on the server when it is added to the DAG. Create DAG1. type F:\MDB03\MDB03.1. On the Completion page. f. click Add. v. In the Mailbox database name field.100 Read the warning message. Complete the following tasks on: EX01 5. Click Manage and wait for the wizard to complete. In the Log folder path field. e. click the Database Availability Groups tab. type the following and then press ENTER: New-DatabaseAvailabilityGroup -Name DAG1 -WitnessServer DC01 -DatabaseAvailabilityGroupIPAddresses 10. At the PS Prompt.0. Switch to EX01 and the Exchange Management Shell. Add the first server to DAG1. Perform a status check of DAG1. b. d. and then click Finish. At the PS Prompt. g. click Finish. a.com”. a.“Holly@contoso. In the Database file path field. Under Server name. a. it is acceptable to use DC01. At the PS Prompt. b. click New. Note: The Internet Protocol (IP) address of the DAG must be configured by using ® ® Microsoft Windows PowerShell . a. 6. At the PS Prompt. under DAG1. w.com” | New-MoveRequest -TargetDatabase MDB01 Page 4 of 12 .com”.

If the status is not Completed. On the Move Options page. click Browse. type the following and then press ENTER: Get-MoveRequest Verify that the status is Completed. click Finish. Terry Adams. In the Result pane. type the following and then press ENTER: Get-MoveRequest c. click Browse. Move request status is also available in the Exchange Management Console under Recipient Configuration | Move Request. and then click Next. r. At the PS Prompt. On the Move Options page. Verify that the status is Completed. run the command again until the mailbox moves are complete. and Zheng Mu. expand Microsoft Exchange On-Premises | Recipient Configuration | Mailbox. In the Select Mailbox Database window. click MDB02. l. under Target mailbox database. q. h. p. o. On the Introduction page. i. d. On the Introduction page. If the status is not Completed. click Next and then click New. In the Select Mailbox Database window. j. Nuno Bento. m. under Target mailbox database. click New Local Move Request. click OK. Ursula Fliegl. On the Completion page. click OK. On the Completion page. click MDB03. In the Navigation pane. n. Click Start | All Programs | Microsoft Exchange 2010 | Exchange Management Console. In the Actions pane. In the Result pane. select the mailboxes for Spencer Low. select the mailboxes for Mike Ray.Lab: Exchange 2010 client Access Tasks Detailed Steps b. click New Local Move Request. g. In the Actions pane. and Peter Houston. e. run the command again until the mailbox moves are complete. click Next and then click New. Page 5 of 12 . and then click Next. s. Switch to the Exchange Management Shell. At the PS Prompt. f. k. click Finish.

i. In the Work pane. On the Add Mailbox Database Copy page. In the Actions pane. Switch to the Exchange Management Shell. 2. At the PS Prompt. f. On EX01. The output will display the name of the Page 6 of 12 . e. click OK. In the Select Mailbox Server window. under Database Management. In the Result pane. On the Add Mailbox Database Copy page. In the Work pane. q. g. verify that the copy status for MDB01 is Healthy. click MDB03. j. type the following and then press ENTER: “EX01”. click MDB02. click Refresh in the Actions pane. At the PS Prompt. and then click Add. switch to the Exchange Management Console. Add Mailbox Database copies to EX01 and EX02 and EX03. verify that the copy status for MDB02 is Healthy. click Add Mailbox Database Copy. Check which server has the active mailbox database copy. click OK. click EX03. click EX02. d. h. expand Microsoft Exchange On-Premises | Organization Configuration | Mailbox.“EX02” | Add-MailboxDatabaseCopy –Identity MDB03 p. b. In the Result pane. type the following and then press ENTER: Get-MailboxDatabase –Identity MD* In the cmdlet. In the Work pane. c. verify that the copy status for MDB03 is Healthy.“EX03” | Add-MailboxDatabaseCopy –Identity MDB02 o. You might need to refresh the Work pane to view the addition of the database copies. Switch to the Exchange Management Console. type the following and then press ENTER: “EX01”. In the Navigation pane. a. you now need to add mailbox database copies. m. n. Detailed Steps a. and test your deployment to ensure the functionality of the DAG during an unscheduled server or disk failure. r. t. At the PS Prompt. click Browse. If necessary. under Server name. On the Completion page. b. l. click Finish. under MDB01. s. under MDB01. under Server name. In the Actions pane. Switch to the Exchange Management Shell. click Add Mailbox Database Copy. In the Result pane. and then click Add. click Finish. Tasks Complete the following tasks on: EX01 1. k. the Identity switch using the partial name and wildcard will show only the DAG mailbox database copies. On the Completion page. click MDB01. click Browse.Lab: Exchange 2010 client Access Exercise 3 Managing the DAG and Performing a Database Switchover Scenario Having completed the creation of the DAG. In the Select Mailbox Server window. verify database copy health.

If the values are not zero. Verify that the Copy Queue Length and Replay Queue Length are both at zero. 3. On EX01. In the output. at the PS Prompt. If the values are not zero. type the following and then press ENTER: Get-MailboxDatabase –Identity MD* c. At the PS Prompt. (Optional) Run the following command and review the output information. At the PS Prompt. At the PS Prompt. and then run the above command again. Check the copy status and queue lengths. Note that EX02 has the active database for both MDB01 and MDB02. a. Verify that the Copy Queue Length and Replay Queue Length are both at zero. Check the copy status and queue lengths again. you can use the following cmdlet: Move-ActiveMailboxDatabase MDB01 -ActivateOnServer EX01 -Confirm:$False b. In the output. Page 7 of 12 . the database switchover may fail. type the following and then press ENTER: Move-ActiveMailboxDatabase MDB01 -ActivateOnServer EX02 – Confirm:$False Note: Due to high disk Input/Output (I/O) in the virtual environment. c. run the command again until the values read zero. run the command again until the values read zero. At the PS Prompt. a. Restore the active mailbox database copy. At the PS Prompt. If the mailbox database switchover reports an error. wait one minute. Check the copy status and queue lengths. Review the information to see which server has the active mailbox database. To switch the mailbox database back to EX01. type the following and then press ENTER: Get-MailboxDatabaseCopyStatus –Identity MD* e. type the following and then press ENTER: Get-MailboxDatabaseCopyStatus –Identity MD* e. Verify that the Copy Queue Length and Replay Queue Length are both at zero. At the PS Prompt. Move the active mailbox database copy. Get-MailboxDatabase | FL d. run the command again until the values read zero. 4. review the information. type the following and then press ENTER: Get-MailboxDatabase –Identity MD* | FL Server. d. type the following and then press ENTER: Get-MailboxDatabaseCopyStatus –Identity MD* e. type the following and then press ENTER: Move-ActiveMailboxDatabase MDB01 -ActivateOnServer EX01 Confirm:$False b. review the information and verify that the MDB01 database is located on EX01. If the values are not zero. d. Name c. switch the database back to EX01.Lab: Exchange 2010 client Access Tasks Detailed Steps database and the server on which that database currently is mounted.

Once complete. The copy assigned the lowest activation preference number will be activated. b. Detailed Steps Note: This is a numeric value used to break ties during database activation when multiple database copies meet the same criteria for activating. c. move the databases back to their original servers. The Activation Preference numbers are automatically assigned as database copies are added.Lab: Exchange 2010 client Access Exercise 4 Simulating a Disk Failure and Testing Failover Scenario You want to ensure that. Navigate to Microsoft Exchange On-Premises | Organization Configuration | Mailbox. g. after you have brought the failed servers back online. Compare the currently configured Activation Preference number with the table above. Perform steps d through g for MDB02 and MDB03. Use the cmdlet examples below in Page 8 of 12 . Configure Activation Preference. it looks to this value. f. You will configure the way databases will be recovered in your organization in the event of a failure. the Activation Preference numbers for all three databases should match the following table: Database Name MDB01 Mailbox Server EX01 EX02 EX03 MDB02 EX02 EX03 EX01 MDB03 EX03 EX01 EX02 Activation Preference number 1 2 3 1 2 3 1 2 3 a. e. Tasks Complete the following tasks on: EX01 1. Switch to the Exchange Management Shell. When Active Manager determines that multiple database copies meet the same criteria for activation. you encountered several controller and disk failures. your Exchange Server databases are activated on specific servers providing those servers are running and have a healthy copy of the failed server’s database. Make note of configuration differences. on the Database Management tab. In the Result pane. On EX01. switch to the Exchange Management Console. In the Work pane. d. You must validate recovery of the Exchange mailbox databases and. click MDB01. in the event of a server or disk failure. scroll the window to the right or resize the columns and view the currently configured Activation Preference number. During the deployment of your Exchange 2010 high-availability solution.

On the Outlook Web App page. In the Result pane. q. a. click New. Set-MailboxDatabaseCopy –Identity MDB03\EX01 –ActivationPreference 2 h. In the To field. confirm that the mailbox for Holly Holt is on Databases\MDB01. h. In the Result pane. type Spencer Low. In the Actions pane. Note that EX01 will automatically be assigned an Activation Preference number of 3 after this command is executed.com/owa and then press ENTER. Active Manager should activate the database copies in the following order: MDB01 EX01EX02EX03 MDB02 EX02EX03EX01 MDB03 EX03EX01EX02 2. j. Click InstallSearch. with Database selected. r. f. o. click Move Up three times until Database is located under Alias. Click Start | All Programs | Internet Explorer. b.contoso. Confirm that the Mailbox for Peter Houston is on Databases\MDB03. In the Address field. under Recipient Configuration.Lab: Exchange 2010 client Access Tasks Detailed Steps order to change the Activation Preference number for database failover. Note that EX02 will automatically be assigned an Activation Preference number of 3. i. Switch to the Exchange Management Console. Based on the changes of the Activation Preference number. in the event of a failover. g. p. click Open. In the Displayed columns list. k. Page 9 of 12 . Click Attach File . Verify the user’s current mailbox database and send a test e-mail message. In the Exchange Management console. In the Inbox. click Mailbox. click MDB01.msilog. click Browse. d. s. n. c. and then click Send. click View and then click Add/Remove Columns. click Refresh and confirm that the settings match the previous table. click Database and then click Add. In the Available columns list. click Attach. In the Actions pane. l. e. Log on as Contoso\Holly with a password of pass@word1 m. i. click sign on. In the Attach Files window. The first example would be used to change the Activation Preference number of database MDB02 to fail over to server EX03 before failing over to EX01. Confirm that the Mailbox for Spencer Low is on Databases\MDB02. Type a Subject and a short message. Set-MailboxDatabaseCopy –Identity MDB02\EX03 –ActivationPreference 2 This second example would be used to change the Activation Preference number of database MDB03 to fail over to server EX01 before failing over to EX02.Peter Houston and then press CTRL+K to resolve the e-mail addresses. type https://mail. Click OK. Navigate to C:\ExchangeSetupLogs.

At the PS Prompt. a. In the Address field. b. type https://mail. Log on as Contoso\Peter with a password of pass@word1 x. Click Start | All Programs | Internet Explorer. z. b. In the Navigation pane. you might need to wait 2 to 7 minutes and then run the command again to see that the failover has completed. identify Disk 1. w. type the following and then press ENTER: Get-MailboxDatabaseCopyStatus –Identity MD* b. Close Outlook Web App. On EX01.com/owa and then press ENTER. type the following and then press ENTER: Get-MailboxDatabase –Identity MD* | FL Server. Verify that the Copy Queue Length and Replay Queue Length are both zero. switch to the Exchange Management Shell. a. At the PS Prompt. On the Outlook Web App page. click OK. In the message body. i. Server: EX02 Name : MDB01 Server: EX03 Name : MDB03 Server: EX02 Name : MDB02 d.Lab: Exchange 2010 client Access Tasks Detailed Steps t. Log on as Contoso\Peter with a password of pass@word1 h. Verify e-mail functionality. Verify that Peter has received the e-mail message from Holly Holt. d. Verify that the e-mail message from Peter Houston is in the Inbox. Close Outlook Web App. In the Address field. The databases should now be active and listed similar to the table below. type https://mail. type the following and then press ENTER: Get-MailboxDatabaseCopyStatus –Identity MD* Note the failed and suspended status due to the failed disk. click Server Manager. j. Review the output of the command.com/owa and then press ENTER. Right-click Disk 1 and then click Offline. On EX01. g. Verify database recovery. Name c. v.contoso. 3. Switch to the Exchange Management Shell. e. Click Reply. expand Storage and then click Disk Management. Check database copy health. c.contoso. Click the e-mail message from Holly Holt and click Reply. Click Start | All Programs | Internet Explorer.com/owa and then press ENTER. a. In the Result pane. Because of the virtual environment simulating the disk failure. type Thanks and click Send.contoso. a. Log on to Outlook Web App as Contoso\Holly with a password of pass@word1 d. which is associated with Drive D:. Verify copy status and queue lengths. At the PS Prompt. type https://mail. 4. b. y. in the Task bar. c. This will cause the disk to go offline and simulate a failure of the drive. Page 10 of 12 . Close Outlook Web App. 5. In the Address field. 6. e. Click Start | All Programs | Internet Explorer. f. Simulate disk failure and send an e-mail. u.

In the Actions pane. In the Activate Database Copy window. Log on to Outlook Web App as Contoso\Peter with a password of pass@word1 Close Outlook Web App. click MDB01 located on EX01. Page 11 of 12 . On EX01. p. ENTER: k. In the Result pane. Navigate to Microsoft Exchange On-Premises | Organization Configuration | n. Click None and then click OK. Right-click Disk 1 and then click Online. click MDB01. i. type https://mail. r. Run this cmdlet again until MDB01\EX01 is reported as healthy and the Copy and Replay queues are zero. Mailbox. At the PS Prompt. l.Lab: Exchange 2010 client Access Tasks Detailed Steps f. d. In the Navigation pane. In the Address field. click Refresh. switch to the Server Manager. In the Work pane. At the PS Prompt. Close Outlook Web App. Verify that Peter has received the e-mail message from Holly Holt. Switch to the Exchange Management Console. In the Actions pane. click Refresh and verify that the Copy Status of the database h. type the following and then press Get-MailboxDatabaseCopyStatus –Identity MD* Notice that the copy of MDB01 on EX01 is Resynchronizing. type the following and then press ENTER: Get-MailboxDatabase –Identity MD* | FL Server. g. Switch to the Exchange Management Shell. and click Resume Database Copy. Check database copy health. click MDB01 associated with EX01. Switch to the Exchange Management Shell. a. k. s. under Storage | Disk Management. MDB01 associated with EX01 must be selected in order to run the Activate Database Copy wizard. Restore the database to the original Mailbox server. Under Organization Configuration | Mailbox in the Results pane. In the output. g. j. l. j. o. right-click MDB01 located on EX01. click Activate Database Copy. q. h. review the information for Server and Name. Click Start | All Programs | Internet Explorer. In the Actions pane. b. f. Notice that the Copy Status is Healthy. Name v. click MDB01. click the drop-down list to view the available options. Notice that MDB01 is now activated on EX01. In the Work pane. e. Switch to the Exchange Management Console. i. t. u. In the Work pane. click Yes.contoso. Type a message and then click Send. m. In the Resume Mailbox Database Copy information dialog box. identify Disk 1.com/owa and then press ENTER. 7. c. which is associated with Drive D:. is listed as Failed and Suspended.

At the PS Prompt. e. type https://mail. Verify e-mail functionality. c. b. type the following and then press ENTER: Get-MailboxDatabaseCopyStatus –Identity MD* If necessary. In the Address field.Lab: Exchange 2010 client Access Tasks Detailed Steps w. a. run this cmdlet again until MDB01\EX01 Copy and Replay queues are zero. Check database copy health. Log on to Outlook Web App as Contoso\Holly with a password of pass@word1 d. Page 12 of 12 .com/owa and then press ENTER.contoso. Verify that Holly has the previous e-mail messages in her Inbox. Click Start | All Programs | Internet Explorer. Close Outlook Web App. 8.