Module Expr Str ImportFrom alias Import alias Import alias FunctionDef arguments args defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Dict Str Str Str Str Dict Str NameLoad NameLoad If Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad If Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str NameLoad NameLoad If UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad If Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Dict Str Str Str Str Dict Str NameLoad NameLoad If Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Str body Expr Call SubscriptLoad NameLoad Index Str NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict NameLoad Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad If Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str NameLoad NameLoad If UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad If UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Str kwarg body Expr Str Assign NameStore Dict Str Str Str Str Dict Str NameLoad NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad If Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Dict Str NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad If UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list
N/A N/A 
Management of Linux logical volumes
===================================

A state module to manage LVMs

.. code-block:: yaml

    /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
 __future__ absolute_import N/A os N/A salt.utils __virtual__ N/A N/A N/A N/A N/A 
    Only load the module if lvm is installed
     N/A N/A N/A N/A salt utils which lvm N/A N/A lvm N/A False N/A pv_present N/A N/A name N/A kwargs N/A N/A 
    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
        :mod:`linux_lvm <salt.modules.linux_lvm>` for more details.
     N/A ret N/A changes comment name result N/A name True N/A N/A N/A __salt__ N/A lvm.pvdisplay name N/A N/A N/A ret N/A comment N/A N/A Physical Volume {0} already present format name N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A comment N/A N/A Physical Volume {0} is set to be created format name N/A N/A ret N/A result None N/A ret N/A N/A changes N/A N/A __salt__ N/A lvm.pvcreate name kwargs N/A N/A N/A __salt__ N/A lvm.pvdisplay name N/A N/A N/A ret N/A comment N/A N/A Created Physical Volume {0} format name N/A N/A N/A ret N/A changes N/A created changes N/A N/A N/A ret N/A comment N/A N/A Failed to create Physical Volume {0} format name N/A N/A ret N/A result False N/A ret N/A pv_absent N/A N/A name N/A N/A N/A 
    Ensure that a Physical Device is not being used by lvm

    name
        The device name to initialize.
     N/A ret N/A changes comment name result N/A name True N/A N/A N/A N/A __salt__ N/A lvm.pvdisplay name N/A N/A N/A ret N/A comment N/A N/A Physical Volume {0} does not exist format name N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A comment N/A N/A Physical Volume {0} is set to be removed format name N/A N/A ret N/A result None N/A ret N/A N/A changes N/A N/A __salt__ N/A lvm.pvremove name N/A N/A N/A __salt__ N/A lvm.pvdisplay name N/A N/A N/A ret N/A comment N/A N/A Failed to remove Physical Volume {0} format name N/A N/A ret N/A result False N/A N/A N/A ret N/A comment N/A N/A Removed Physical Volume {0} format name N/A N/A N/A ret N/A changes N/A removed changes N/A ret N/A vg_present N/A N/A name devices N/A None kwargs N/A N/A 
    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
        :mod:`linux_lvm <salt.modules.linux_lvm>` for more details.
     N/A ret N/A changes comment name result N/A name True N/A N/A N/A __salt__ N/A lvm.vgdisplay name N/A N/A N/A ret N/A comment N/A N/A Volume Group {0} already present format name N/A device N/A N/A devices split , N/A N/A realdev N/A N/A N/A os path realpath device N/A pvs N/A N/A __salt__ N/A lvm.pvdisplay realdev real True N/A N/A pvs N/A N/A pvs get realdev None N/A N/A N/A N/A N/A pvs N/A realdev N/A Volume Group Name name N/A N/A N/A ret N/A comment N/A N/A {0}
{1} format N/A ret N/A comment N/A N/A {0} is part of Volume Group format device N/A N/A N/A N/A N/A pvs N/A realdev N/A Volume Group Name #orphans_lvm2 N/A N/A N/A N/A __salt__ N/A lvm.vgextend name device N/A pvs N/A N/A __salt__ N/A lvm.pvdisplay realdev real True N/A N/A N/A N/A pvs N/A realdev N/A Volume Group Name name N/A N/A N/A N/A N/A ret N/A changes update N/A device N/A N/A added to {0} format name N/A N/A N/A ret N/A comment N/A N/A {0}
{1} format N/A ret N/A comment N/A N/A {0} could not be added format device N/A N/A ret N/A result False N/A N/A N/A ret N/A comment N/A N/A {0}
{1} format N/A ret N/A comment N/A N/A {0} is part of {1} format device N/A N/A pvs N/A realdev N/A Volume Group Name N/A N/A ret N/A result False N/A N/A N/A ret N/A comment N/A N/A {0}
{1} format N/A ret N/A comment N/A N/A pv {0} is not present format device N/A N/A ret N/A result False N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A comment N/A N/A Volume Group {0} is set to be created format name N/A N/A ret N/A result None N/A ret N/A N/A changes N/A N/A __salt__ N/A lvm.vgcreate name devices kwargs N/A N/A N/A __salt__ N/A lvm.vgdisplay name N/A N/A N/A ret N/A comment N/A N/A Created Volume Group {0} format name N/A N/A N/A ret N/A changes N/A created changes N/A N/A N/A ret N/A comment N/A N/A Failed to create Volume Group {0} format name N/A N/A ret N/A result False N/A ret N/A vg_absent N/A N/A name N/A N/A N/A 
    Remove an LVM volume group

    name
        The volume group to remove
     N/A ret N/A changes comment name result N/A name True N/A N/A N/A N/A __salt__ N/A lvm.vgdisplay name N/A N/A N/A ret N/A comment N/A N/A Volume Group {0} already absent format name N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A comment N/A N/A Volume Group {0} is set to be removed format name N/A N/A ret N/A result None N/A ret N/A N/A changes N/A N/A __salt__ N/A lvm.vgremove name N/A N/A N/A N/A __salt__ N/A lvm.vgdisplay name N/A N/A N/A ret N/A comment N/A N/A Removed Volume Group {0} format name N/A N/A N/A ret N/A changes N/A removed changes N/A N/A N/A ret N/A comment N/A N/A Failed to remove Volume Group {0} format name N/A N/A ret N/A result False N/A ret N/A lv_present N/A N/A name vgname size extents snapshot pv N/A None None None None kwargs N/A N/A 
    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

    snapshot
        The name of the snapshot

    pv
        The physical volume to use

    kwargs
        Any supported options to lvcreate. See
        :mod:`linux_lvm <salt.modules.linux_lvm>` for more details.
     N/A ret N/A changes comment name result N/A name True N/A _snapshot None N/A snapshot N/A N/A _snapshot name N/A name snapshot N/A lvpath N/A N/A /dev/{0}/{1} format vgname name N/A N/A N/A __salt__ N/A lvm.lvdisplay lvpath N/A N/A N/A ret N/A comment N/A N/A Logical Volume {0} already present format name N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A comment N/A N/A Logical Volume {0} is set to be created format name N/A N/A ret N/A result None N/A ret N/A N/A changes N/A N/A __salt__ N/A lvm.lvcreate name vgname size size extents extents snapshot _snapshot pv pv kwargs N/A N/A N/A __salt__ N/A lvm.lvdisplay lvpath N/A N/A N/A ret N/A comment N/A N/A Created Logical Volume {0} format name N/A N/A N/A ret N/A changes N/A created changes N/A N/A N/A ret N/A comment N/A N/A Failed to create Logical Volume {0} format name N/A N/A ret N/A result False N/A ret N/A lv_absent N/A N/A name vgname N/A None N/A N/A 
    Remove a given existing logical volume from a named existing volume group

    name
        The logical volume to remove

    vgname
        The volume group name
     N/A ret N/A changes comment name result N/A name True N/A lvpath N/A N/A /dev/{0}/{1} format vgname name N/A N/A N/A N/A __salt__ N/A lvm.lvdisplay lvpath N/A N/A N/A ret N/A comment N/A N/A Logical Volume {0} already absent format name N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A comment N/A N/A Logical Volume {0} is set to be removed format name N/A N/A ret N/A result None N/A ret N/A N/A changes N/A N/A __salt__ N/A lvm.lvremove name vgname N/A N/A N/A N/A __salt__ N/A lvm.lvdisplay lvpath N/A N/A N/A ret N/A comment N/A N/A Removed Logical Volume {0} format name N/A N/A N/A ret N/A changes N/A removed changes N/A N/A N/A ret N/A comment N/A N/A Failed to remove Logical Volume {0} format name N/A N/A ret N/A result False N/A ret N/A