ANSIBLE.LVOL(3)                 ANSIBLE MODULES                ANSIBLE.LVOL(3)



NAME
       lvol - Configure LVM logical volumes

DESCRIPTION
       This module creates, removes or resizes logical volumes.

OPTIONS
       lv     The name of the logical volume.(required)

       size   The size of the logical volume, according to lvcreate(8) --size,
              by default in megabytes or optionally with one of
              [bBsSkKmMgGtTpPeE] units; or according to lvcreate(8) --extents
              as a percentage of [VG|PVS|FREE]; resizing is not supported with
              percentages.

       state  Control if the logical volume exists.  Choices: present,absent.
              (default: present)

       vg     The volume group this logical volume is part of.(required).

NOTES
       Filesystems on top of the volume are not resized.

EXAMPLES
       # Create a logical volume of 512m.
       - lvol: vg=firefly lv=test size=512

       # Create a logical volume of 512g.
       - lvol: vg=firefly lv=test size=512g

       # Create a logical volume the size of all remaining space in the volume group
       - lvol: vg=firefly lv=test size=100%FREE

       # Extend the logical volume to 1024m.
       - lvol: vg=firefly lv=test size=1024

       # Reduce the logical volume to 512m
       - lvol: vg=firefly lv=test size=512

       # Remove the logical volume.
       - lvol: vg=firefly lv=test state=absent



AUTHOR
       Jeroen Hoekx

SEE ALSO
       ansible(1), http://ansible.github.com/modules.html#lvol



1.4.5                             2014-02-12                   ANSIBLE.LVOL(3)
