A state module to manage LVMs
/dev/sda:
lvm.pv_present
my_vg:
lvm.vg_present:
- devices: /dev/sda
lvroot:
lvm.lv_present:
- vgname: my_vg
- size: 10G
- stripes: 5
- stripesize: 8K
Remove a given existing Logical Volume from a named existing volume group
The Logical Volume to remove
The name of the Volume Group on which the Logical Volume resides
Ensure that a Logical Volume is present, creating it if absent.
The name of the Logical Volume
The name of the Volume Group on which the Logical Volume resides
The size of the Logical Volume in megabytes, or use a suffix such as S, M, G, T, P for 512 byte sectors, megabytes, gigabytes or terabytes respectively. The suffix is case insensitive.
The number of logical extents allocated to the Logical Volume It can be a percentage allowed by lvcreate's syntax, in this case it will set the Logical Volume initial size and won't be resized.
The name of the snapshot
The Physical Volume to use
Any supported options to lvcreate. See
linux_lvm
for more details.
New in version 2016.11.0.
Logical Volume is thinly provisioned
Logical Volume is a thin pool
New in version 2018.3.0.
Assume yes to all prompts
New in version 3002.
Use fsadm to resize the logical volume filesystem if needed
Ensure that a Physical Device is not being used by lvm
The device name to initialize.
Set a Physical Device to be used as an LVM Physical Volume
The device name to initialize.
Any supported options to pvcreate. See
linux_lvm
for more details.
Remove an LVM volume group
The volume group to remove