lvg

Collection: community.general

Full Name: parallax.community.general.lvg

Aliases: community.general.lvg, lvg

Synopsis

Manage LVM volume groups

Parameters

NameTypeRequiredDefaultDescription
vgstringyesThe name of the volume group
pvsstringComma-separated list of physical volumes for the volume group
statestringpresentState of the volume group Choices: present, absent
pesizestring4Physical extent size of the volume group
pv_optionsstringAdditional options to pass to pvcreate
vg_optionsstringAdditional options to pass to vgcreate
forceboolfalseForce volume group operations

Example

- name: Create a volume group across two disks
  lvg:
    vg: data
    pvs: /dev/sdb,/dev/sdc
    state: present