# salt.states.lvm

## Management of Linux logical volumes

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

`salt.states.lvm.` `lv_absent`(name, vgname=None)

  Remove a given existing logical volume from a named existing volume group

  name
    The logical volume to remove
  vgname
    The volume group name

`salt.states.lvm.` `lv_present`(name, vgname=None, size=None, extents=None, pv='')

  Create a new logical volume

  name
    The name of the logical volume
  vgname
    The volume group name for this logical volume
  size
    The initial size of the logical volume
  extents
    The number of logical extents to allocate
  pv
    The physical volume to use

`salt.states.lvm.` `pv_present`(name, **kwargs)

  Set a physical device to be used as an LVM physical volume

  name
    The device name to initialize.
  kwargs
    Any supported options to pvcreate. See `linux_lvm` for more details.

`salt.states.lvm.` `vg_absent`(name)

  Remove an LVM volume group

  name
    The volume group to remove

`salt.states.lvm.` `vg_present`(name, devices=None, **kwargs)

  Create an LVM volume group

  name
    The volume group name to create
  devices
    A list of devices that will be added to the volume group
  kwargs
    Any supported options to vgcreate. See `linux_lvm` for more details.

Current Salt release: 0.17.1

### Table Of Contents

- salt.states.lvm
  - Management of Linux logical volumes

#### Previous topic

salt.states.locale

#### Next topic

salt.states.makeconf

### Quick search

Enter search terms or a module, class or function name.

### Upcoming SaltStack Events

My conferences on Lanyrd