hpe.nimble.hpe_nimble_volume_collection – Manage the HPE Nimble Storage volume collections

Note

This plugin is part of the hpe.nimble collection (version 1.1.3).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install hpe.nimble.

To use it in a playbook, specify: hpe.nimble.hpe_nimble_volume_collection.

New in version 1.0.0: of hpe.nimble

Synopsis

  • Manage the volume collections on an HPE Nimble Storage group.

Requirements

The below requirements are needed on the host that executes this module.

  • Ansible 2.9 or later
  • Python 3.6 or later
  • HPE Nimble Storage SDK for Python
  • HPE Nimble Storage arrays running NimbleOS 5.0 or later

Parameters

Parameter Choices/Defaults Comments
abort_handover
boolean
    Choices:
  • no
  • yes
Abort in-progress handover. If for some reason a previously invoked handover request is unable to complete, this action can be used to cancel it. This operation is not supported for synchronous replication volume collections.
agent_hostname
string
Generic backup agent hostname.
agent_password
string
Generic backup agent password.
agent_username
string
Generic backup agent username.
app_cluster
string
If the application is running within a Windows cluster environment, this is the cluster name.
app_id
string
    Choices:
  • inval
  • exchange
  • exchange_dag
  • hyperv
  • sql2005
  • sql2008
  • sql2012
  • sql2014
  • sql2016
  • sql2017
Application ID running on the server.
app_server
string
Application server hostname.
app_service
string
If the application is running within a windows cluster environment then this is the instance name of the service running within the cluster environment.
app_sync
string
    Choices:
  • none
  • vss
  • vmware
  • generic
Application synchronization.
change_name
string
Change name of the existing volume collection.
demote
boolean
    Choices:
  • no
  • yes
Release ownership of the specified volume collection. The volumes associated with the volume collection will be set to offline and a snapshot will be created, then full control over the volume collection will be transferred to the new owner. This option can be used following a promote to revert the volume collection back to its prior configured state. This operation does not alter the configuration on the new owner itself, but does require the new owner to be running in order to obtain its identity information. This operation is not supported for synchronous replication volume collections.
description
string
Text description of volume collection.
handover
boolean
    Choices:
  • no
  • yes
Gracefully transfer ownership of the specified volume collection. This action can be used to pass control of the volume collection to the downstream replication partner. Ownership and full control over the volume collection will be given to the downstream replication partner. The volumes associated with the volume collection will be set to offline prior to the final snapshot being taken and replicated, thus ensuring full data synchronization as part of the transfer. By default, the new owner will automatically begin replicating the volume collection back to this node when the handover completes.
host
string / required
HPE Nimble Storage IP address.
invoke_on_upstream_partner
boolean
    Choices:
  • no
  • yes
Invoke handover request on upstream partner. This operation is not supported for synchronous replication volume collections.
is_standalone_volcoll
boolean
    Choices:
  • no
  • yes
Indicates whether this is a standalone volume collection.
metadata
dictionary
User defined key-value pairs that augment a volume collection attributes. List of key-value pairs. Keys must be unique and non-empty. When creating an object, values must be non-empty. When updating an object, an empty value causes the corresponding key to be removed.
name
string / required
Name of the volume collection.
no_reverse
boolean
    Choices:
  • no
  • yes
Do not automatically reverse direction of replication. Using this argument will prevent the new owner from automatically replicating the volume collection to this node when the handover completes.
override_upstream_down
boolean
    Choices:
  • no
  • yes
Allow the handover request to proceed even if upstream array is down. The default behavior is to return an error when upstream is down. This option is applicable for synchronous replication only.
password
string / required
HPE Nimble Storage password.
promote
boolean
    Choices:
  • no
  • yes
Take ownership of the specified volume collection. The volumes associated with the volume collection will be set to online and be available for reading and writing. Replication will be disabled on the affected schedules and must be re-configured if desired. Snapshot retention for the affected schedules will be set to the greater of the current local or replica retention values. This operation is not supported for synchronous replication volume collections.
prot_template
string
Name of the protection template whose attributes will be used to create this volume collection. This attribute is only used for input when creating a volume collection and is not outputted.
replication_partner
string
Name of the new volume collection owner.
replication_type
string
    Choices:
  • periodic_snapshot
  • synchronous
Type of replication configured for the volume collection.
state
string / required
    Choices:
  • present
  • absent
  • create
The volume collection operations.
username
string / required
HPE Nimble Storage user name.
validate
boolean
    Choices:
  • no
  • yes
Validate a volume collection with either Microsoft VSS or VMware application synchronization.
vcenter_hostname
string
VMware vCenter hostname.
vcenter_password
string
Application VMware vCenter password. A password with few constraints.
vcenter_username
string
Application VMware vCenter username. String of up to 80 alphanumeric characters, beginning with a letter. It can include ampersand (@), backslash (\), dash (-), period (.), and underscore (_).

Notes

Note

  • This module does not support check_mode.

Examples

# if state is create , then create a volcoll if not present. Fails if already present.
# if state is present, then create a volcoll if not present. Succeed if it already exists.
- name: Create volume collection if not present
  hpe.nimble.hpe_nimble_volume_collection:
    host: "{{ host }}"
    username: "{{ username }}"
    password: "{{ password }}"
    name: "{{ name }}"
    description: "{{ description | default(None)}}"
    state: "{{ state | default('present') }}"

- name: Delete volume collection
  hpe.nimble.hpe_nimble_volume_collection:
    host: "{{ host }}"
    username: "{{ username }}"
    password: "{{ password }}"
    name: "{{ name }}"
    state: absent

- name: Promote volume collection
  hpe.nimble.hpe_nimble_volume_collection:
    host: "{{ host }}"
    username: "{{ username }}"
    password: "{{ password }}"
    name: "{{ name }}"
    state: present
    promote: True

- name: Demote volume collection
  hpe.nimble.hpe_nimble_volume_collection:
    host: "{{ host }}"
    username: "{{ username }}"
    password: "{{ password }}"
    name: "{{ name }}"
    state: present
    demote: True

- name: Handover volume collection
  hpe.nimble.hpe_nimble_volume_collection:
    host: "{{ host }}"
    username: "{{ username }}"
    password: "{{ password }}"
    name: "{{ name }}"
    state: present
    handover: True

- name: Abort handover volume collection
  hpe.nimble.hpe_nimble_volume_collection:
    host: "{{ host }}"
    username: "{{ username }}"
    password: "{{ password }}"
    name: "{{ name }}"
    state: present
    abort_handover: True

- name: Validate volume collection
  hpe.nimble.hpe_nimble_volume_collection:
    host: "{{ host }}"
    username: "{{ username }}"
    password: "{{ password }}"
    name: "{{ name }}"
    state: present
    validate: True

Authors

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/hpe/nimble/hpe_nimble_volume_collection_module.html