programming4us
programming4us
ENTERPRISE

Microsoft Exchange Server 2010 : Creating and Managing Database Availability Groups (part 5) - Switching over Servers and Databases

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
2/22/2014 8:53:01 PM

5. Removing Servers from a Database Availability Group

Before you can remove a server from a database availability group, you must also remove all database copies from the server. To remove member servers from a DAG, right-click the DAG, and then click Manage Database Availability Group Membership. On the Manage Database Availability Group Membership page, select each server on the list of current members, and then click the red X to remove the servers from the database availability group. Click Manage, and then click Finish. After you remove the member servers, you can remove the database availability group by right-clicking it and selecting Remove. When prompted to confirm, click Yes.

6. Removing Database Availability Groups

You can remove a database availability group only if it has no member servers. Therefore, before you can remove a database availability group, you must first remove any member servers from the group.

You can remove an empty availability group by completing the following steps:

  1. In the Exchange Management Console, expand the Organization Configuration node and then select the related Mailbox node.

  2. On the Database Availability Group tab, right-click the database availability group you want to remove and then select Remove.

  3. When prompted to confirm the action, click Yes.

In the Exchange Management Shell, you can remove database availability groups using the Remove-DatabaseAvailabilityGroup cmdlet. Example 7 provides the syntax and usage.

Example 7. Remove-DatabaseAvailabilityGroup cmdlet syntax and usage

Syntax

Remove-DatabaseAvailabilityGroup -Identity DAGName
[-DomainController FullyQualifiedName]


Usage

Remove-DatabaseAvailabilityGroup -Identity "EastCampusDAG1"

7. Switching over Servers and Databases

The Microsoft Exchange Information Store service manages the active and passive databases configured on a Mailbox server. To improve performance, the service running on each server maintains a database cache of changes to active databases that haven't been applied to passive copies. In the event of a failover or switchover, the service can apply the changes in the cache to a passive copy and then make the passive copy the active copy. Most of the time, failover completes in about 30 seconds.

The difference between failover and switchover is important. When Exchange detects a failure of an active database, regardless of whether it is from database failure, server failure, or network failure, Exchange uses failover processes to mark the active database as inactive and dismount it and then mount and mark a passive database copy as the active copy. Prior to performing maintenance on a server or for testing or troubleshooting, you might want Exchange to switch from one database to another by marking an active database as inactive and then marking a passive database copy as the active copy.

Failover and switchover occur at the database level for individual databases and at the server level for all active databases hosted by a server. When either a switchover or failover occurs, other Exchange 2010 server roles become aware of the switchover almost immediately and redirect client and messaging traffic automatically as appropriate.

You can switch over all active databases on a server by completing the following steps:

  1. In the Exchange Management Console, expand the Server Configuration node and then select the related Mailbox node.

  2. In the main pane, right-click the server that you are performing maintenance on, testing, or troubleshooting and then select Switchover Server.

  3. In the Activate Database Copy dialog box, shown in Figure 6 the default option is to allow Exchange to handle the switchover and select a server to take over the databases from the source server automatically. To accept the default, click OK. Otherwise, click Use The Specified Target Server and then click Browse. In the Select Mailbox Server dialog box, select the server to take over, click OK, and then click OK again to close the Switchover Server Database Copies dialog box. Keep in mind that you can select only a server that is already a member of the database availability group. You can't have copies outside the group either.

  4. When prompted to confirm the action, click Yes.

Switch over the active databases.

Figure 6. Switch over the active databases.

You can perform a switchover of an individual database by completing the following steps:

  1. In the Exchange Management Console, expand the Organization Configuration node and then select the related Mailbox node. In the main pane, select the Database Management tab.

  2. In the upper pane, click the database you want to work with. In the lower pane, you see the available database copies. The database copies are listed according to their copy status. Only the active copy will have a status of Mounted. All other database copies will display the current status of replication for the database copy.

  3. Right-click the passive copy you want to activate, and then click Activate Database Copy.

  4. Every mailbox server has a database automount setting and the default is Best Availability. If you want to use the default automount setting, accept the default value of None in the Activate Database Copy dialog box and then click OK. Otherwise, override the default database mount settings by selecting a value other than None on the Override Mount Dial list and then clicking OK. Values you can select to control the database mount behavior include:

    • Lossless The database does not automatically mount until all logs that were generated on the original source server have been copied to the target node.

    • Good Availability The database automatically mounts if the copy queue length is less than or equal to 6. If the queue length is greater than 6, Exchange attempts to replicate the remaining logs to the target server and mounts the databases once the queue length is less than or equal to 6.

    • Best Availability The database automatically mounts if the copy queue length is less than or equal to 12. The copy queue length is the number of logs that need to be replicated. If the queue length is greater than 12, Exchange attempts to replicate the remaining logs to the target server and mounts the databases once the queue length is less than or equal to 12.

    Note

    You can set the default database automount setting for a mailbox server using the –AutoDatabaseMountDail parameter of the Set-MailboxServer cmdlet. If you specify either Best Availability or Good Availability and all of the data has not been replicated to the target server, you might lose some mailbox data. However, the transport dumpster feature (which is enabled by default) helps protect against data loss by resubmitting messages that are in the transport dumpster queue. Because of latency problems or other issues, specifying one of these values can result in a database not being mounted, and you might need to use the -AcceptDataLoss parameter with Mount-Database to force the database to mount after a specified amount of time.

  5. When you click OK, Exchange will dismount the current active mailbox database, and establish the previously selected database copy as the active mailbox database.

When you are working with the Exchange Management Shell, you can initiate switchover using Move-ActiveMailboxDatabase. Example 8 shows the syntax and usage.

Example 8. Move-ActiveMailboxDatabase cmdlet syntax and usage

Syntax

Move-ActiveMailboxDatabase -Identity DatabaseName
[-SkipClientExperienceChecks <$true | $false>] [-SkipHealthChecks
<$true | $false>] [SkipLagChecks <$true | $false>] {AddtlParams}

Move-ActiveMailboxDatabase -Server ServerName {AddtlParams}
{AddtlParams}
[-ActivateOnServer ServerOnWhichToActivate] [-MountDialOverride
{"Lossless" | "GoodAvailability" | "BestAvailability"
| "None"} [-DomainController FullyQualifiedName]
[-TerminateOnWarning <$true | $false>]


Usage

Move-ActiveMailboxDatabase -Identity "Engineering Primary Database"
-ActivateOnServer "MailServer86" -MountDialOverride "Lossless"
Other  
  •  Microsoft Exchange Server 2010 : Navigating the Information Store (part 2) - Improving Availability, Introducing Active Manager
  •  Microsoft Exchange Server 2010 : Navigating the Information Store (part 1) - Using Databases, Understanding Database Structures
  •  Byod – Good Or Bad Or Unknown?
  •  Windows 7 : WORKING WITH THE FIREWALL (part 6) - Using the GPO Technique - Adding a New Application Rule, Removing an Application Rule
  •  Windows 7 : WORKING WITH THE FIREWALL (part 5) - Using the GPO Technique - Obtaining a List of Rules
  •  Windows 7 : WORKING WITH THE FIREWALL (part 4) - Using the GPO Technique - Configuring the Rule Technique Example
  •  Windows 7 : WORKING WITH THE FIREWALL (part 3) - Adding and Deleting Ports
  •  Windows 7 : WORKING WITH THE FIREWALL (part 3) - Adding and Deleting Ports
  •  Windows 7 : WORKING WITH THE FIREWALL (part 2) - Modifying a Setting
  •  Windows 7 : WORKING WITH THE FIREWALL (part 1) - Interacting with the Firewall , Verifying the Firewall Status
  •  
    Top 10
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
    - Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
    - Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    programming4us programming4us
    programming4us
     
     
    programming4us