hitachivantara.vspone_block.sds_block.hv_sds_block_journal module – Create and update Journals from storage system
Note
This module is part of the hitachivantara.vspone_block collection (version 4.6.1).
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 hitachivantara.vspone_block.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: hitachivantara.vspone_block.sds_block.hv_sds_block_journal.
New in hitachivantara.vspone_block 4.6.0
Synopsis
Create and update Journals from storage system.
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/sds_block_direct/sds_block_journal.yml
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9
Parameters
Parameter |
Comments |
|---|---|
Information required to establish a connection to the storage system. |
|
IP address or hostname of the storage system. |
|
Type of connection to the storage system. Choices:
|
|
Password for authentication. This is a required field. |
|
Username for authentication. This is a required field. |
|
Specification for the journal to be added to or updated in storage. |
|
Monitoring time for data overflow (unit in seconds). |
|
Specifies whether to enable the cache mode setting. Choices:
|
|
Specifies whether to restrict update I/O inflow to a journal volume (by delaying response to host I/Os). Choices:
|
|
The ID of the journal. |
|
Mirror unit configuration for the journal. |
|
Copy pace setting for the mirror unit. Choices:
|
|
Data transfer speed in bytes per second. Choices:
|
|
Mirror unit number. |
|
Journal number to be created or updated. |
|
A list of IDs of the volumes to be added to a journal. |
|
The ID of the operation-target virtual private storage (VPS). |
|
The name of the operation-target virtual private storage (VPS). |
|
The level of the journal task. Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Creates a journal and adds a journal volume to the journal
hitachivantara.vspone_block.sds_block.hv_sds_block_journal:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
state: present
spec:
number: 3
volume_ids:
- "537be416-6d0d-4da6-98cd-fccb76bb3451"
data_overflow_watch_in_sec: 60
enable_inflow_control: false
enable_cache_mode: false
vps_id: "system"
- name: Update a existing journal
hitachivantara.vspone_block.sds_block.hv_sds_block_journal:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
state: present
spec:
id: ""
number: 3
data_overflow_watch_in_sec: 150
enable_inflow_control: false
enable_cache_mode: true
vps_id: "system"
vps_name: "system"
mirror_unit:
number: 0
copy_pace: "M"
data_transfer_speed_bps: "3M"
- name: Get journal info by ID
hitachivantara.vspone_block.sds_block.hv_sds_block_journal:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
state: present
spec:
id: "id-of-journal"
number: 3
- name: Delete a journal
hitachivantara.vspone_block.sds_block.hv_sds_block_journal:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
state: absent
spec:
id: "id-of-journal"
number: 3
- name: Expand add volume to a journal
hitachivantara.vspone_block.sds_block.hv_sds_block_journal:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
state: expand_journal
spec:
id: "id-of-journal"
number: 3
volume_ids:
- "ad58c370-7a55-4bd5-91ce-70ed71050835"
vps_id: "system"
vps_name: "system"
- name: Shrink (delete volume from) a journal
hitachivantara.vspone_block.sds_block.hv_sds_block_journal:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
state: shrink_journal
spec:
id: "id-of-journal"
number: 3
volume_ids:
- "1322e160-fac4-4ac7-9b71-5c1c1ea294ca"
vps_id: "system"
vps_name: "system"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Dictionary containing journal information discovered or managed on the system. Returned: always |
|
List of journal entries. Returned: success |
|
Block capacity of the journal. Returned: success Sample: |
|
Capacity of the journal in megabytes or relevant unit. Returned: success Sample: |
|
Threshold (in seconds) for detecting data overflow in the journal. Returned: success Sample: |
|
Unique identifier of the journal. Returned: success Sample: |
|
Indicates if cache mode is enabled for the journal. Returned: success Sample: |
|
Indicates if inflow control is enabled for the journal. Returned: success Sample: |
|
Journal number assigned by the system. Returned: success Sample: |
|
List of mirror units associated with the journal. Returned: success |
|
Identifier of the consistency group the mirror unit belongs to. Returned: success Sample: |
|
Copy pace setting for the mirror unit (e.g., L, M, H). Returned: success Sample: |
|
Copy speed configured for the mirror unit. Returned: success Sample: |
|
Current status of the mirror unit. Returned: success Sample: |
|
Mirror unit number. Returned: success Sample: |
|
Number of active data paths for the mirror unit. Returned: success Sample: |
|
Queue count information, if available. Returned: success Sample: |
|
Queue marker information, if available. Returned: success Sample: |
|
Current operational status of the journal. Returned: success Sample: |
|
Identifier of the associated storage controller. Returned: success Sample: |
|
Current usage rate of the journal. Returned: success Sample: |
|
List of associated journal volume IDs. Returned: success Sample: |
|
VPS identifier associated with the journal. Returned: success Sample: |
|
VPS name associated with the journal. Returned: success Sample: |