您可以使用命令行界面 (CLI) 创建高速镜像、全局镜像或主动/主动关系。
完成以下步骤以创建高速镜像、全局镜像或主动/主动关系:
- 要创建高速镜像关系,请运行 mkrcrelationship 命令。
例如,输入:
mkrcrelationship -master master_volume_id
-aux aux_volume_id -cluster system_id
其中,master_volume_id 是主卷的标识,aux_volume_id 是辅助卷的标识,system_id 是远程集群系统的标识。
- 要创建新的全局镜像关系,请运行带有 -global 参数的 mkrcrelationship 命令。
例如,输入:
mkrcrelationship -master master_volume_id
-aux aux_volume_id -cluster system_id -global
其中,master_volume_id 是主卷的标识,aux_volume_id 是辅助卷的标识,system_id 是远程系统的标识。
- 要创建启用了循环的新关系:
mkrcrelationship -master books_volume -aux books_volume -cluster DR_cluster -global -cyclingmode multi
Note: 通过发出 chrcrelationship-auxchange 或 chrcrelationship-masterchange,向关系添加变更卷。
- 要创建新的主动/主动关系,请运行带有 -activeactive 参数的 mkrcrelationship 命令。
例如,输入以下命令:
mkrcrelationship -master master_volume_id -aux aux_volume_id -cluster system_id -activeactive
其中,master_volume_id 是主卷的标识,aux_volume_id 是辅助卷的标识,system_id 是远程系统的标识。