community.general.vdo module – Module to control VDO
Note
This module is part of the community.general collection (version 10.2.0).
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 community.general
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.general.vdo
.
Synopsis
This module controls the VDO dedupe and compression device.
VDO, or Virtual Data Optimizer, is a device-mapper target that provides inline block-level deduplication, compression, and thin provisioning capabilities to primary storage.
Requirements
The below requirements are needed on the host that executes this module.
PyYAML
kmod-kvdo
vdo
Parameters
Parameter |
Comments |
---|---|
Specifies the number of threads to use for acknowledging completion of requested VDO I/O operations. Valid values are integer values from |
|
The Choices:
|
|
Specifies the number of threads to use for submitting I/O operations to the storage device. Valid values are integer values from |
|
The amount of memory allocated for caching block map pages, in megabytes (or may be issued with an LVM-style suffix of K, M, G, or T). The default (and minimum) value is Existing volumes will maintain their previously configured setting unless a different value is specified in the playbook. |
|
Configures whether compression is enabled. The default for a created volume is Choices:
|
|
Specifies the number of threads to use for CPU-intensive work such as hashing or compression. Valid values are integer values from |
|
Configures whether deduplication is enabled. The default for a created volume is Choices:
|
|
The full path of the device to use for VDO storage. This is required if |
|
Enables 512-byte emulation mode, allowing drivers or filesystems to access the VDO volume at 512-byte granularity, instead of the default 4096-byte granularity. Only recommended when a driver or filesystem requires 512-byte sector level access to a device. This option is only available when creating a new volume, and cannot be changed for an existing volume. Choices:
|
|
When creating a volume, ignores any existing file system or VDO signature already present in the storage device. When stopping or removing a VDO volume, first unmounts the file system stored on the device if mounted. Warning: Since this parameter removes all safety checks it is important to make sure that all parameters provided are accurate and intentional. Choices:
|
|
Specifies whether to attempt to execute a Choices:
|
|
Specifies the amount of index memory in gigabytes. The default is |
|
Specifies the index mode of the Albireo index. The default is The This option is only available when creating a new volume, and cannot be changed for an existing volume. Choices:
|
|
The logical size of the VDO volume (in megabytes, or LVM suffix format). If not specified for a new volume, this defaults to the same size as the underlying storage device, which is specified in the |
|
Specifies the number of threads across which to subdivide parts of the VDO processing based on logical block addresses. Valid values are integer values from |
|
The name of the VDO volume. |
|
Specifies the number of threads across which to subdivide parts of the VDO processing based on physical block addresses. Valid values are integer values from |
|
Enables or disables the read cache. The default is The read cache feature is available in VDO 6.1 and older. Choices:
|
|
Specifies the extra VDO device read cache size in megabytes. This is in addition to a system-defined minimum. Using a value with a suffix of K, M, G, or T is optional. The default value is The read cache feature is available in VDO 6.1 and older. |
|
Whether this VDO volume is running. A VDO volume must be activated in order to be started. Choices:
|
|
The size of the increment by which the physical size of a VDO volume is grown, in megabytes (or may be issued with an LVM-style suffix of K, M, G, or T). Must be a power of two between 128M and 32G. The default is |
|
Whether this VDO volume should be Choices:
|
|
Specifies the write policy of the VDO volume. The The The default (and highly recommended) Existing volumes will maintain their previously configured setting unless a different value is specified in the playbook. Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: none |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
Notes
Note
In general, the default thread configuration should be used.
Examples
- name: Create 2 TB VDO volume vdo1 on device /dev/md0
community.general.vdo:
name: vdo1
state: present
device: /dev/md0
logicalsize: 2T
- name: Remove VDO volume vdo1
community.general.vdo:
name: vdo1
state: absent