You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fs_type (Parameter) - The file system type. eg. ext3.
178
-
* mkfs_cmd (Parameter) - Command to use to create the file system. Defaults to `mkswap` for `fs_type=swap`, otherwise `mkfs.{fs_type}`
179
-
* options (Parameter) - Params for the mkfs command. eg. `-l internal,agcount=x`
180
-
181
-
### logical_volume
182
-
183
-
* name (Parameter) (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’).
184
-
* ensure (Property)
185
-
* alloc (Parameter) - Selects the allocation policy when a command needs to allocate Physical Extents from the Volume Group. Allowed Values:
186
-
- `:anywhere`
187
-
- `:contiguous`
188
-
- `:cling`
189
-
- `:inherit`
190
-
- `:normal`
191
-
* extents (Parameter) - The number of logical extents to allocate for the new logical volume. Set to undef to use all available space
192
-
* initial_size (Parameter) - The initial size of the logical volume. This will only apply to newly-created volumes
193
-
* minor (Parameter) - Set the minor number
194
-
* mirror (Property) - The number of mirrors of the volume.
195
-
* mirrorlog (Property) - How to store the mirror log (core, disk, mirrored). Allowed Values:
196
-
- `:core`
197
-
- `:disk`
198
-
- `:mirrored`
199
-
* mounted - If puppet should mount the volume. This only affects what puppet will do, and not what will be mounted at boot-time.
200
-
* no_sync (Parameter) - An optimization in lvcreate, at least on Linux.
201
-
* persistent (Parameter) - Set to true to make the block device persistent
202
-
* poolmetadatasize (Parameter) - Set the initial size of the logical volume pool metadata on creation
203
-
* readahead (Parameter) - The readahead count to use for the new logical volume.
204
-
* region_size (Parameter) - 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.
205
-
* size (Property) - The size of the logical volume. Set to undef to use all available space
206
-
* size_is_minsize (Parameter) Default value: `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)
207
-
* stripes (Parameter) - The number of stripes to allocate for the new logical volume.
208
-
* stripesize (Parameter) - The stripesize to use for the new logical volume.
209
-
* thinpool (Parameter) - Default value: `false` - Set to true to create a thin pool or to pool name to create thin volume
210
-
* volume_group (Parameter) - 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.
211
-
* yes_flag (Parameter) - Default value: `false` - If set to true, do not prompt for confirmation interactively but always assume the answer yes.
212
-
213
-
### physical_volume
214
-
215
-
* name (Parameter) (Namevar)
216
-
* ensure (Property) -
217
-
* force (Parameter) Default value: `false` - Force the creation without any confirmation. Allowed Values:
218
-
- `true`
219
-
- `false`
220
-
* unless_vg (Parameter) - Do not do anything if the VG already exists. The value should be the name of the volume group to check for.
221
-
222
-
### volume_group
223
-
224
-
* name (Parameter) (Namevar) - The name of the volume group.
225
-
* ensure (Property)
226
-
* createonly (Parameter) Default value: false - If set to true the volume group will be created if it does not exist. If the volume group does exist no action will be taken. Defaults to `false`. Allowed Values:
227
-
- `true`
228
-
- `false`
229
-
* followsymlinks (Parameter) - If set to true all current and wanted values of the physical_volumes property will be followed to their real files on disk if they are in fact symlinks. This is useful to have Puppet determine what the actual PV device is if the property value is a symlink, like '/dev/disk/by-path/xxxx -> ../../sda'. Defaults to `false`.
230
-
* physical_volumes (Property) - The list of physical volumes to be included in the volume group; this will automatically set these as dependencies, but they must be defined elsewhere using the physical_volume resource type.
231
-
232
-
## AIX Specific Type Documentation
233
-
234
-
There are a number of AIX specific parameters and properties. The regular
235
-
parameters documented above also apply to AIX systems.
* atboot (Parameter) - Specify whether the file system is mounted at boot time, Allowed Values:
247
-
* `true`
248
-
* `false`
249
-
* compress (Parameter) - Data compression, LZ or no. Allowed Values:
250
-
* `:LG`
251
-
* `:no`
252
-
* device (Parameter) - Device to create the filesystem on, this can be a device or a logical volume.
253
-
* encrypted (Parameter) - Specify and encrypted filesystem. Allowed Values:
254
-
* `true`
255
-
* `false`
256
-
* extended_attributes (Parameter) - Format to be used to store extended attributes. Allowed Values:
257
-
* `:v1`
258
-
* `:v2`
259
-
* frag (Parameter) - JFS fragment size in bytes. Allowed Values:
260
-
* `/\d+/`
261
-
* initial_size (Parameter) - Initial size of the filesystem, Used only for resource creation, when using this option Puppet will not manage or maintain the size. To resize filesystems see the size property.
* log_partitions (Parameter) - Specify the size of the log logical volume as number of logical partitions,
269
-
* logname (Parameter) - Configure the log logical volume.
270
-
* logsize (Parameter) - Size for an inline log in MB, Allowed Values:
271
-
* `/\d+/`
272
-
* maxext (Parameter) - Size of a file extent in file system blocks, Allowed Values:
273
-
* `/\d+/`
274
-
* mount_options (Parameter) - Specify the options to be passed to the mount command.
275
-
* mountgroup (Parameter) - Mount group for the filesystem,
276
-
* mountguard (Parameter) - Enable the mountguard. Allowed Values:
277
-
* `true`
278
-
* `false`
279
-
* nbpi (Parameter) - Bytes per inode. Allowed Values:
280
-
* `/\d+/`
281
-
* nodename (Parameter) - Specify the remote host where the filesystem resides.
282
-
* perms (Parameter) - Permissions for the filesystem, Allowed Values:
283
-
* `:ro`
284
-
* `:rw`
285
-
* size (Property) - Configures the size of the filesystem. Supports filesystem resizing. The size will be rounded up to the nearest multiple of the partition size.
286
-
* vix (Parameter) - Specify that the file system can allocate inode extents smaller than the default, Allowed Values:
287
-
* `true`
288
-
* `false`
289
-
* volume_group (Parameter) - Volume group that the file system should be created on.
290
-
291
-
### logical_volume
292
-
293
-
* range (Parameter) - Sets the inter-physical volume allocation policy. AIX only
294
-
* type (Parameter) - Configures the logical volume type. AIX only
295
-
296
-
## Functions
297
-
298
-
`lvm::bytes_to_size`: Converts a number of bytes to a size format that LVM can understand e.g. `lvm::bytes_to_size(214748364800)` would return `200g`
299
-
300
-
`lvm::size_to_bytes`: Converts an LVM size to bytes, the opposite of `lvm::bytes_to_size`.
301
-
302
171
## Tasks
303
172
304
-
Documented in the ["Tasks" tab](https://forge.puppet.com/puppetlabs/lvm/tasks) on the forge
173
+
See [tasks reference](REFERENCE.md#tasks)
305
174
306
175
## Plans
307
176
308
-
### `lvm::expand`
309
-
310
-
Executes common tasks for expanding mounts, this can include:
311
-
312
-
* Creating PVs
313
-
* Adding PVs to VG
314
-
* Extending LV
315
-
* Extending filesystem
316
-
317
-
**Parameters:**
318
-
319
-
`server`: *String* The target for the plan
320
-
321
-
`volume_group`: *String* The volume group to which the logical volume belongs
322
-
323
-
`logical_volume`: *String* The logical volume which is to be expanded
324
-
325
-
`additional_size`: *String* How much size to add to the LV. This should be specified in LVM format i.e. "200m" or "2.5g"
326
-
327
-
`disks`: *Array[String]* Any physical disks that should be added to the volume group as part of the expand process
328
-
329
-
`resize_fs`: *Boolean* Whether or not to resize the filesystem
177
+
See [plans reference](REFERENCE.md#plans)
330
178
331
179
## Limitations
332
180
@@ -362,7 +210,15 @@ Some facts reported by this module are being deprecated in favor of upcoming str
362
210
363
211
## License
364
212
365
-
This codebase is licensed under the Apache2.0 licensing, however due to the nature of the codebase the open source dependencies may also use a combination of [AGPL](https://opensource.org/license/agpl-v3/), [BSD-2](https://opensource.org/license/bsd-2-clause/), [BSD-3](https://opensource.org/license/bsd-3-clause/), [GPL2.0](https://opensource.org/license/gpl-2-0/), [LGPL](https://opensource.org/license/lgpl-3-0/), [MIT](https://opensource.org/license/mit/) and [MPL](https://opensource.org/license/mpl-2-0/) Licensing.
213
+
This codebase is licensed under the GPL 2.0, however due to the nature of the
214
+
codebase the open source dependencies may also use a combination of
0 commit comments