This module creates, removes or resizes logical volumes.


vg The volume group this logical volume is part of. true
lv The name of the logical volume. true
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. Float values must begin with a digit.
state Control if the logical volume exists.
  • present
  • absent
force Shrink or remove operations of volumes requires this switch. Ensures that that filesystems get never corrupted/destroyed by mistake.
  • yes
  • no
opts Free-form options to be passed to the lvcreate command


Jeroen Hoekx (@jhoekx) ,Alexander Bulimov (@abulimov)