netapp_eseries.santricity.netapp_e_amg_sync 模块 – NetApp E-Series 在异步镜像组上执行同步操作。

注意

此模块是 netapp_eseries.santricity 集合(版本 1.4.1)的一部分。

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

要安装它,请使用:ansible-galaxy collection install netapp_eseries.santricity

要在 playbook 中使用它,请指定:netapp_eseries.santricity.netapp_e_amg_sync

netapp_eseries.santricity 2.2.0 中的新增功能

概要

  • 允许初始化、暂停和恢复 NetApp E 系列存储阵列的异步镜像组的同步。

参数

参数

注释

api_password

字符串 / 必需

用于使用 SANtricity WebServices Proxy 或嵌入式 REST API 进行身份验证的密码。

api_url

字符串 / 必需

SANtricity WebServices Proxy 或嵌入式 REST API 的 URL。

api_username

字符串 / 必需

用于使用 SANtricity WebServices Proxy 或嵌入式 REST API 进行身份验证的用户名。

delete_recovery_point

布尔值

指示是否可以在辅助设备上删除故障点以实现同步。

如果为 true,并且任何成员卷的未同步数据量超过辅助设备上的 CoW 存储库容量,则将删除最后一个故障点,并且同步将继续。

如果为 false,则如果未同步数据量超过辅助设备上的 CoW 存储库容量,则同步将暂停,并且将保留故障点。

注意:这仅对新启动的同步有影响。

选项

  • false ← (默认)

  • true

name

字符串 / 必需

您要定位的异步镜像组的名称

ssid

字符串 / 必需

包含您要定位的 AMG 的存储阵列的 ID

state

字符串 / 必需

您要采取的同步操作。

如果 running,则如果没有活动同步,它将开始同步,或者将恢复已暂停的同步。 如果已在进行同步,它将返回 OK 状态。

如果 suspended,它将暂停任何正在进行的同步操作,但如果没有活动同步或同步已暂停,则返回 OK

选项

  • "running"

  • "suspended"

validate_certs

布尔值

是否应验证 https 证书?

选项

  • false

  • true ← (默认)

示例

- name: start AMG async
  netapp_e_amg_sync:
    name: "{{ amg_sync_name }}"
    state: running
    ssid: "{{ ssid }}"
    api_url: "{{ netapp_api_url }}"
    api_username: "{{ netapp_api_username }}"
    api_password: "{{ netapp_api_password }}"

返回值

常见的返回值记录在此处,以下是此模块特有的字段

描述

json

字符串

AMG 的对象属性。

已返回: 成功

示例: "{'changed': False, 'connectionType': 'fc', 'groupRef': '3700000060080E5000299C24000006EF57ACAC70', 'groupState': 'optimal', 'id': '3700000060080E5000299C24000006EF57ACAC70', 'label': 'made_with_ansible', 'localRole': 'primary', 'mirrorChannelRemoteTarget': '9000000060080E5000299C24005B06E557AC7EEC', 'orphanGroup': False, 'recoveryPointAgeAlertThresholdMinutes': 20, 'remoteRole': 'secondary', 'remoteTarget': {'nodeName': {'ioInterfaceType': 'fc', 'iscsiNodeName': None, 'remoteNodeWWN': '20040080E5299F1C'}, 'remoteRef': '9000000060080E5000299C24005B06E557AC7EEC', 'scsiinitiatorTargetBaseProperties': {'ioInterfaceType': 'fc', 'iscsiinitiatorTargetBaseParameters': None}}, 'remoteTargetId': 'ansible2', 'remoteTargetName': 'Ansible2', 'remoteTargetWwn': '60080E5000299F880000000056A25D56', 'repositoryUtilizationWarnThreshold': 80, 'roleChangeProgress': 'none', 'syncActivity': 'idle', 'syncCompletionTimeAlertThresholdMinutes': 10, 'syncIntervalMinutes': 10, 'worldWideName': '60080E5000299C24000006EF57ACAC70'}"

作者

  • Kevin Hulquest (@hulquest)

  • Vu Tran (@VuTran007)