Académique Documents
Professionnel Documents
Culture Documents
Disclaimer
The contents of this document are subject to change without notice. NEC Corporation assumes
no responsibility for technical or editorial mistakes in or omissions from this document. To obtain
the benefits of the product, it is the customers responsibility to install and use the product in
accordance with this document. The copyright for the contents of this document belongs to NEC
Corporation. Copying, altering, or translating this document, in full or in part, without the
permission of NEC Corporation, is prohibited.
Contents
Using this guide...................................................................................................................... 5
Where to go for more information ........................................................................................... 6
1
Overview ............................................................................................................................ 7
2
System Requirements and Planning................................................................................... 8
2.1
System Requirements ................................................................................................ 8
2.2
System Planning......................................................................................................... 9
3
Base System Setup ...........................................................................................................11
3.1
Setup the Primary Server (Machine 1) .......................................................................11
3.2
Setup the Standby Server (Machine 2) ......................................................................12
4
Microsoft Exchange 2013 Installation ................................................................................13
4.1
Microsoft Exchange 2013 setup on the Primary Server (Machine 1) ..........................13
4.2
Microsoft Exchange 2013 setup on the Standby Server (Machine 2) .........................17
5
EC X Server Installation ....................................................................................................18
5.1
Install EC X on the Primary Server (Machine 1) .........................................................18
5.2
Install EC X on the Standby Server (Machine 2) ........................................................18
5.3
Restart the Primary and Standby Servers (Machines 1 & 2) ......................................18
6
Base Cluster Setup ...........................................................................................................19
6.1
Install Java Runtime Environment (JRE)....................................................................19
6.2
Start the cluster manager ..........................................................................................19
6.3
Create a cluster .........................................................................................................19
6.4
Create a failover group ..............................................................................................19
6.5
Create Floating IP and Mirror Disk Resources ...........................................................20
6.6
Upload the cluster configuration and initialize the cluster ...........................................21
7
Microsoft Exchange 2013 Cluster Setup............................................................................23
7.1
Move the Mailbox Database from default location to Data Partition ...........................23
7.2
Configure services on the Primary Server (Machine 1) ..............................................23
7.3
Configure the data path on the Primary Server (Machine 1) ......................................24
7.4
Configure services and the data path on the Standby Server (Machine 2) .................25
7.5
Adding a Script resource for Single Mailbox Database (Private and Public) ...............25
7.6
Upload the cluster configuration and start the cluster.................................................26
8
Preparing Scripts for Single Mailbox Database ..................................................................27
9
Final Deployment in a LAN Environment ...........................................................................43
10 Common Maintenance Tasks ............................................................................................44
10.1 Start Cluster Manager................................................................................................44
10.2 Reboot/shutdown one or all servers...........................................................................44
10.3 Startup/stop/move failover groups .............................................................................45
10.4 Isolate a server for maintenance ................................................................................45
10.5 Return an isolated server to the cluster .....................................................................45
10.5.1
Automatic Recovery ...........................................................................................45
10.5.2
Manual Recovery ...............................................................................................45
10.6 Rebuild a mirror disk ..................................................................................................45
Appendix A: EC X Server Uninstallation ....................................................................................47
Appendix B: Example System Planning Worksheet ..................................................................48
Contact: info@expresscluster.jp.nec.com
1 Overview
The general procedure to deploy Microsoft Exchange Server 2013 with EC X on two servers
(Primary and Standby) consists of the following major steps:
1. Perform system planning to determine requirements and specify configuration settings
prior to the start of actual system installation and configuration.
2. Prepare the Primary and Standby Servers, including OS installation and configuration.
3. Install, configure, and verify Microsoft Exchange 2013 on the Primary and Standby
Servers.
4. Install and configure EC X on the Primary and Standby Servers.
5. Create and configure the EC X failover group to enable continuous protection and
automatic recovery for Microsoft Exchange 2013.
6. Upload the configuration file and start the cluster to complete deployment in the mirror disk
configuration.
Client
Primary server
Standby server
Interconnect
Exchange
instance
Active system
local disk
Standby system
local disk
Note
The EC software is run using the domain administrator account.
System Requirements
Machine 1: Primary Server
Machine 2: Standby Server
Machine 3: Test Client
Machine 1
Primary Server
Machine 2
Standby Server
Machine 3
Test Client
CPU
Memory
8GB or more
512MB or more
Disk
1 physical disk
OS
Windows XP or newer
Software
Network
2.2
System Planning
Review the requirements from the last section and then fill in the tables of the worksheet below. Refer to
Appendix B for an example worksheet.
Machine 1 Primary Server
Machine 2 Standby Server
Machine 3 Test Client
Host name
Network
Connection
IP Address
Subnet
Mask
Default
Gateway
Preferred
DNS Server
Public:
1
Interconnect:
Public:
2
Interconnect:
3
(1) ______________
(2) ______________
OS
Boot Partition:
Drive Letter:
Size:
Boot Partition:
Drive Letter:
Size:
* The size must be large enough to store all data, and log files for a given Microsoft Exchange 2013
installation to meet current and expected future needs.
Login
Password
Machine 1
Administrator
Machine 2
Administrator
Machine 3
Administrator
Domain
Administrator
10
a. Rename the network interface for network communication with client systems to
Public.
b. Rename the network interface for internal EC X management and data mirroring
network communication between servers to Interconnect.
4. Configure the Network interface TCP/IP settings:
b.
c.
d.
e.
f. Click the Advanced button. Click the DNS tab. Click to clear the Register this
connections addresses in DNS check box. Click OK. Click OK. (Two times
total).
h.
i.
j.
k.
11
3.2
12
13
8. On the Check for Updates? page, select either option and click next.
Note: If the option to download updates was selected, wait for the download to finish,
and click next.
9. After files are copied and the setup is initialized, click next on the Introduction page.
14
12. Select the Server Roles (Mailbox and Client Access). Click next.
13. Specify the Exchange Server installation path and click next.
15
15. Select an option in the Malware Protection Settings window. Click next.
16. After the Readiness Checks have run and Exchange is ready to be installed, click
install or next and installation begins.
16
4.2
17
5 EC X Server Installation
5.1
8.
In the Port Number window, if necessary, modify the default port numbers. Click
Next.
In the Filter Settings of Shared Disk window, click Next.
In the Confirmation window, click Yes.
In the License Manager window, click Register.
In the License Registration window, click Register with License Information.
In the Product Selection window, select the OS and Product/Trial types. For
Product Name, click EXPREESSCLUSTER X 3.1 for Windows. Click Next.
In the License Unit Selection window, depending on the type of license, enter the
number of CPU or Node Units. Click Next.
In the License Key Entry window, enter the Serial No. and License Key. Click
Next.
In the License Registration Confirmation window, confirm the information entered
is correct. Click Next.
Click OK. If the license registration fails, start again from step 11.
Repeat steps 11-17 again for the EXPRESSCLUSTER X Replicator 3.1 for
Windows product license. Select EXPRESSCLUSTER X Replicator 3.1 for
Windows as the Product Name in step 13.
In the next window, click Finish.
On the InstallShield Wizard Complete window, click the No, I will restart my
computer later option button, and then click Finish.
In the next window, click Exit. Click Exit. (Two times total).
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
5.2
5.3
18
6.2
6.3
Create a cluster
For all of the steps below, refer to Table 1 for the IP addresses and server names.
1. When the cluster manager is opened for the first time, there is a pop-up window with
three options. Click Start cluster generation wizard.
2. In the new window, type a cluster name. (Example: cluster).
3. Type the Management IP address, and click Next.
4. In the next window, to add another server to the cluster, click Add.
5. Type the hostname or the IP address of the second server, and then click OK.
6. Both servers are now on the list. If the Primary Server is not in the top (Master)
Server position, then move it up. Click Next.
7. EC X automatically detects the IP addresses of the servers. Select the network to
use the Heartbeat path in the Kernel Mode type. The primary network is for
mirroring the data; set Type to Mirror Communication and the MDC as mdc1. Click
Next.
8. In the NP Resolution window, click Next.
6.4
19
2. In the next window, select failover for group type. Name the group (Example:
Exchange_Failover), click Next, and then click Next. (Two times total).
3. Select the default options for the Group Attribute Settings, and then click Next.
6.5
20
6.6
Note
This step may take a while depending on the size of the data in the mirrored disk data
partition.
21
6. After the copy completes, in the Mirror Disk Helper window, click Close.
Refer to the figure below.
7. In the Cluster Manager window, all icons in the tree view are now green. Refer
to the figure below.
22
1. Create a folder (Mailbox Folder) on the Data Partition (example: X:\Mailbox Folder).
2. Before moving the Mailbox Database and LogFolderPath, make a backup copy of all
files.
3. Once the backup is made, click on Start and click on Exchange Management Shell.
4. Run the following command at the prompt:
Move-DatabasePath Identity <MDB name> -EdbFilePath <new path to .edb file> LogFolderPath <new path to folder>
Example: Move-DatabasePath Identity Mailbox01 EdbFilePath X:\Mailbox
Folder\Mailbox01.edb LogFolderPath X:\Mailbox Folder
Refer to the figure below.
5. To verify the change, run the command (using mailbox name in example above):
Get-MailboxDatabase Mailbox01 | Fl Name,*Path*
7.2
23
b.
c.
d.
e.
f.
g.
h.
i.
j.
k.
l.
m.
n.
o.
p.
q.
r.
s.
t.
u.
v.
w.
x.
y.
7.3
24
7.4
Configure services and the data path on the Standby Server (Machine 2)
1. In the Cluster Manager, right-click %failover group%.
2. Click Move.
3. Select the Standby Server. Click OK.
4. Perform steps 7.2 and 7.3 on the Standby Server.
Note
New directories will not need to be created on the Data Partition.
7.5
Adding a Script resource for Single Mailbox Database (Private and Public)
1. Locate or create Exchange failover scripts. The scripts are located in Chapter 8
and include start.bat, stop.bat, W#EXCHG.bat, and exch.vbs.
2. On the Test Client (Machine 3) open the Cluster Manager (Example: Example:
http://10.1.1.1:29003)
3. Stop the Cluster. Click on the Service menu at the top of the Cluster Manager
window, and then click Stop Cluster. Click OK to confirm.
4. Switch to the configuration mode. Click the drop-down list at the top left corner of
the Cluster Manager, and then click Config Mode.
5. Right-click on the %failover group%, and then click Add Resource.
6. From the drop-down list, select script resource, and give a name to the resource
( example.: Exchange_Script ). If necessary, add optional comments.
7. Click Next.
8. By default, the Follow the default dependency option is selected. Click Next.
9. Click Next if the default values are acceptable. Or make changes. To learn more,
refer to the EXPRESSCLUSTER Reference Guide.
http://www.nec.com/en/global/prod/expresscluster/en/support/manuals.html
10. Select start.bat and click Replace.
11. Navigate to the location of start.bat in the Open dialog window (refer to Exchange
2013 scripts in Chapter 8). Select start.bat, and then click Open. Click Yes to
confirm replacing the old file with the new one.
12. Select stop.bat and click replace.
25
13. Navigate to the location of stop.bat in the Open dialog window (refer to Exchange
2013 scripts in Chapter 8). Select stop.bat, and then click Open. Click Yes to
confirm replacing the old file with the new one.
14. Click Add and Browse to the directory containing exch.vbs (refer to Exchange
2013 scripts in Chapter 8). Change type to All Files to view. Select exch.vbs and
click Open. Click OK.
15. Click Add and Browse to the directory containing W#EXCHG.bat (refer to
Exchange 2013 scripts in Chapter 8). Select W#EXCHG.bat and click Open.
Select the Edit and exit box. Click OK.
16. Edit and modify the variables in this script to match your environment (refer to the
System Planning worksheet in section 2.2). Save and close.
17. Click Finish.
18. Right-click on Cluster (refer to the figure below), and then click Properties.
19. Click the Account Tab. Click Add to add your domain account credentials.
20. Type the account name in the User Name section (example:
DOMAIN\administrator).
21. Click Change to set the User name and password. Type a password. Click OK.
22. Click OK to close the Enter account window and then OK again to close the
7.6
26
27
SET AD_DOMAIN=%W#EXCHG8%
rem ***************************************
rem Check startup attributes
rem ***************************************
IF "%CLP_EVENT%" == "START" GOTO NORMAL
IF "%CLP_EVENT%" == "FAILOVER" GOTO FAILOVER
IF "%CLP_EVENT%" == "RECOVER" GOTO EXIT
rem CLUSTERPRO Server is not started
GOTO no_arm
rem ***************************************
rem Normal and Failover Startup process
rem ***************************************
:NORMAL
:FAILOVER
rem Check Disk
IF "%CLP_DISK%" == "FAILURE" GOTO ERROR_DISK
IF "%W#EXCHG5%" == "0" GOTO NO_LOG_EXCHG2
ARMLOG "cd %CLP_SCRIPT_PATH%"
:NO_LOG_EXCHG2
cd %CLP_SCRIPT_PATH%
IF "%CLP_SERVER%" == "OTHER" GOTO ON_SECONDARY_SERVER
:ON_SECONDARY_SERVER
IF "%W#EXCHG5%" == "0" GOTO NO_LOG_EXCHG4
ARMLOG "ARMLOAD EXCHSCR /W /U %DOMAIN_ADMIN_ACCOUNT% cscript
exch.vbs %PRIMARY_SERVER_NAME% %BACKUP_SERVER_NAME% %CLP_PRIORITY%
" 2>c:\scripts.txt
:NO_LOG_EXCHG4
EXPRESSCLUSTER X for Windows Microsoft Exchange Server 2013
28
ARMLOAD
EXCHSCR
/W
/U
%DOMAIN_ADMIN_ACCOUNT%
cscript
exch.vbs %PRIMARY_SERVER_NAME% %BACKUP_SERVER_NAME% %CLP_PRIORITY%
2>c:\scripts.txt
IF "%W#EXCHG5%" == "0" GOTO NO_LOG_EXCHG5
ARMLOG "ARMLOAD EXCHSA /S /A /R 1 MSEXCHANGESA"
:NO_LOG_EXCHG5
rem *** start exchange services ***
ARMLOAD EXCHIS /S /A /R 1 MSEXCHANGEIS
ARMLOAD EXCHADT /S /A /R 1 MSEXCHANGEADTopology
ARMLOAD EXCHFMS /S /A /R 1 FMS
ARMLOAD EXCHASU /S /A /R 1 MSEXCHANGEAntispamUpdate
ARMLOAD EXCHDIAG /S /A /R 1 MSExchangeDiagnostics
ARMLOAD EXCHEDS /S /A /R 1 MSEXCHANGEEdgeSync
ARMLOAD EXCHFET /S /A /R 1 MSExchangeFrontEndTransport
ARMLOAD EXCHHM /S /A /R 1 MSExchangeHM
ARMLOAD EXCHIMAP4 /S /A /R 1 MSEXCHANGEIMAP4
ARMLOAD EXCHPOP3 /S /A /R 1 MSEXCHANGEPOP3
ARMLOAD EXCHREPL /S /A /R 1 MSEXCHANGERepl
ARMLOAD EXCHRPC /S /A /R 1 MSEXCHANGERPC
ARMLOAD EXCHFS /S /A /R 1 MSExchangeFastSearch
ARMLOAD EXCHCS /S /A /R 1 HostControllerService
ARMLOAD EXCHSVH /S /A /R 1 MSEXCHANGEServiceHost
ARMLOAD EXCHTHROT /S /A /R 1 MSExchangeThrottling
ARMLOAD EXCHTRN /S /A /R 1 MSEXCHANGETransport
ARMLOAD EXCHTRNLS /S /A /R 1 MSEXCHANGETransportLogSearch
ARMLOAD EXCHMA /S /A /R 1 MSEXCHANGEMailboxAssistants
ARMLOAD EXCHMBR /S /A /R 1 MSExchangeMailboxReplication
ARMLOAD EXCHDELIV /S /A /R 1 MSExchangeDelivery
ARMLOAD EXCHSUB /S /A /R 1 MSExchangeSubmission
ARMLOAD EXCHUM /S /A /R 1 MSExchangeUM
ARMLOAD EXCHUMCR /S /A /R 1 MSExchangeUMCR
ARMLOAD EXCHTRAC /S /A /R 1 SearchExchangeTracing
GOTO EXIT
29
rem ***************************************
rem Irregular process
rem ***************************************
rem Process for disk errors
:ERROR_DISK
ARMBCAST /MSG "Failed to connect the switched disk partition" /A
GOTO EXIT
rem ***************************************
rem Terminate process
rem ***************************************
:EXIT
rem -----------------------------------------rem Log output
rem -----------------------------------------IF "%W#EXCHG5%" == "0" GOTO NO_LOG_EXCHG_EXIT
ARMLOG "END START.BAT"
:NO_LOG_EXCHG_EXIT
rem -----------------------------------------rem End
rem -----------------------------------------File Name: stop.bat
rem ***************************************
rem *
STOP.BAT
*
rem *
*
rem * Title : Exchange stop option
*
rem * Date : 2011.09.22
*
rem * Version : 3.0
*
rem ***************************************
30
:NO_LOG_EXCHG_START
rem ***************************************
rem Check startup attributes
rem ***************************************
IF "%CLP_EVENT%" == "START" GOTO NORMAL
IF "%CLP_EVENT%" == "FAILOVER" GOTO FAILOVER
rem CLUSTERPRO Server is not started
GOTO no_arm
rem ***************************************
rem Normal and Failover Stop process
rem ***************************************
:NORMAL
:FAILOVER
IF "%W#EXCHG5%" == "0" GOTO NO_LOG_EXCHG1
ARMLOG "ARMKILL POP3"
:NO_LOG_EXCHG1
ARMKILL EXCHTRAC
ARMKILL EXCHUMCR
ARMKILL EXCHUM
ARMKILL EXCHSUB
ARMKILL EXCHDELIV
EXPRESSCLUSTER X for Windows Microsoft Exchange Server 2013
31
ARMKILL EXCHMBR
ARMKILL EXCHMA
ARMKILL EXCHTRNLS
ARMKILL EXCHTRN
ARMKILL EXCHTHROT
ARMKILL EXCHSVH
ARMKILL EXCHCS
ARMKILL EXCHFS
ARMKILL EXCHRPC
ARMKILL EXCHREPL
ARMKILL EXCHPOP3
ARMKILL EXCHIMAP4
ARMKILL EXCHHM
ARMKILL EXCHFET
ARMKILL EXCHEDS
ARMKILL EXCHDIAG
ARMKILL EXCHASU
ARMKILL EXCHFMS
ARMKILL EXCHADT
ARMKILL EXCHIS
rem Check Disk
IF "%CLP_DISK%" == "FAILURE" GOTO ERROR_DISK
GOTO EXIT
rem ***************************************
rem Irregular process
rem ***************************************
rem Process for disk errors
:ERROR_DISK
ARMBCAST /MSG "Failed to connect the switched disk partition" /A
GOTO EXIT
32
:no_arm
ARMBCAST /MSG "CLUSTERPRO Server is offline" /A
rem ***************************************
rem Terminate process
rem ***************************************
:EXIT
rem -----------------------------------------rem Log output
rem -----------------------------------------IF "%W#EXCHG5%" == "0" GOTO NO_LOG_EXCHG_EXIT
ARMLOG "END STOP.BAT"
:NO_LOG_EXCHG_EXIT
rem -----------------------------------------rem End
rem -----------------------------------------File Name: W#EXCHG.bat
rem ***************************************
rem *
W#EXCHG.BAT
*
rem *
*
rem * Title : Exchange setting option *
rem * Date : 2011.09.22
*
rem * Version : 3.0
*
rem ***************************************
rem -----------------------------------------rem Parameters
rem W#EXCHG1 : Domain administrator account
rem W#EXCHG2 : Active Directory server name
rem W#EXCHG3 : Primary server name
rem W#EXCHG4 : Backup server name
rem W#EXCHG5 : Log output using ARMLOG command
rem
0: Disable
rem
1: Enable
rem W#EXCHG6 : Account to change AD setting
rem W#EXCHG7 : Password for user (W#EXCHG6)
EXPRESSCLUSTER X for Windows Microsoft Exchange Server 2013
33
'===============================================================
' Variables and Constants
'===============================================================
' Declare variables
Dim strDNSDomain
Dim strPrimary, strBackup
Dim strOrg, strAdminGrp, strMBStorePub, strMBStore, strExchMDBCopy, strOAB
Dim strOrgClass, strAdminGrpClass
Dim strMBStorePrivClass, strMBStorePubClass, strExchMDBCopyClass, strOABClass
Dim objRootDSE
EXPRESSCLUSTER X for Windows Microsoft Exchange Server 2013
34
Dim conn
Dim flagFailOver
' Declare Constants
Const ADS_PROPERTY_APPEND = 3
Const ADS_PROPERTY_DELETE = 4
Const ForReading = 1
Const ForWriting = 2
If WScript.Arguments.Count <> 3 Then
WScript.echo "Invalid parameters."
WScript.Quit
End If
strPrimary = WScript.Arguments(0)
strBackup = WScript.Arguments(1)
WScript.echo "Primary Server:" & strPrimary
WScript.echo "Backup Server:" & strBackup
If WScript.Arguments(2) = "1" Then
flagFailOver = 0
WScript.echo "failback"
Else
flagFailOver = 1
WScript.echo "failover"
End If
35
'===============================================================
' Error handling
Sub ErrorCheck(strError)
If Err.Number <> 0 Then
Wscript.Echo strError & vbCrLf _
& "Error number: " & Err.Number & " " & VbCrLf _
& "Error source: " & Err.Source & " " & vbCrLf _
& "Error description: " & Err.Description & vbCrLf _
& VbCrLf & "Cancelling script now."
Err.Clear
Wscript.Quit
End If
End Sub
' Sets variables
Function GetObjectName (DNSDomainName,Attribute)
Dim strLdapstring, rs1, objVar
strLdapstring = "<LDAP://CN=Configuration," & DNSDomainName & ">;(&(objectClass=" &
Attribute & "));adspath;subtree"
Set rs1 = conn.Execute(strLdapstring)
Set objVar = GetObject(rs1.Fields(0).Value)
GetObjectName = objVar.cn
End Function
'===============================================================
' Mounting MailBox store
'===============================================================
Sub MountStores(Organization, AdminGroup, MailboxStore)
Dim objBase
set objBase=GetObject("LDAP://CN=" & MailboxStore &_
",CN=Databases" &_
",CN=" & AdminGroup &_
",CN=Administrative Groups,CN=" & Organization &_
",CN=Microsoft Exchange,CN=Services,CN=Configuration" &_
"," & strDNSDomain)
objBase.msExchPatchMDB = True 'This database can be overwritten by a restore
EXPRESSCLUSTER X for Windows Microsoft Exchange Server 2013
36
objBase.SetInfo
WScript.echo "New mount setting: " & objBase.msExchPatchMDB
End Sub
'===============================================================
' Change HostServer attribute
'===============================================================
Sub ChangeHostServer(Organization, AdminGroup, MailboxStore )
Dim objBase, strHostServer
set objBase=GetObject("LDAP://CN=" & strExchMDBCopy &_
",CN=" & MailboxStore &_
",CN=Databases" & ",CN=" & AdminGroup &_
",CN=Administrative Groups,CN=" & Organization &_
",CN=Microsoft Exchange,CN=Services,CN=Configuration" &_
"," & strDNSDomain)
strHostServer = objBase.msExchHostServerLink
If flagFailOver Then
strHostServer = Replace(strHostServer, strPrimary, strBackup, 1, -1, vbTextCompare)
Else
strHostServer = Replace(strHostServer, strBackup, strPrimary, 1, -1, vbTextCompare)
End If
objBase.msExchHostServerLink = strHostServer
objBase.SetInfo
WScript.echo "Mailbox Database Host Server set to: " & objBase.msExchHostServerLink
End Sub
'===============================================================
' Change Attributes of Master, Owning and LegacyDN
'===============================================================
Sub ChangeServerattributes(Organization, AdminGroup, MailboxStore)
37
38
strLegacyExchangeDN = objBase.legacyExchangeDN
If flagFailOver Then
strLegacyExchangeDN = Replace(strLegacyExchangeDN, strPrimary, strBackup, 1, -1,
vbTextCompare)
Else
strLegacyExchangeDN = Replace(strLegacyExchangeDN, strBackup, strPrimary, 1, -1,
vbTextCompare)
End If
objBase.legacyExchangeDN = strLegacyExchangeDN
objBase.SetInfo
WScript.echo "Mailbox Database Legacy ExchangeDN set to: " &
objBase.legacyExchangeDN
End Sub
'===============================================================
' Binding to Active Directory
'===============================================================
Set objRootDSE = GetObject("LDAP://RootDSE")
strDNSDomain = objRootDSE.Get("DefaultNamingContext")
Call ErrorCheck("Error while binding to AD.")
'===============================================================
' ADODB Connect
'===============================================================
Set conn = CreateObject("ADODB.Connection")
conn.Provider = "ADSDSOObject"
conn.Open "ADs Provider"
Call ErrorCheck("Error while connecting to ADODB.")
'===============================================================
' Set variables
EXPRESSCLUSTER X for Windows Microsoft Exchange Server 2013
39
'===============================================================
strOrg = GetObjectName(strDNSDomain,strOrgClass)
WScript.echo "Organization Name: " & strOrg
strAdminGrp = GetObjectName(strDNSDomain,strAdminGrpClass)
WScript.echo "Administration Group: " & strAdminGrp
strMBStore = GetObjectName(strDNSDomain,strMBStorePrivClass)
WScript.echo "Private MB Store: " & strMBStore
strMBStorePub = GetObjectName(strDNSDomain,strMBStorePubClass)
WScript.echo "Public MB Store: " & strMBStorePub
strExchMDBCopy = GetObjectName(strDNSDomain,strExchMDBCopyClass)
WScript.echo "strExchMDBCopy: " & strExchMDBCopy
strOAB = GetObjectName(strDNSDomain,strOABClass)
WScript.echo "strOAB: " & strOAB
'===============================================================
' Prepare Offline Address Book for mounting
'===============================================================
Sub ChangeOABPath(Organization)
Dim objBase, strOABVirtDirLink
set objBase=GetObject("LDAP://CN=" & strOAB &_
",CN=Offline Address Lists,CN=Address Lists Container" &_
",CN=" & Organization & ",CN=Microsoft Exchange" &_
",CN=Services,CN=Configuration," & strDNSDomain)
strOABVirtDirLink = objBase.msExchOABVirtualDirectoriesLink
If flagFailOver Then
strOABVirtDirLink = Replace(strOABVirtDirLink, strPrimary, strBackup, 1, -1,
vbTextCompare)
Else
40
If flagFailOver Then
Call MountStores(strOrg, strAdminGrp, strMBStore)
Call ChangeServerattributes(strOrg, strAdminGrp, strMBStore)
Call ChangeHostServer(strOrg, strAdminGrp, strMBStore)
Call ChangeOABPath(strOrg)
' Public Mailbox mounting
Call MountStores(strOrg, strAdminGrp, strMBStorePub)
Call ChangeServerattributes(strOrg, strAdminGrp, strMBStorePub)
Call ChangeHostServer(strOrg, strAdminGrp, strMBStorePub)
Call ChangeOABPath(strOrg)
Else
Call MountStores(strOrg, strAdminGrp, strMBStore)
Call ChangeServerattributes(strOrg, strAdminGrp, strMBStore)
Call ChangeHostServer(strOrg, strAdminGrp, strMBStore)
Call ChangeOABPath(strOrg)
' Public Mailbox mounting
Call MountStores(strOrg, strAdminGrp, strMBStorePub)
Call ChangeServerattributes(strOrg, strAdminGrp, strMBStorePub)
Call ChangeHostServer(strOrg, strAdminGrp, strMBStorePub)
Call ChangeOABPath(strOrg)
EXPRESSCLUSTER X for Windows Microsoft Exchange Server 2013
41
End If
Call ErrorCheck("Error while mounting stores.")
WScript.Echo "Mounting of stores completed."
WScript.echo "Done!"
''''''''''''''''''''
WScript.Quit
Configure an email client such as Outlook 2007 SP3 (with November 2012 Cumulative
Update) or higher to test the system.
42
Two logically separate IP protocol networks: one for the Public Network and one for
the Cluster Interconnect.
The Public Network must be a single IP subnet that spans the Primary and Standby
servers to enable transparent redirection of the client connection to a single floating
server IP address.
The Cluster Interconnect is a single IP subnet that spans the Primary and Standby
Servers to simplify system setup.
A proper IP network between client and server machines on the Public Network on
both the Primary and Standby Servers.
2. Verify the Primary server is in active mode with a fully functional target application and
the Standby Server is running in passive mode.
3. Ping both the Primary and Secondary Servers from the test system, and verify the
Standby Server has all the target services in manual and stopped mode.
4. Start the cluster and try accessing the application from the Primary Server, and then
move the cluster to the Standby Server. Verify the availability of the application on the
Standby Server after failover. Deployment is complete.
Note
The first time the cluster is moved to the Standby server, the mailbox database may not mount.
Use the Mount-Database (Example: Mount-Database Mailbox01) in Exchange Management
Shell to mount the database to the Standby server.
43
Start Internet Explorer or any other supported Java enabled Web browser.
Method 1: Type the URL with the IP address of the active physical server; a
colon (:); and then the cluster server port number.
Example: http://10.1.1.1:29003/
Method 2: Type the URL with the IP address of the cluster management
server; a colon (:); and then the cluster management server port number.
Example: http://10.1.1.3:29003/
44
Manual Recovery
3. Turn the machine back on and wait until the boot process is complete.
4. Start Cluster Manager.
5. In the Cluster Manager window, right-click the name of the isolated
server, and then select Recover. The isolated server returns to the cluster.
45
the %machine name% of the machine name of the destination server to copy
files to [Standby Server (Machine 2)].
5. Click the Execute button. In the Confirmation window, click OK.
46
47
Host name
Network
Connection
IP Address
Subnet Mask
Default
Gateway
Preferred
DNS
Server
Primary
Public
Interconnect
10.1.1.1
192.168.1.1
255.255.255.0
255.255.255.0
10.1.1.5
----------
10.1.1.5
-----------
Standby
Public
Interconnect
10.1.1.2
192.168.1.2
255.255.255.0
255.255.255.0
10.1.1.5
----------
10.1.1.5
----------
Test Client
Public
10.1.1.6
255.255.255.0
10.1.1.5
10.1.1.5
OS
Boot Partition:
* Cluster Partition:
Drive Letter: C
Size: 75GB
Drive Letter: W
Boot Partition:
Data Partition:
Drive Letter: C
Size: 75GB
Drive Letter: X
Size: 24MB
Size: 50GB
C: 20GB
(1) 10.1.1.3
(2) 10.1.1.4
Login
Password
Administrator
admin1234
Administrator
admin1234
48