lvol

Collection: community.general

Full Name: parallax.community.general.lvol

Aliases: community.general.lvol, lvol

Synopsis

Manage lvol

Parameters

NameTypeRequiredDefaultDescription
vgstringyesThe volume group the logical volume belongs to
lvstringyesThe name of the logical volume
sizestringThe size of the logical volume (e.g. 10g, 512m, 100%FREE)
statestringpresentState of the logical volume Choices: present, absent
forceboolfalseForce logical volume operations
shrinkbooltrueWhether to shrink the volume if needed
pvsstringComma-separated list of physical volumes to use
thinpoolstringThe thin pool volume name when creating thin provisioned volumes
snapshotstringThe name of the snapshot to create
optsstringAdditional options to pass to lvcreate
resizefsboolfalseResize the underlying filesystem along with the volume
activebooltrueWhether the logical volume should be active

Example

- name: Example lvol task
  lvol:
    vg: <your_vg>
    lv: <your_lv>