您可以使用 vSphere Replication 8.7 Configuration Import/Export Tool從先前匯出的 XML 檔案匯入複寫組態資料。

必要條件

  • 提供全新 vSphere Replication 安裝,此安裝會登錄至同一個 vCenter Server 執行個體或具有與匯出內容相同的詳細目錄的 vCenter Server 執行個體。

程序

  1. 開啟命令 shell,導覽至 /opt/vmware/vr-impex-tool 目錄所在資料夾,然後執行下列命令。
    java -jar vr-impex-tool-<version>.jar -–importInteractive
  2. (選擇性) 若要透過使用 sample.properties 檔案自動化匯入程序,請改為執行下列命令。
    java -jar vr-impex-tool-<version>.jar --importProperties=sample.properties --path=Path_toexported_XML_file
  3. 輸入 Lookup Service 的主機名稱或 IP 位址。
  4. 輸入連接埠號碼,或按 Enter (如果您使用預設連接埠)。
  5. 接受 SHA 指紋。
  6. 輸入本機 vCenter Server 執行個體的使用者名稱和密碼。
  7. 選取配對的 vSphere Replication 執行個體。
  8. 輸入遠端 vCenter Server 執行個體的使用者名稱和密碼。

結果

vSphere Replication 8.7 Configuration Import/Export Tool使用匯出的 XML 檔案建立複寫。

範例

使用內容檔案匯入組態的範例
java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --format --importProperties=/opt/vmware/vr-impex-tool/sample.properties --path=/opt/vmware/vr-impex-tool/sample.xml
***Copyright (c) 2018-2019 VMware, Inc. All rights reserved.***
Initiating using properties file.
Establishing connection...
Collecting data...
2019-08-23 02:13:10,246 INFO - Importing hms data.
Reading file...
Reading file done.
2019-08-23 02:13:10,636 INFO - Import hms configurables started.
2019-08-23 02:13:11,478 DEBUG - Getting profiles for server with guid 'd83b4ce0-4530-4a45-b493-5f137598d3f2'.
2019-08-23 02:13:11,510 DEBUG - Getting profiles for server with guid '1c0f9490-3ac3-4546-af4a-10ab4ee634c7'.
2019-08-23 02:13:11,525 DEBUG - Starting import of replications.
2019-08-23 02:13:11,619 DEBUG - Importing Replication Group for server with guid 'd83b4ce0-4530-4a45-b493-5f137598d3f2' is complete.
2019-08-23 02:13:13,834 DEBUG - Importing Replication Group for server with guid '1c0f9490-3ac3-4546-af4a-10ab4ee634c7' is complete.
2019-08-23 02:13:13,834 INFO - Import VR configurables ended. Imported : 2 .
Import ended successfully.