Resource Type: logical_volume

Defined in:
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

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

  • range

    Sets the inter-physical volume allocation policy. AIX only

  • readahead

    The readahead count to use for the new logical volume.

  • region_size

    A mirror is divided into regions of this size (in MB), the mirror log uses this granularity to track which regions are in sync. CAN NOT BE CHANGED on already mirrored volume. Take your mirror size in terabytes and round up that number to the next power of 2, using that number as the -R argument.

  • 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

    Supported values:
    • true
    • false
    • yes
    • no
  • type

    Configures the logical volume type.

  • 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.