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