Data Mover 会在安装包中提供 dsa_configfabric 脚本,以使网络结构配置过程更快且更容易。该脚本会生成两个 XML 文件,其中包含源和目标系统网络结构定义。该脚本可执行以下任务:
- 标识在源和目标系统上定义的所有节点和媒体服务器
- 连接到源或目标系统上的每个 TPA 节点
- 从这些节点使用每个媒体服务器上的不同网络接口 ping 每个媒体服务器。在选择接口时,该脚本使用以下标准:
- 如果 bynet 有响应,则该脚本将选择尾号最高的 bynet(例如,如果 bynet1 和 bynet0 都有响应,则选择 bynet1)。
只有当所选接口没有从 DSC 配置中的媒体服务器定义排除时,才会出现这种情况。
- 如果 bynet 不响应,则会显示一个接口选项列表。该脚本可以从该节点连接到的接口显示为绿色,未响应的接口显示为红色。
- 如果先前已为同一系统中的另一个节点配置了某个网络接口,则该脚本将自动选择该网络接口。
例如:假设在同一系统上有两个节点,即 N1 和 N2,需要为目标系统上的媒体服务器 (MS2) 配置这些节点。如果在 MS2 上选择使用网络接口 EthX 连接到 N1,则也会选择 EthX 进行 N2 到 MS2 的连接。只有当 N2 能够与 MS2 上的该接口通信时才会如此。
- 如果 bynet 有响应,则该脚本将选择尾号最高的 bynet(例如,如果 bynet1 和 bynet0 都有响应,则选择 bynet1)。
- 在运行该配置脚本之前,请确保要加入此网络结构的所有接口都位于 DSC 媒体服务器配置中。
- [可选] 如果 DSC 配置中缺少接口,请使用以下两种方法之一:
方法 说明 手动导出、添加接口并重新配置每个媒体服务器 - 导出媒体服务器配置:
dsc export_config -t MEDIA_SERVER -n media_server_name -f media_server_XML_config_filename
- 编辑 media_server_XML_config_filename 并添加缺少的接口。
- 保存更改:
dsc config_media_servers -f media_server_XML_config_filename
重置在 DSC 中注册的所有媒体服务器设置 运行以下命令: dsc config_media_servers -f media_server_XML_config_filename
如果使用硬件升级脚本,将重置使用该媒体服务器的所有 DSC 的设置。请谨慎使用。在硬件重置后,媒体服务器配置应类似于下面的示例。Media Server Name Port Pool Shared Pipes IP Address(es) NetMask(s) --------------------------------------------------------------------------------- server1_ms 15401 100 10.0.***.*** 255.255.254.0 10.25.***.*** 255.255.254.0 10.1.***.*** 255.255.254.0 10.2.***.*** 255.255.254.0 --------------------------------------------------------------------------------- server2_ms 15401 100 10.1.***.*** 255.255.254.0 10.2.***.*** 255.255.254.0 10.0.***.*** 255.255.254.0 10.25.***.*** 255.255.254.0
- 导出媒体服务器配置:
- 运行该脚本以生成源和目标系统的网络结构。通过以下帮助命令输出了解可用脚本参数列表:
dsa_configfabric -s source_TPA -t target_TPA -b source_base_name -c target_base_name -p source_system_root_password -q target_system_root_password -r ping_timeoout -s: Is the hostname for one of the source TPA Nodes were we can connect to from DSC server -t: Is the hostname for one of the target TPA Nodes were we can connect to from DSC server -b: Is the base-name for the source system. This is the name defined before the cop entries (Example: If cop enteries are kiwicop1 and kiwicop2 then the base name is kiwi) -c: Is the base-name for the target system. This is the name defined before the cop entries (Example: If cop enteries are kiwicop1 and kiwicop2 then the base name is kiwi) -p: Is the password for -s option. (optional) -q: Is the password for -t option. (optional) -r: Is the number of seconds we are going to wait before timing out ping command. default is 1 (optional) This script must be executed from the DSC server. DSC should be running.
- 将生成的 DSA 网络结构配置文件添加到 DSC 配置中:dsc config_fabrics -f ./output/xml_generated_file_name.xml