ibm.spectrum_virtualize.ibm_sv_manage_fc_partnership 模块 – 此模块配置和管理 IBM Spectrum Virtualize 系列存储系统上的光纤通道 (FC) 伙伴关系
注意
此模块是 ibm.spectrum_virtualize 集合 (版本 2.0.0) 的一部分。
如果您使用的是 ansible
包,则可能已安装此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install ibm.spectrum_virtualize
。
要在剧本中使用它,请指定:ibm.spectrum_virtualize.ibm_sv_manage_fc_partnership
。
注意
ibm.spectrum_virtualize 集合已重命名为 ibm.storage_virtualize,并将从 Ansible 12 中移除。如果您使用 ibm.spectrum_virtualize 中的内容,请更新剧本和角色中的 FQCN!创建新的剧本或角色时,请直接使用 ibm.storage_virtualize 中的内容。
ibm.spectrum_virtualize 1.12.0 中的新增功能
概要
管理 mkfcpartnership、chpartnership 和 rmpartnership 命令的 Ansible 接口。
参数
参数 |
注释 |
---|---|
指定可用于后台复制操作的聚合链路带宽的最大百分比。值必须在 0-100 范围内。默认值为 50。 在 state=present 时有效。 |
|
Spectrum Virtualize 存储系统的 hostname 或管理 IP。 |
|
Spectrum Virtualize 存储系统的域名。 当参数 clustername 使用 hostname 时有效。 |
|
指定两个集群系统之间的远程复制链路的聚合带宽(以兆位每秒 (Mbps) 为单位)。值必须在 1-100000 范围内。 在 state=present 时有效。 |
|
调试日志文件的路径。 |
|
Spectrum Virtualize 存储系统的 REST API 密码。 如果不使用 token 认证用户,则需要 username 和 password 参数。 |
|
指定是否在伙伴关系中使用基于策略的复制。 在 state=present 时有效,用于更新伙伴关系。 选项
|
|
远程 Spectrum Virtualize 存储系统的 hostname 或管理 IP。 |
|
远程 Spectrum Virtualize 存储系统的域名。 当参数 remote_clustername 使用 hostname 时有效。 |
|
远程 Spectrum Virtualize 存储系统的 REST API 密码。 如果不使用 remote_token 认证用户,则需要 remote_username 和 remote_password 参数。 |
|
指定伙伴系统 ID 或名称。 |
|
用于验证远程 Spectrum Virtualize 存储系统上用户的身份验证令牌。 要生成令牌,请使用 ibm.spectrum_virtualize.ibm_svc_auth 模块。 |
|
远程 Spectrum Virtualize 存储系统的 REST API 用户名。 如果不使用 remote_token 认证用户,则需要 remote_username 和 remote_password 参数。 |
|
验证远程 Spectrum Virtualize 存储系统的证书。 选项
|
|
指定启动伙伴关系。 在 state=present 时有效。 选项
|
|
创建或更新 ( 选项
|
|
指定停止伙伴关系。 在 state=present 时有效,用于更新伙伴关系。 选项
|
|
用于验证 Spectrum Virtualize 存储系统上用户的身份验证令牌。 要生成令牌,请使用 ibm.spectrum_virtualize.ibm_svc_auth 模块。 |
|
Spectrum Virtualize 存储系统的 REST API 用户名。 如果不使用 token 认证用户,则需要 username 和 password 参数。 |
|
验证本地 Spectrum Virtualize 存储系统的证书。 选项
|
备注
注意
此模块支持
check_mode
。
示例
- name: Create an FC partnership and start the partnership
ibm.spectrum_virtualize.ibm_sv_manage_fc_partnership:
clustername: "{{clustername}}"
username: "{{username}}"
password: "{{password}}"
remote_clustername: "{{remote_clustername}}"
remote_username: "{{remote_username}}"
remote_password: "{{remote_password}}"
remote_system: "{{remote_system}}"
linkbandwidthmbits: 50
backgroundcopyrate: 50
start: True
state: present
- name: Update an FC partnership and stop the partnership
ibm.spectrum_virtualize.ibm_sv_manage_fc_partnership:
clustername: "{{clustername}}"
username: "{{username}}"
password: "{{password}}"
remote_clustername: "{{remote_clustername}}"
remote_username: "{{remote_username}}"
remote_password: "{{remote_password}}"
remote_system: "{{remote_system}}"
linkbandwidthmbits: 40
backgroundcopyrate: 20
stop: True
state: present
- name: Delete the FC partnership
ibm.spectrum_virtualize.ibm_sv_manage_fc_partnership:
clustername: "{{cluster}}"
username: "{{username}}"
password: "{{password}}"
remote_clustername: "{{remote_clustername}}"
remote_username: "{{remote_username}}"
remote_password: "{{remote_password}}"
remote_system: "{{remote_system}}"
state: absent