使用 CLI 建立 Metro MirrorGlobal Mirror 或主動-主動關係

關於這項作業

程序

  1. 如果要建立 Metro Mirror 關係,請執行 mkrcrelationship 指令。 例如,輸入:
    mkrcrelationship -master master_volume_id 
    -aux aux_volume_id -cluster system_id

    其中,master_volume_id 是主要磁區 ID,aux_volume_id 是輔助磁區 ID,system_id 是遠端叢集系統 ID。

  2. 如果要建立新的 Global Mirror 關係,請執行帶有 -global 參數的 mkrcrelationship 指令。 例如,輸入:
    mkrcrelationship -master master_volume_id 
    -aux aux_volume_id -cluster system_id -global

    其中,master_volume_id 是主要磁區 ID,aux_volume_id 是輔助磁區 ID,system_id 是遠端系統 ID。

  3. 如果要建立啟用循環的新關係,請輸入:
    mkrcrelationship -master books_volume -aux books_volume -cluster DR_cluster -global -cyclingmode multi
    註: 發出 chrcrelationship -auxchangechrcrelationship -masterchange,將變更磁區新增至關係。
  4. 如果要建立新的主動-主動關係,請執行帶有 -activeactive 參數的 mkrcrelationship 指令。 例如,輸入下列指令:
    mkrcrelationship -master master_volume_id -aux aux_volume_id -cluster system_id -activeactive

    其中,master_volume_id 是主要磁區 ID,aux_volume_id 是輔助磁區 ID,system_id 是遠端系統 ID。