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
salt.states.lvm.
lv_absent
(name, vgname=None)¶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
salt.states.lvm.
lv_present
(name, vgname=None, size=None, extents=None, snapshot=None, pv='', thinvolume=False, thinpool=False, force=False, **kwargs)¶Create a new Logical Volume
The name of the Logical Volume
The name of the Volume Group on which the Logical Volume resides
The initial size of the Logical Volume
The number of logical extents to allocate
The name of the snapshot
The Physical Volume to use
Any supported options to lvcreate. See
linux_lvm
for more details.
New in version to_complete.
Logical Volume is thinly provisioned
Logical Volume is a thin pool
New in version 2018.3.0.
Assume yes to all prompts
salt.states.lvm.
pv_absent
(name)¶Ensure that a Physical Device is not being used by lvm
The device name to initialize.
salt.states.lvm.
pv_present
(name, **kwargs)¶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.
salt.states.lvm.
vg_absent
(name)¶Remove an LVM volume group
The volume group to remove