For Horizon View and Citrix-based resources, you must configure the failover order of resources in both the primary and secondary data centers to make the appropriate resources available from any data center.

Before you begin

When VMware Identity Manager is deployed in multiple data centers, the same resources are also set up in each data center. Each application or desktop pool in the View Pods or Citrix-based XenFarms is considered as a different resource in the VMware Identity Manager catalog. To prevent duplication of the resource in the catalog, make sure that you enabled Do not sync duplicate applications in the View Pools or Published Apps - Citrix pages in the administration console page.

About this task

You use the hznAdminTool command to create a database table with the failover order for resources in your organization per service instance. The configured failover order is followed when a resource is launched. You run the hznAdminTool failoverConfiguration in both data centers to set up the failover order.

Procedure

  1. Using a ssh client, log in to the VMware Identity Manager appliance as the root user.
  2. To view a list of the server instances, type hznAdminTool serviceInstances.

    A list of the service instances with the ID number assigned displays, as in this example.

    {"id":103,"hostName":"ws4.domain.com","ipaddress":"10.142.28.92"}{"id":154,"hostName":"ws3.domain.com","ipaddress":"10.142.28.91"}{"id":1,"hostName":"ws1.domain.com","ipaddress":"10.143.104.176"}{"id":52,"hostName":"ws2.domain.com","ipaddress":"10.143.104.177"}

  3. For each service instance in your organization, configure the failover order for View and Citrix-based resources.

    Type hznAdminTool failoverConfiguration -configType <configType> -configuration <configuration> -serviceInstanceId <serviceInstanceId> [-orgId <orgId>]

    Option

    Description

    -configType

    Type the resource type being configured for failover. Values are either VIEW or XENAPP.

    -configuration

    Type the failover order. For VIEW configType, type as a comma separated list of the primary View Connector Server host names that are listed in the View Pools page in the administration console. For XENAPP configType, type as a comma separated list of XenFarm names.

    -serviceInstanceId

    Type the ID of the service instance for which the configuration is set. The ID can be found in the list displayed in Step 2, "id":

    -orgId

    (Optional). If left blank, the configuration is set for the default organization.

    For example, hznAdminTool failoverConfiguration -configType VIEW -configuration pod1vcs1.domain.com,pod2vcs1.hs.trcint.com -orgId 1 -serviceInstanceId 1.

    When you type this command for VMware Identity Manager instances in the secondary data center, reverse the order of the View Connection Servers. In this example, the command would be hznAdminTool failoverConfiguration -configType VIEW -configuration pod2vcs1.hs.trcint.com, pod1vcs1.domain.com -orgId 1 -serviceInstanceId 103

Results

The resources failover database table is set up for each data center.

What to do next

To see the existing failover configuration for each of the View and Citrix-based resources, run hznAdminTool failoverConfigurationList -configType <configtype> -<orgId).

The value for <configtype> is either VIEW or XENAPP. The following is an example output of hznAdminTool failoverConfiguraitonList with configType VIEW.

{"idOrganization":1,"serviceInstanceId":52,"configType":"VIEW","configuration":"pod1vcs1.domain.com,pod2vcs1.domain.com"}{"idOrganization":1,"serviceInstanceId":103,"configType":"VIEW","configuration":"pod2vcs1.domain.com,pod1vcs1.domain.com"}{"idOrganization":1,"serviceInstanceId":154,"configType":"VIEW","configuration":"pod2vcs1.domain.com,pod1vcs1.domain.com"}