ibm.spectrum_virtualize.ibm_svc_manage_replicationgroup 模块 – 此模块管理 IBM Spectrum Virtualize 系列存储系统上的远程复制一致性组

注意

此模块是 ibm.spectrum_virtualize 集合(版本 2.0.0)的一部分。

如果您使用的是 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install ibm.spectrum_virtualize

要在 playbook 中使用它,请指定:ibm.spectrum_virtualize.ibm_svc_manage_replicationgroup

注意

ibm.spectrum_virtualize 集合已重命名为 ibm.storage_virtualize,并将从 Ansible 12 中删除。如果您使用 ibm.spectrum_virtualize 中的内容,请更新 playbook 和角色中的 FQCN!创建新的 playbook 或角色时,请直接使用 ibm.storage_virtualize 中的内容。

ibm.spectrum_virtualize 1.3.0 中的新增功能

概要

  • 用于管理 'mkrcconsistgrp'、'chrcconsistgrp' 和 'rmrcconsistgrp' 远程复制一致性组命令的 Ansible 接口。

参数

参数

注释

clustername

字符串 / 必需

Spectrum Virtualize 存储系统的主机名或管理 IP。

copytype

字符串

指定远程复制的镜像类型。“metro”表示 MetroMirror,“global”表示 GlobalMirror。

如果未指定,则在创建远程复制 state=present 时,将创建一个 MetroMirror 远程复制。

选择

  • "metro"

  • "global"

cyclingmode

字符串

指定 Global Mirror 对关系的​​行为。

具有“多重”循环模式的活动-活动关系和关系必须始终配置为使用更改卷。

state=presentcopytype=global 时适用。

选择

  • "multi"

  • "none"

cyclingperiod

整数

以秒为单位指定循环周期。

domain

字符串

Spectrum Virtualize 存储系统的域。

当主机名用于参数 clustername 时有效。

force

布尔值

如果用于删除一致性组,则指定您希望系统在删除组之前删除属于该一致性组的任何关系。

如果用于启动一致性组,则指定即使在同步期间导致临时的一致性丢失,您也希望系统处理复制操作。

如果一致性组处于 ConsistentStopped 状态,但未同步或处于空闲状态,则需要此项 - 除非配置了一致性保护。

选择

  • false

  • true

log_path

字符串

调试日志文件的路径。

name

字符串 / 必需

指定新一致性组的名称。

password

字符串

Spectrum Virtualize 存储系统的 REST API 密码。

如果未使用 token 来验证用户,则需要参数 usernamepassword

remotecluster

字符串

指定远程系统的名称。仅在创建一致性组时使用。

state

字符串 / 必需

创建或更新 (present) 删除 (absent) 一致性组。

选择

  • "absent"

  • "present"

token

字符串

在 ibm.spectrum_virtualize 1.5.0 中添加

用于验证 Spectrum Virtualize 存储系统上用户的身份验证令牌。

要生成令牌,请使用 ibm_svc_auth 模块。

username

字符串

Spectrum Virtualize 存储系统的 REST API 用户名。

如果未使用 token 来验证用户,则需要参数 usernamepassword

validate_certs

布尔值

验证证书。

选择

  • false ←(默认)

  • true

说明

注意

  • 此模块支持 check_mode

示例

- name: Define a new rc consistency group
  ibm_svc_manage_replicationgroup:
    clustername: "{{clustername}}"
    domain: "{{domain}}"
    username: "{{username}}"
    password: "{{password}}"
    log_path: /tmp/playbook.debug
    name: rccg4test
    remotecluster: remotecluster
    state: present
- name: Delete rc consistency group
  ibm_svc_manage_replicationgroup:
    clustername: "{{clustername}}"
    domain: "{{domain}}"
    username: "{{username}}"
    password: "{{password}}"
    log_path: /tmp/playbook.debug
    name: rccg4test
    force: true
    state: absent
- name: Update rc consistency group
  ibm_svc_manage_replicationgroup:
    clustername: "{{clustername}}"
    domain: "{{domain}}"
    username: "{{username}}"
    password: "{{password}}"
    log_path: /tmp/playbook.debug
    name: rccg4test
    cyclingperiod: 60
    state: present

作者

  • rohit(@rohitk-github)