對於 Horizon View 和 Citrix 型資源,您必須在主要和次要資料中心設定資源的容錯移轉順序,以便從任何資料中心都能提供適當的資源。

執行這項作業的原因和時機

請使用 hznAdminTool 命令來建立資料庫表格,內含根據服務執行個體,您組織中資源的容錯移轉順序。當資源啟動時,系統會遵守設定的容錯移轉順序。請在兩個資料中心中都執行 hznAdminTool failoverConfiguration,以設定容錯移轉順序。

先決條件

在多個資料中心部署 VMware Identity Manager 時,系統也會在每個資料中心設定相同的資源。View 網繭或 Citrix 型 XenFarm 中的每個應用程式或桌面平台集區,在 VMware Identity Manager 目錄中會被視為不同的資源。若要防止目錄中出現重複的資源,請務必在管理主控台頁面的 [View 集區] 或 [已發佈的應用程式 - Citrix] 頁面中啟用不要同步重複的應用程式

程序

  1. 使用 ssh 用戶端,以根使用者身分登入 VMware Identity Manager 應用裝置。
  2. 若要檢視伺服器執行個體的清單,請輸入 hznAdminTool serviceInstances

    隨即顯示服務執行個體清單,以及所指派的識別碼,如以下範例所示。

    {"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. 對於您的組織中的每個服務執行個體,設定 View 和 Citrix 型資源的容錯移轉順序。

    輸入 hznAdminTool failoverConfiguration -configType <configType> -configuration <configuration> -serviceInstanceId <serviceInstanceId> [-orgId <orgId>]

    選項

    說明

    -configType

    輸入要為其設定容錯移轉的資源類型。值可以是 VIEWXENAPP

    -configuration

    輸入容錯移轉順序。對於 VIEW configType,請輸入管理主控台的 [View 集區] 頁面中所列之主要 View 連接器伺服器主機名稱的逗號分隔清單。對於 XENAPP configType,請輸入 XenFarm 名稱的逗號分隔清單。

    -serviceInstanceId

    輸入要為其設定組態之服務執行個體的識別碼。您可在步驟 2 所顯示清單的 "id": 中找到識別碼。

    -orgId

    (選用)。如果保留空白,系統會為預設組織設定組態。

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

    為次要資料中心的 VMware Identity Manager 執行個體輸入此命令時,請將 View 連線伺服器的順序顛倒。在此範例中,命令將是 hznAdminTool failoverConfiguration -configType VIEW -configuration pod2vcs1.hs.trcint.com, pod1vcs1.domain.com -orgId 1 -serviceInstanceId 103

結果

現在已為每個資料中心設定好資源容錯移轉資料庫表格。

下一步

若想查看每個 View 和 Citrix 型資源的現有容錯移轉組態,請執行 hznAdminTool failoverConfigurationList -configType <configtype> -<orgId)

<configtype> 的值是 VIEW 或 XENAPP。以下是使用 configType VIEW 的 hznAdminTool failoverConfiguraitonList 輸出範例。

{"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"}