以下是以确保使用多个复制接口的方式创建复制会话的步骤。
- 在源和目标上创建具有相同设置的两个 LUN(尚不配置复制)。
- 创建要使用的复制接口。
步骤 1 和步骤 2 使用 Unisphere UI 完成。
- 在目标端将 replDest 标记设置为 yes 。
以下是命令语法:
uemcli -u Local/admin -p Password123456789 /stor/prov/luns/lun -id sv_2 set -replDest yes
- 使用 uemcli 创建复制会话。
下面是一个工作语法示例。这是在 VSA 上完成的。在硬件系统上,指定 SPB 的复制接口:
uemcli -u Local/admin -p Password123456789 /prot/rep/session create -name REP1 -srcRes sv_2 -srcSPAInterface if_6 -dstType remote -dstSys RS_1 -dstSPAInterface if_5 -dstRes sv_2 -syncType auto -rpo 60m
通过为相关项目类型启用
CLI ID 列,可在 Unisphere 中找到命令输入所需的标识符。
创建所有所需的复制接口后,使用以下 uemcli 命令验证会话是否使用正确的第 3 层接口:
$ uemcli /prot/rep/session show -filter "Name,ID,Source resource,Source SP-A interface,Source SP-B interface,Destination resource,Destination SP-A interface,Destination SP-B interface"
Storage system address: 127.0.0.1
Storage system port: 443
HTTPS connection
1: Name = REP1
ID = 42949672969_VIRT2213XBSFIV_0000_42949672967_VIRT1615KVBVLJ_0000
Source resource = sv_1
Source SP-A interface = 5.6.7.90
Source SP-B interface = N/A
Destination resource = sv_2
Destination SP-A interface = 5.6.7.94
Destination SP-B interface = N/A
2: Name = REP2
ID = 42949672970_VIRT2213XBSFIV_0000_42949672974_VIRT1615KVBVLJ_0000
Source resource = sv_2
Source SP-A interface = 5.6.7.91
Source SP-B interface = N/A
Destination resource = sv_3
Destination SP-A interface = 5.6.7.95
Destination SP-B interface = N/A
3: Name = REP3
ID = 42949672971_VIRT2213XBSFIV_0000_42949672975_VIRT1615KVBVLJ_0000
Source resource = sv_3
Source SP-A interface = 5.6.7.92
Source SP-B interface = N/A
Destination resource = sv_4
Destination SP-A interface = 5.6.7.96
Destination SP-B interface = N/A
4: Name = REP4
ID = 42949672972_VIRT2213XBSFIV_0000_42949672976_VIRT1615KVBVLJ_0000
Source resource = sv_4
Source SP-A interface = 5.6.7.93
Source SP-B interface = N/A
Destination resource = sv_5
Destination SP-A interface = 5.6.7.97
Destination SP-B interface = N/A
如果您使用 LACP 进行异步复制,还可将
xmit_hash_policy 调整为第 3+4 层(策略 1),以允许系统跨不同接口传输不同 IP 的流量。