Configuring Server High Availability (HA) Parent topic

Safe Mobile Workforce enables you to configure High Availability (HA) to ensure the uninterrupted service to the users. Along with the main server (primary server), you can configure another server (secondary server) to act as a backup to the primary server. Whenever the information in the database of the primary server changes, the primary server synchronize the database with the secondary server immediately.
Important
Important
Before performing this procedure, make sure that you have configured at least two Safe Mobile Workforce servers. If you have configured only one server, set up and configure at least one more server to act as a backup to the primary server.

Procedure

  1. Open Terminal on the Safe Mobile Workforce server, and log on with the admin user account.
  2. Do one of the following:
    • To enable high availability, type the following command:
      ha enable <secondary server IP address> <common IP>
      Note
      Note
      Replace <secondary server IP address> with the IP address of the server that you want to configure as a secondary server, and replace <common IP> with a new unoccupied IP address of the same subnet.
      Important
      Important
      Both the primary server and secondary server must exist in the same subnet.
    • To disable high availability, type the following command:
      ha disable
  3. Press Enter.
    The HA on Safe Mobile Workforce is enabled or disabled.
  4. Open Terminal on the Safe Mobile Workforce Secure Access, and log on with the root user account.
  5. Open file /vmi/gateway/configuration.json in a text editor.
  6. Search for the server IP address in the file, such as "server": 10.18.12.1, and change the IP address to the common IP address that you have configured in step 2 of this procedure.
  7. Save changes and close the file.
  8. On the Terminal window on Safe Mobile Workforce Secure Access, type the following command to restart the Secure Access service:
    service vmigateway restart
  9. Press Enter.