ibm.storage_virtualize.ibm_svc_manage_consistgrp_flashcopy 模块 – 此模块在 IBM Storage Virtualize 系列系统上管理 FlashCopy 一致性组
注意
此模块是 ibm.storage_virtualize 集合(版本 2.5.0)的一部分。
如果您使用的是 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install ibm.storage_virtualize
。
要在剧本中使用它,请指定:ibm.storage_virtualize.ibm_svc_manage_consistgrp_flashcopy
。
ibm.storage_virtualize 1.4.0 中的新增功能
概要
Ansible 接口,用于管理 ‘mkfcconsistgrp’ 和 ‘rmfcconsistgrp’ 卷命令。
参数
参数 |
注释 |
---|---|
Storage Virtualize 系统的的主机名或管理 IP。 |
|
Storage Virtualize 系统的域。 当主机名用于参数 clustername 时有效。 |
|
如果指定为 True,则在删除 FlashCopy 一致性组时删除所有关联的 FlashCopy 映射。 当 state=absent 时有效,用于删除 FlashCopy 一致性组。 选择
|
|
调试日志文件的路径。 |
|
指定 FlashCopy 一致性组的名称。 |
|
如果指定为 True,则从所有关联的所有权组中删除一致性组。 参数 noownershipgroup 和 ownershipgroup 是互斥的。 当 state=present 时有效,用于修改 FlashCopy 一致性组。 选择
|
|
指定所有权组的名称。 参数 ownershipgroup 和 noownershipgroup 是互斥的。 当 state=present 时有效,用于创建或修改 FlashCopy 一致性组。 |
|
Storage Virtualize 系统的 REST API 密码。 如果未使用 token 验证用户身份,则需要参数 username 和 password。 |
|
创建 ( 选择
|
|
用于验证 Storage Virtualize 系统上用户的身份验证令牌。 要生成令牌,请使用 ibm.storage_virtualize.ibm_svc_auth 模块。 |
|
Storage Virtualize 系统的 REST API 用户名。 如果未使用 token 验证用户身份,则需要参数 username 和 password。 |
|
验证证书。 选择
|
注释
注意
此模块支持
check_mode
。
示例
- name: Create a FlashCopy consistency group
ibm.storage_virtualize.ibm_svc_manage_consistgrp_flashcopy:
clustername: "{{clustername}}"
domain: "{{domain}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/playbook.debug
name: consistgroup-name
state: present
ownershipgroup: ownershipgroup-name
- name: Delete a FlashCopy consistency group
ibm.storage_virtualize.ibm_svc_manage_consistgrp_flashcopy:
clustername: "{{clustername}}"
domain: "{{domain}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/playbook.debug
name: consistgroup-name
state: absent
force: true