Resource Type: logical_volume

Defined in:
vendor_modules/lvm/lib/puppet/type/logical_volume.rb
Providers:
aix
lvm

Overview

The name of the logical volume. This is the unqualified name and will be automatically added to the volume group's device path (e.g., '/dev/$vg/$lv').

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • mirror

    The number of mirrors of the volume.

  • mirrorlog

    How to store the mirror log (core, disk, mirrored).

    Supported values:
    • core
    • disk
    • mirrored
  • size

    The size of the logical volume. Set to undef to use all available space

  • volume_group

    The volume group name associated with this logical volume. This will automatically set this volume group as a dependency, but it must be defined elsewhere using the volume_group resource type.

Parameters

  • alloc

    Selects the allocation policy when a command needs to allocate Physical Extents from the Volume Group.

    Supported values:
    • anywhere
    • contiguous
    • cling
    • inherit
    • normal
  • extents

    The number of logical extents to allocate for the new logical volume. Set to undef to use all available space

  • initial_size

    The initial size of the logical volume. This will only apply to newly-created volumes

  • minor

    Set the minor number

  • name (namevar)

    The name of the logical volume. This is the unqualified name and will be automatically added to the volume group's device path (e.g., '/dev/$vg/$lv').

  • no_sync

    An optimization in lvcreate, at least on Linux.

  • persistent

    Set to true to make the block device persistent

  • poolmetadatasize

    Change the size of logical volume pool metadata

  • provider

    The specific backend to use for this `logical_volume` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • range

    Sets the inter-physical volume allocation policy. AIX only

  • readahead

    The readahead count to use for the new logical volume.

  • region_size
  • resize_fs (defaults to: true)

    Whether or not to resize the underlying filesystem when resizing the logical volume.

  • size_is_minsize (defaults to: false)

    Set to true if the 'size' parameter specified, is just the minimum size you need (if the LV found is larger then the size requests this is just logged not causing a FAIL)

  • stripes

    The number of stripes to allocate for the new logical volume.

  • stripesize

    The stripesize to use for the new logical volume.

  • thinpool (defaults to: false)

    Set to true to create a thin pool or to pool name to create thin volume

  • type

    Configures the logical volume type.