Ensures settings on a logical volume using the type & provider
Supports noop? false
Parameters
ensure(Enum[present,absent])
— Present or absent
name(String[1])
— 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').
volume_group(Optional[String[1]])
— The volume group name associated with this logical volume
size(Optional[Pattern[/^[0-9]+(\.[0-9]+)?[KMGTPEkmgtpe]/]])
— The size of the logical volume. Set to undef to use all available space
extents(Optional[Pattern[/^\d+(%(?:vg|pvs|free|origin)?)?$/]])
— The number of logical extents to allocate for the new logical volume. Set to undef to use all available space
persistent(Optional[Boolean])
— Set to true to make the block device persistent
thinpool(Optional[Boolean])
— Set to true to create a thin pool or to pool name to create thin volume
poolmetadatasize(Optional[Pattern[/^[0-9]+(\.[0-9]+)?[KMGTPEkmgtpe]/]])
— Change the size of logical volume pool metadata
minor(Optional[Integer[0,255]])
— Set the minor number
type(Optional[String[1]])
— Configures the logical volume type
range(Optional[Enum[maximum,minimum]])
— Sets the inter-physical volume allocation policy. AIX only
stripes(Optional[Integer])
— The number of stripes to allocate for the new logical volume
stripesize(Optional[Integer])
— The stripesize to use for the new logical volume
readahead(Optional[String])
— The readahead count to use for the new logical volume
resize_fs(Optional[Boolean])
— Whether or not to resize the underlying filesystem when resizing the logical volume
mirror(Optional[Integer[0,4]])
— The number of mirrors of the volume
mirrorlog(Optional[Enum[core,disk,mirrored]])
— How to store the mirror log
alloc(Optional[Enum[anywhere,contiguous,cling,inherit,normal]])
— Selects the allocation policy when a command needs to allocate Physical Extents from the Volume Group
no_sync()
— An optimization in lvcreate, at least on Linux
region_size(Optional[Integer])
— 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.
yes_flag(Boolean)
— If set to true, do not prompt for confirmation interactively but always assume the answer yes.