Always On
The following procedures enable you to configure Always On in MSSQL for Control-M. Always On enables high availability and disaster recovery for an external MSSQL database and is part of a Windows failover cluster. If the node (server) in the cluster that is running the database fails, Always On fails over to a different node to prevent data loss and server interruption.
Configuring Control-M/EM Always On
This procedure describes how to configure Control-M/EM with MSSQL Always On data replication.
The DBUbuild and Cold restore utilities are not supported in Always On mode.
Begin
-
Install or upgrade Control-M/EM on a host using the primary host of the Always On database cluster, as described in Installing Control-M/EM on Windows.
-
Shut down Control-M/EM.
-
Send a request to the site DBA to load the standalone database into the Availability Group.
The database is now accessed by the global listener.
-
Send a request to the site DBA to grant VIEW SERVER STATE permissions the new login.
-
Verify that the site DBA sends you the Always On listener name and port number.
-
Navigate to the following directory:
<EM_Home>\bin\DBUtils\DBUData\scripts
-
Configure Always On by running the following commands on the primary and secondary hosts:
-
always_on_config set mode=y
-
always_on_config set server=<AlwaysOn listener name{,port}>
-
-
Run the em-configure-db utility, as described in Control-M/EM Database Hostname or Parameter Changes.
Control-M/EM is now working in Always On mode.
-
Verify Always On connectivity, by running the following command:
<EM_Home>\bin\DBUData\scripts\always_on_config list pass=<Control-M/EM_Password>
Configuring Control-M/Server with MSSQL Always On
This procedure describes how to configure Control-M/Server with MSSQL Always On data replication.
The DBUbuild and Cold restore utilities are not supported in Always On mode.
Begin
-
Install or upgrade Control-M/Server on a host using the primary host of the Always On database cluster, as described in Installing Control-M/Server on Windows.
-
Shut down Control-M/Server.
-
Send a request to the site DBA to load the standalone database into the Availability Group.
The database is now accessed by the global listener.
-
Send a request to the site DBA to grant VIEW SERVER STATE permissions the new login.
-
Verify that the site DBA sends you the Always On listener name and port number.
-
Run the following commands on the primary and secondary hosts:
-
always_on_config set mode=Y
-
always_on_config set server=<listenername{,port}>
The password for the database login remains the same.
-
-
Start up Control-M/Server.
Control-M/Server is now working in Always On mode.
-
Verify Always On connectivity, by running the following command:
<Control-M/Server_Home>\bin\DBUData\scriptsalways_on_config list pass=<Control-M/Server_Password>
Configuring an Always On Failover Cluster Instance
This procedure describes how to configure an Always On failover cluster instance.
This procedure must be performed by a database administrator. Your database administrator might need to modify the procedure to adapt it to your environment.
BMC does not assume responsibility for this task.
Begin
-
Grant VIEW SERVER STATE permission to all the relevant logins.
-
Change the Recovery Model state of all relevant databases to FULL.
-
Perform a full backup of all relevant databases.
-
Create SQL Server logins on the read-only replicas. For more information, see Transfer Logins and Passwords between Instances of SQL Server in the Microsoft SQL Documentation.
-
Create one or more availability groups.
You can create a single availability group that contains a Control-M/EM and Control-M/Server or multiple availability groups, where each availability group contains a single component.
-
Create an availability group listener and configure it with a DHCP/IP or fixed IP address.
BMC recommends a fixed IP address.
-
Perform a failover test to the secondary host, and then test the connectivity.
-
Fall back to the original primary host, and then test the connectivity.
