Creating the EDM Advanced Availability Group on Avaya Control Manager SQL Server

Last Updated : Aug 14, 2023 |

About this task

Use this procedure to create the EDM Advanced Availability Group on Avaya Control Manager SQL Server.

Before you begin

Perform steps 1 through 4 from Checklist for the co-resident deployment of Avaya Control Manager and EDM before you perform this procedure.

Procedure

  1. Log in to the primary Avaya Control Manager SQL Server.
  2. Click Start > Microsoft SQL Server > Open SQL Server Management Studio.
  3. In the Object Explorer pane, click Connect > Database Engine.

    SQL Server Management Studio displays the Connect to Server dialog box.

  4. In the Server name field, select the local instance of SQL Server.
  5. In the Authentication field, select SQL Server Authentication.
  6. In the Login and Password fields, enter the system administrator credentials.

    The system administrator is usually the default sa user created during SQL Server installation.

  7. Click Connect.
  8. In the Object Explorer pane, click Databases > <EDM Database>.
  9. Right-click the EDM database and click Tasks > Back Up.

    SQL Server Management Studio displays the Back Up Database dialog box.

  10. In the navigation pane, click General.
  11. In the Backup type field, select Full.
  12. In the Destination area, click Add.
  13. In the Select Backup Destination dialog box, select the path to the backup folder location, specify the backup file name with the .bak extension, and click OK.

    Ensure that the SQLService User login (services.msc) has full permissions on the backup folder.

  14. To provide full permissions to the SQLService User login, do the following:
    1. Go to the backup folder location.
    2. Right-click the backup folder and click Properties.
    3. On the Security tab, select the SQLService User login and click Edit.
    4. In the Permissions area, select the Full control check box.
    5. Click OK.
  15. Click OK.
  16. In the Object Explorer pane, click Always On High Availability.
  17. Right-click Availability Groups and click New Availability Group Wizard.

    SQL Server Management Studio displays the New Availability Group dialog box.

  18. In the navigation pane, click Specify Options.
  19. In the Availability group name field, enter a name for the Context Store availability group.
  20. In the Cluster type field, select Windows Server Failover Cluster.
  21. Select the Database Level Health Detection check box.
  22. Select the Per Database DTC Support check box.
  23. Click Next.
  24. In the Select user databases for the availability group field, select the EDM database.
  25. Click Next.
  26. Click Add Replica, specify the other SQL Server as the secondary replica and connect to the database engine of the other SQL Server.

    To connect to the database engine, use SQL Server Authentication and System Administrator login credentials.

  27. Do the following for each replica:
    1. Select the Automatic Failover check box.
    2. Select the Synchronous Commit check box.
    3. Set the Readable Secondary field to No.
  28. On the Backup Preferences tab, select Prefer Secondary.
  29. On the Listener tab, select Create an Availability Group Listener and do the following:
    1. In the Listener DNS Name field, enter the full FQDN of the listener that you use to access AAG from Context Store.
    1. Leave the Port field as blank.
  30. Click Next.
  31. In the Select your data synchronization preference field, select Automatic seeding.

    It creates the EDM database on the secondary SQL Server.

    While creating the Availability Group for EDM, you might get an error message asking you to check the disk configuration. To resolve the error, ensure that the locations for EDM data and log files on the primary replica match the drive letters for the EDM data and log files locations on the secondary replica.

    The time taken to replicate Context Store EDM data from the primary to secondary SQL Server is approximately 1 minute/GB.

  32. Click Next.
  33. Validate the AAG and click Next.
  34. Check the summary and click Finish.
  35. To test a manual failover of the Availability Group, do the following:
    1. On the primary or secondary SQL Server, click Always On High Availability > Availability Groups.
    2. Right-click the EDM Availability Group and click Failover.