Subversion Repositories configs

Rev

Rev 192 | Rev 200 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# This is an example configuration file for the LVM2 system.
2
# It contains the default settings that would be used if there was no
3
# /etc/lvm/lvm.conf file.
4
#
5
# Refer to 'man lvm.conf' for further information including the file layout.
6
#
7
# Refer to 'man lvm.conf' for information about how settings configured in
8
# this file are combined with built-in values and command line options to
9
# arrive at the final values used by LVM.
10
#
11
# Refer to 'man lvmconfig' for information about displaying the built-in
12
# and configured values used by LVM.
13
#
14
# If a default value is set in this file (not commented out), then a
15
# new version of LVM using this file will continue using that value,
16
# even if the new version of LVM changes the built-in default value.
17
#
18
# To put this file in a different directory and override /etc/lvm set
19
# the environment variable LVM_SYSTEM_DIR before running the tools.
20
#
21
# N.B. Take care that each setting only appears once if uncommenting
22
# example settings in this file.
23
 
24
 
25
# Configuration section config.
26
# How LVM configuration settings are handled.
27
config {
28
 
29
	# Configuration option config/checks.
30
	# If enabled, any LVM configuration mismatch is reported.
31
	# This implies checking that the configuration key is understood by
32
	# LVM and that the value of the key is the proper type. If disabled,
33
	# any configuration mismatch is ignored and the default value is used
34
	# without any warning (a message about the configuration key not being
35
	# found is issued in verbose mode only).
36
	checks = 1
37
 
38
	# Configuration option config/abort_on_errors.
39
	# Abort the LVM process if a configuration mismatch is found.
40
	abort_on_errors = 0
41
 
42
	# Configuration option config/profile_dir.
43
	# Directory where LVM looks for configuration profiles.
44
	profile_dir = "/etc/lvm/profile"
45
}
46
 
47
# Configuration section devices.
48
# How LVM uses block devices.
49
devices {
50
 
51
	# Configuration option devices/dir.
52
	# Directory in which to create volume group device nodes.
53
	# Commands also accept this as a prefix on volume group names.
54
	# This configuration option is advanced.
55
	dir = "/dev"
56
 
57
	# Configuration option devices/scan.
58
	# Directories containing device nodes to use with LVM.
59
	# This configuration option is advanced.
60
	scan = [ "/dev" ]
61
 
62
	# Configuration option devices/obtain_device_list_from_udev.
63
	# Obtain the list of available devices from udev.
64
	# This avoids opening or using any inapplicable non-block devices or
65
	# subdirectories found in the udev directory. Any device node or
66
	# symlink not managed by udev in the udev directory is ignored. This
67
	# setting applies only to the udev-managed device directory; other
68
	# directories will be scanned fully. LVM needs to be compiled with
69
	# udev support for this setting to apply.
70
	obtain_device_list_from_udev = 1
71
 
72
	# Configuration option devices/external_device_info_source.
73
	# Select an external device information source.
74
	# Some information may already be available in the system and LVM can
75
	# use this information to determine the exact type or use of devices it
76
	# processes. Using an existing external device information source can
77
	# speed up device processing as LVM does not need to run its own native
78
	# routines to acquire this information. For example, this information
79
	# is used to drive LVM filtering like MD component detection, multipath
80
	# component detection, partition detection and others.
81
	#
82
	# Accepted values:
83
	#   none
84
	#     No external device information source is used.
85
	#   udev
86
	#     Reuse existing udev database records. Applicable only if LVM is
87
	#     compiled with udev support.
88
	#
89
	external_device_info_source = "none"
90
 
91
	# Configuration option devices/hints.
92
	# Use a local file to remember which devices have PVs on them.
93
	# Some commands will use this as an optimization to reduce device
94
	# scanning, and will only scan the listed PVs. Removing the hint file
95
	# will cause lvm to generate a new one. Disable hints if PVs will
96
	# be copied onto devices using non-lvm commands, like dd.
97
	#
98
	# Accepted values:
99
	#   all
100
	#     Use all hints.
101
	#   none
102
	#     Use no hints.
103
	#
104
	# This configuration option has an automatic default value.
105
	# hints = "all"
106
 
107
	# Configuration option devices/preferred_names.
108
	# Select which path name to display for a block device.
109
	# If multiple path names exist for a block device, and LVM needs to
110
	# display a name for the device, the path names are matched against
111
	# each item in this list of regular expressions. The first match is
112
	# used. Try to avoid using undescriptive /dev/dm-N names, if present.
113
	# If no preferred name matches, or if preferred_names are not defined,
114
	# the following built-in preferences are applied in order until one
115
	# produces a preferred name:
116
	# Prefer names with path prefixes in the order of:
117
	# /dev/mapper, /dev/disk, /dev/dm-*, /dev/block.
118
	# Prefer the name with the least number of slashes.
119
	# Prefer a name that is a symlink.
120
	# Prefer the path with least value in lexicographical order.
121
	#
122
	# Example
123
	# preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
124
	#
125
	# This configuration option has an automatic default value.
126
	# preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
127
 
128
	# Configuration option devices/filter.
129
	# Limit the block devices that are used by LVM commands.
130
	# This is a list of regular expressions used to accept or reject block
131
	# device path names. Each regex is delimited by a vertical bar '|'
132
	# (or any character) and is preceded by 'a' to accept the path, or
133
	# by 'r' to reject the path. The first regex in the list to match the
134
	# path is used, producing the 'a' or 'r' result for the device.
135
	# When multiple path names exist for a block device, if any path name
136
	# matches an 'a' pattern before an 'r' pattern, then the device is
137
	# accepted. If all the path names match an 'r' pattern first, then the
138
	# device is rejected. Unmatching path names do not affect the accept
139
	# or reject decision. If no path names for a device match a pattern,
140
	# then the device is accepted. Be careful mixing 'a' and 'r' patterns,
141
	# as the combination might produce unexpected results (test changes.)
142
	# Run vgscan after changing the filter to regenerate the cache.
143
	#
144
	# Example
145
	# Accept every block device:
146
	# filter = [ "a|.*|" ]
147
	# Reject the cdrom drive:
148
	# filter = [ "r|/dev/cdrom|" ]
149
	# Work with just loopback devices, e.g. for testing:
150
	# filter = [ "a|loop|", "r|.*|" ]
151
	# Accept all loop devices and ide drives except hdc:
152
	# filter = [ "a|loop|", "r|/dev/hdc|", "a|/dev/ide|", "r|.*|" ]
153
	# Use anchors to be very specific:
154
	# filter = [ "a|^/dev/hda8$|", "r|.*|" ]
155
	#
156
	# This configuration option has an automatic default value.
157
	# filter = [ "a|.*|" ]
158
 
159
	# Configuration option devices/global_filter.
160
	# Limit the block devices that are used by LVM system components.
161
	# Because devices/filter may be overridden from the command line, it is
162
	# not suitable for system-wide device filtering, e.g. udev.
163
	# Use global_filter to hide devices from these LVM system components.
164
	# The syntax is the same as devices/filter. Devices rejected by
165
	# global_filter are not opened by LVM.
166
	# This configuration option has an automatic default value.
167
	# global_filter = [ "a|.*|" ]
168
 
169
	# Configuration option devices/types.
170
	# List of additional acceptable block device types.
171
	# These are of device type names from /proc/devices, followed by the
172
	# maximum number of partitions.
173
	#
174
	# Example
175
	# types = [ "fd", 16 ]
176
	#
177
	# This configuration option is advanced.
178
	# This configuration option does not have a default value defined.
179
 
180
	# Configuration option devices/sysfs_scan.
181
	# Restrict device scanning to block devices appearing in sysfs.
182
	# This is a quick way of filtering out block devices that are not
183
	# present on the system. sysfs must be part of the kernel and mounted.)
184
	sysfs_scan = 1
185
 
186
	# Configuration option devices/scan_lvs.
187
	# Scan LVM LVs for layered PVs, allowing LVs to be used as PVs.
188
	# When 1, LVM will detect PVs layered on LVs, and caution must be
189
	# taken to avoid a host accessing a layered VG that may not belong
190
	# to it, e.g. from a guest image. This generally requires excluding
191
	# the LVs with device filters. Also, when this setting is enabled,
192
	# every LVM command will scan every active LV on the system (unless
193
	# filtered), which can cause performance problems on systems with
194
	# many active LVs. When this setting is 0, LVM will not detect or
195
	# use PVs that exist on LVs, and will not allow a PV to be created on
196
	# an LV. The LVs are ignored using a built in device filter that
197
	# identifies and excludes LVs.
198
	scan_lvs = 0
199
 
200
	# Configuration option devices/multipath_component_detection.
201
	# Ignore devices that are components of DM multipath devices.
202
	multipath_component_detection = 1
203
 
204
	# Configuration option devices/md_component_detection.
205
	# Enable detection and exclusion of MD component devices.
206
	# An MD component device is a block device that MD uses as part
207
	# of a software RAID virtual device. When an LVM PV is created
208
	# on an MD device, LVM must only use the top level MD device as
209
	# the PV, and should ignore the underlying component devices.
210
	# In cases where the MD superblock is located at the end of the
211
	# component devices, it is more difficult for LVM to consistently
212
	# identify an MD component, see the md_component_checks setting.
213
	md_component_detection = 1
214
 
215
	# Configuration option devices/md_component_checks.
216
	# The checks LVM should use to detect MD component devices.
217
	# MD component devices are block devices used by MD software RAID.
218
	#
219
	# Accepted values:
220
	#   auto
221
	#     LVM will skip scanning the end of devices when it has other
222
	#     indications that the device is not an MD component.
223
	#   start
224
	#     LVM will only scan the start of devices for MD superblocks.
225
	#     This does not incur extra I/O by LVM.
226
	#   full
227
	#     LVM will scan the start and end of devices for MD superblocks.
228
	#     This requires an extra read at the end of devices.
229
	#
230
	# This configuration option has an automatic default value.
231
	# md_component_checks = "auto"
232
 
233
	# Configuration option devices/fw_raid_component_detection.
234
	# Ignore devices that are components of firmware RAID devices.
235
	# LVM must use an external_device_info_source other than none for this
236
	# detection to execute.
237
	fw_raid_component_detection = 0
238
 
239
	# Configuration option devices/md_chunk_alignment.
240
	# Align the start of a PV data area with md device's stripe-width.
241
	# This applies if a PV is placed directly on an md device.
242
	# default_data_alignment will be overriden if it is not aligned
243
	# with the value detected for this setting.
244
	# This setting is overriden by data_alignment_detection,
245
	# data_alignment, and the --dataalignment option.
246
	md_chunk_alignment = 1
247
 
248
	# Configuration option devices/default_data_alignment.
249
	# Align the start of a PV data area with this number of MiB.
250
	# Set to 1 for 1MiB, 2 for 2MiB, etc. Set to 0 to disable.
251
	# This setting is overriden by data_alignment and the --dataalignment
252
	# option.
253
	# This configuration option has an automatic default value.
254
	# default_data_alignment = 1
255
 
256
	# Configuration option devices/data_alignment_detection.
257
	# Align the start of a PV data area with sysfs io properties.
258
	# The start of a PV data area will be a multiple of minimum_io_size or
259
	# optimal_io_size exposed in sysfs. minimum_io_size is the smallest
260
	# request the device can perform without incurring a read-modify-write
261
	# penalty, e.g. MD chunk size. optimal_io_size is the device's
262
	# preferred unit of receiving I/O, e.g. MD stripe width.
263
	# minimum_io_size is used if optimal_io_size is undefined (0).
264
	# If md_chunk_alignment is enabled, that detects the optimal_io_size.
265
	# default_data_alignment and md_chunk_alignment will be overriden
266
	# if they are not aligned with the value detected for this setting.
267
	# This setting is overriden by data_alignment and the --dataalignment
268
	# option.
269
	data_alignment_detection = 1
270
 
271
	# Configuration option devices/data_alignment.
272
	# Align the start of a PV data area with this number of KiB.
273
	# When non-zero, this setting overrides default_data_alignment.
274
	# Set to 0 to disable, in which case default_data_alignment
275
	# is used to align the first PE in units of MiB.
276
	# This setting is overriden by the --dataalignment option.
277
	data_alignment = 0
278
 
279
	# Configuration option devices/data_alignment_offset_detection.
280
	# Shift the start of an aligned PV data area based on sysfs information.
281
	# After a PV data area is aligned, it will be shifted by the
282
	# alignment_offset exposed in sysfs. This offset is often 0, but may
283
	# be non-zero. Certain 4KiB sector drives that compensate for windows
284
	# partitioning will have an alignment_offset of 3584 bytes (sector 7
285
	# is the lowest aligned logical block, the 4KiB sectors start at
286
	# LBA -1, and consequently sector 63 is aligned on a 4KiB boundary).
287
	# This setting is overriden by the --dataalignmentoffset option.
288
	data_alignment_offset_detection = 1
289
 
290
	# Configuration option devices/ignore_suspended_devices.
291
	# Ignore DM devices that have I/O suspended while scanning devices.
292
	# Otherwise, LVM waits for a suspended device to become accessible.
293
	# This should only be needed in recovery situations.
294
	ignore_suspended_devices = 0
295
 
296
	# Configuration option devices/ignore_lvm_mirrors.
297
	# Do not scan 'mirror' LVs to avoid possible deadlocks.
298
	# This avoids possible deadlocks when using the 'mirror' segment type.
299
	# This setting determines whether LVs using the 'mirror' segment type
300
	# are scanned for LVM labels. This affects the ability of mirrors to
301
	# be used as physical volumes. If this setting is enabled, it is
302
	# impossible to create VGs on top of mirror LVs, i.e. to stack VGs on
303
	# mirror LVs. If this setting is disabled, allowing mirror LVs to be
304
	# scanned, it may cause LVM processes and I/O to the mirror to become
305
	# blocked. This is due to the way that the mirror segment type handles
306
	# failures. In order for the hang to occur, an LVM command must be run
307
	# just after a failure and before the automatic LVM repair process
308
	# takes place, or there must be failures in multiple mirrors in the
309
	# same VG at the same time with write failures occurring moments before
310
	# a scan of the mirror's labels. The 'mirror' scanning problems do not
311
	# apply to LVM RAID types like 'raid1' which handle failures in a
312
	# different way, making them a better choice for VG stacking.
313
	ignore_lvm_mirrors = 1
314
 
315
	# Configuration option devices/require_restorefile_with_uuid.
316
	# Allow use of pvcreate --uuid without requiring --restorefile.
317
	require_restorefile_with_uuid = 1
318
 
319
	# Configuration option devices/pv_min_size.
320
	# Minimum size in KiB of block devices which can be used as PVs.
321
	# In a clustered environment all nodes must use the same value.
322
	# Any value smaller than 512KiB is ignored. The previous built-in
323
	# value was 512.
324
	pv_min_size = 2048
325
 
326
	# Configuration option devices/issue_discards.
327
	# Issue discards to PVs that are no longer used by an LV.
328
	# Discards are sent to an LV's underlying physical volumes when the LV
329
	# is no longer using the physical volumes' space, e.g. lvremove,
330
	# lvreduce. Discards inform the storage that a region is no longer
331
	# used. Storage that supports discards advertise the protocol-specific
332
	# way discards should be issued by the kernel (TRIM, UNMAP, or
333
	# WRITE SAME with UNMAP bit set). Not all storage will support or
334
	# benefit from discards, but SSDs and thinly provisioned LUNs
335
	# generally do. If enabled, discards will only be issued if both the
336
	# storage and kernel provide support.
337
	issue_discards = 0
338
 
339
	# Configuration option devices/allow_changes_with_duplicate_pvs.
340
	# Allow VG modification while a PV appears on multiple devices.
341
	# When a PV appears on multiple devices, LVM attempts to choose the
342
	# best device to use for the PV. If the devices represent the same
343
	# underlying storage, the choice has minimal consequence. If the
344
	# devices represent different underlying storage, the wrong choice
345
	# can result in data loss if the VG is modified. Disabling this
346
	# setting is the safest option because it prevents modifying a VG
347
	# or activating LVs in it while a PV appears on multiple devices.
348
	# Enabling this setting allows the VG to be used as usual even with
349
	# uncertain devices.
350
	allow_changes_with_duplicate_pvs = 0
351
 
352
	# Configuration option devices/allow_mixed_block_sizes.
353
	# Allow PVs in the same VG with different logical block sizes.
354
	# When allowed, the user is responsible to ensure that an LV is
355
	# using PVs with matching block sizes when necessary.
356
	allow_mixed_block_sizes = 0
357
}
358
 
359
# Configuration section allocation.
360
# How LVM selects space and applies properties to LVs.
361
allocation {
362
 
363
	# Configuration option allocation/cling_tag_list.
364
	# Advise LVM which PVs to use when searching for new space.
365
	# When searching for free space to extend an LV, the 'cling' allocation
366
	# policy will choose space on the same PVs as the last segment of the
367
	# existing LV. If there is insufficient space and a list of tags is
368
	# defined here, it will check whether any of them are attached to the
369
	# PVs concerned and then seek to match those PV tags between existing
370
	# extents and new extents.
371
	#
372
	# Example
373
	# Use the special tag "@*" as a wildcard to match any PV tag:
374
	# cling_tag_list = [ "@*" ]
375
	# LVs are mirrored between two sites within a single VG, and
376
	# PVs are tagged with either @site1 or @site2 to indicate where
377
	# they are situated:
378
	# cling_tag_list = [ "@site1", "@site2" ]
379
	#
380
	# This configuration option does not have a default value defined.
381
 
382
	# Configuration option allocation/maximise_cling.
383
	# Use a previous allocation algorithm.
384
	# Changes made in version 2.02.85 extended the reach of the 'cling'
385
	# policies to detect more situations where data can be grouped onto
386
	# the same disks. This setting can be used to disable the changes
387
	# and revert to the previous algorithm.
388
	maximise_cling = 1
389
 
390
	# Configuration option allocation/use_blkid_wiping.
391
	# Use blkid to detect and erase existing signatures on new PVs and LVs.
392
	# The blkid library can detect more signatures than the native LVM
393
	# detection code, but may take longer. LVM needs to be compiled with
394
	# blkid wiping support for this setting to apply. LVM native detection
395
	# code is currently able to recognize: MD device signatures,
396
	# swap signature, and LUKS signatures. To see the list of signatures
397
	# recognized by blkid, check the output of the 'blkid -k' command.
398
	use_blkid_wiping = 1
399
 
400
	# Configuration option allocation/wipe_signatures_when_zeroing_new_lvs.
401
	# Look for and erase any signatures while zeroing a new LV.
402
	# The --wipesignatures option overrides this setting.
403
	# Zeroing is controlled by the -Z/--zero option, and if not specified,
404
	# zeroing is used by default if possible. Zeroing simply overwrites the
405
	# first 4KiB of a new LV with zeroes and does no signature detection or
406
	# wiping. Signature wiping goes beyond zeroing and detects exact types
407
	# and positions of signatures within the whole LV. It provides a
408
	# cleaner LV after creation as all known signatures are wiped. The LV
409
	# is not claimed incorrectly by other tools because of old signatures
410
	# from previous use. The number of signatures that LVM can detect
411
	# depends on the detection code that is selected (see
412
	# use_blkid_wiping.) Wiping each detected signature must be confirmed.
413
	# When this setting is disabled, signatures on new LVs are not detected
414
	# or erased unless the --wipesignatures option is used directly.
415
	wipe_signatures_when_zeroing_new_lvs = 1
416
 
417
	# Configuration option allocation/mirror_logs_require_separate_pvs.
418
	# Mirror logs and images will always use different PVs.
419
	# The default setting changed in version 2.02.85.
420
	mirror_logs_require_separate_pvs = 0
421
 
422
	# Configuration option allocation/raid_stripe_all_devices.
423
	# Stripe across all PVs when RAID stripes are not specified.
424
	# If enabled, all PVs in the VG or on the command line are used for
425
	# raid0/4/5/6/10 when the command does not specify the number of
426
	# stripes to use.
427
	# This was the default behaviour until release 2.02.162.
428
	# This configuration option has an automatic default value.
429
	# raid_stripe_all_devices = 0
430
 
431
	# Configuration option allocation/cache_pool_metadata_require_separate_pvs.
432
	# Cache pool metadata and data will always use different PVs.
433
	# This configuration option has an automatic default value.
434
	# cache_pool_metadata_require_separate_pvs = 0
435
 
436
	# Configuration option allocation/cache_metadata_format.
437
	# Sets default metadata format for new cache.
438
	#
439
	# Accepted values:
440
	#   0  Automatically detected best available format
441
	#   1  Original format
442
	#   2  Improved 2nd. generation format
443
	#
444
	# This configuration option has an automatic default value.
445
	# cache_metadata_format = 0
446
 
447
	# Configuration option allocation/cache_mode.
448
	# The default cache mode used for new cache.
449
	#
450
	# Accepted values:
451
	#   writethrough
452
	#     Data blocks are immediately written from the cache to disk.
453
	#   writeback
454
	#     Data blocks are written from the cache back to disk after some
455
	#     delay to improve performance.
456
	#
457
	# This setting replaces allocation/cache_pool_cachemode.
458
	# This configuration option has an automatic default value.
459
	# cache_mode = "writethrough"
460
 
461
	# Configuration option allocation/cache_policy.
462
	# The default cache policy used for new cache volume.
463
	# Since kernel 4.2 the default policy is smq (Stochastic multiqueue),
464
	# otherwise the older mq (Multiqueue) policy is selected.
465
	# This configuration option does not have a default value defined.
466
 
467
	# Configuration section allocation/cache_settings.
468
	# Settings for the cache policy.
469
	# See documentation for individual cache policies for more info.
470
	# This configuration section has an automatic default value.
471
	# cache_settings {
472
	# }
473
 
474
	# Configuration option allocation/cache_pool_chunk_size.
475
	# The minimal chunk size in KiB for cache pool volumes.
476
	# Using a chunk_size that is too large can result in wasteful use of
477
	# the cache, where small reads and writes can cause large sections of
478
	# an LV to be mapped into the cache. However, choosing a chunk_size
479
	# that is too small can result in more overhead trying to manage the
480
	# numerous chunks that become mapped into the cache. The former is
481
	# more of a problem than the latter in most cases, so the default is
482
	# on the smaller end of the spectrum. Supported values range from
483
	# 32KiB to 1GiB in multiples of 32.
484
	# This configuration option does not have a default value defined.
485
 
486
	# Configuration option allocation/cache_pool_max_chunks.
487
	# The maximum number of chunks in a cache pool.
488
	# For cache target v1.9 the recommended maximumm is 1000000 chunks.
489
	# Using cache pool with more chunks may degrade cache performance.
490
	# This configuration option does not have a default value defined.
491
 
492
	# Configuration option allocation/thin_pool_metadata_require_separate_pvs.
493
	# Thin pool metadata and data will always use different PVs.
494
	# This configuration option has an automatic default value.
495
	# thin_pool_metadata_require_separate_pvs = 0
496
 
497
	# Configuration option allocation/thin_pool_zero.
498
	# Thin pool data chunks are zeroed before they are first used.
499
	# Zeroing with a larger thin pool chunk size reduces performance.
500
	# This configuration option has an automatic default value.
501
	# thin_pool_zero = 1
502
 
503
	# Configuration option allocation/thin_pool_discards.
504
	# The discards behaviour of thin pool volumes.
505
	#
506
	# Accepted values:
507
	#   ignore
508
	#   nopassdown
509
	#   passdown
510
	#
511
	# This configuration option has an automatic default value.
512
	# thin_pool_discards = "passdown"
513
 
514
	# Configuration option allocation/thin_pool_chunk_size_policy.
515
	# The chunk size calculation policy for thin pool volumes.
516
	#
517
	# Accepted values:
518
	#   generic
519
	#     If thin_pool_chunk_size is defined, use it. Otherwise, calculate
520
	#     the chunk size based on estimation and device hints exposed in
521
	#     sysfs - the minimum_io_size. The chunk size is always at least
522
	#     64KiB.
523
	#   performance
524
	#     If thin_pool_chunk_size is defined, use it. Otherwise, calculate
525
	#     the chunk size for performance based on device hints exposed in
526
	#     sysfs - the optimal_io_size. The chunk size is always at least
527
	#     512KiB.
528
	#
529
	# This configuration option has an automatic default value.
530
	# thin_pool_chunk_size_policy = "generic"
531
 
532
	# Configuration option allocation/zero_metadata.
533
	# Zero whole metadata area before use with thin or cache pool.
534
	# This configuration option has an automatic default value.
535
	# zero_metadata = 1
536
 
537
	# Configuration option allocation/thin_pool_chunk_size.
538
	# The minimal chunk size in KiB for thin pool volumes.
539
	# Larger chunk sizes may improve performance for plain thin volumes,
540
	# however using them for snapshot volumes is less efficient, as it
541
	# consumes more space and takes extra time for copying. When unset,
542
	# lvm tries to estimate chunk size starting from 64KiB. Supported
543
	# values are in the range 64KiB to 1GiB.
544
	# This configuration option does not have a default value defined.
545
 
546
	# Configuration option allocation/physical_extent_size.
547
	# Default physical extent size in KiB to use for new VGs.
548
	# This configuration option has an automatic default value.
549
	# physical_extent_size = 4096
550
 
551
	# Configuration option allocation/vdo_use_compression.
552
	# Enables or disables compression when creating a VDO volume.
553
	# Compression may be disabled if necessary to maximize performance
554
	# or to speed processing of data that is unlikely to compress.
555
	# This configuration option has an automatic default value.
556
	# vdo_use_compression = 1
557
 
558
	# Configuration option allocation/vdo_use_deduplication.
559
	# Enables or disables deduplication when creating a VDO volume.
560
	# Deduplication may be disabled in instances where data is not expected
561
	# to have good deduplication rates but compression is still desired.
562
	# This configuration option has an automatic default value.
563
	# vdo_use_deduplication = 1
564
 
565
	# Configuration option allocation/vdo_use_metadata_hints.
566
	# Enables or disables whether VDO volume should tag its latency-critical
567
	# writes with the REQ_SYNC flag. Some device mapper targets such as dm-raid5
568
	# process writes with this flag at a higher priority.
569
	# Default is enabled.
570
	# This configuration option has an automatic default value.
571
	# vdo_use_metadata_hints = 1
572
 
573
	# Configuration option allocation/vdo_minimum_io_size.
574
	# The minimum IO size for VDO volume to accept, in bytes.
575
	# Valid values are 512 or 4096. The recommended and default value is 4096.
576
	# This configuration option has an automatic default value.
577
	# vdo_minimum_io_size = 4096
578
 
579
	# Configuration option allocation/vdo_block_map_cache_size_mb.
580
	# Specifies the amount of memory in MiB allocated for caching block map
581
	# pages for VDO volume. The value must be a multiple of 4096 and must be
582
	# at least 128MiB and less than 16TiB. The cache must be at least 16MiB
583
	# per logical thread. Note that there is a memory overhead of 15%.
584
	# This configuration option has an automatic default value.
585
	# vdo_block_map_cache_size_mb = 128
586
 
587
	# Configuration option allocation/vdo_block_map_period.
588
	# The speed with which the block map cache writes out modified block map pages.
589
	# A smaller era length is likely to reduce the amount time spent rebuilding,
590
	# at the cost of increased block map writes during normal operation.
591
	# The maximum and recommended value is 16380; the minimum value is 1.
592
	# This configuration option has an automatic default value.
593
	# vdo_block_map_period = 16380
594
 
595
	# Configuration option allocation/vdo_check_point_frequency.
596
	# The default check point frequency for VDO volume.
597
	# This configuration option has an automatic default value.
598
	# vdo_check_point_frequency = 0
599
 
600
	# Configuration option allocation/vdo_use_sparse_index.
601
	# Enables sparse indexing for VDO volume.
602
	# This configuration option has an automatic default value.
603
	# vdo_use_sparse_index = 0
604
 
605
	# Configuration option allocation/vdo_index_memory_size_mb.
606
	# Specifies the amount of index memory in MiB for VDO volume.
607
	# The value must be at least 256MiB and at most 1TiB.
608
	# This configuration option has an automatic default value.
609
	# vdo_index_memory_size_mb = 256
610
 
611
	# Configuration option allocation/vdo_slab_size_mb.
612
	# Specifies the size in MiB of the increment by which a VDO is grown.
613
	# Using a smaller size constrains the total maximum physical size
614
	# that can be accommodated. Must be a power of two between 128MiB and 32GiB.
615
	# This configuration option has an automatic default value.
616
	# vdo_slab_size_mb = 2048
617
 
618
	# Configuration option allocation/vdo_ack_threads.
619
	# Specifies the number of threads to use for acknowledging
620
	# completion of requested VDO I/O operations.
621
	# The value must be at in range [0..100].
622
	# This configuration option has an automatic default value.
623
	# vdo_ack_threads = 1
624
 
625
	# Configuration option allocation/vdo_bio_threads.
626
	# Specifies the number of threads to use for submitting I/O
627
	# operations to the storage device of VDO volume.
628
	# The value must be in range [1..100]
629
	# Each additional thread after the first will use an additional 18MiB of RAM,
630
	# plus 1.12 MiB of RAM per megabyte of configured read cache size.
631
	# This configuration option has an automatic default value.
632
	# vdo_bio_threads = 4
633
 
634
	# Configuration option allocation/vdo_bio_rotation.
635
	# Specifies the number of I/O operations to enqueue for each bio-submission
636
	# thread before directing work to the next. The value must be in range [1..1024].
637
	# This configuration option has an automatic default value.
638
	# vdo_bio_rotation = 64
639
 
640
	# Configuration option allocation/vdo_cpu_threads.
641
	# Specifies the number of threads to use for CPU-intensive work such as
642
	# hashing or compression for VDO volume. The value must be in range [1..100]
643
	# This configuration option has an automatic default value.
644
	# vdo_cpu_threads = 2
645
 
646
	# Configuration option allocation/vdo_hash_zone_threads.
647
	# Specifies the number of threads across which to subdivide parts of the VDO
648
	# processing based on the hash value computed from the block data.
649
	# The value must be at in range [0..100].
650
	# vdo_hash_zone_threads, vdo_logical_threads and vdo_physical_threads must be
651
	# either all zero or all non-zero.
652
	# This configuration option has an automatic default value.
653
	# vdo_hash_zone_threads = 1
654
 
655
	# Configuration option allocation/vdo_logical_threads.
656
	# Specifies the number of threads across which to subdivide parts of the VDO
657
	# processing based on the hash value computed from the block data.
658
	# A logical thread count of 9 or more will require explicitly specifying
659
	# a sufficiently large block map cache size, as well.
660
	# The value must be in range [0..100].
661
	# vdo_hash_zone_threads, vdo_logical_threads and vdo_physical_threads must be
662
	# either all zero or all non-zero.
663
	# This configuration option has an automatic default value.
664
	# vdo_logical_threads = 1
665
 
666
	# Configuration option allocation/vdo_physical_threads.
667
	# Specifies the number of threads across which to subdivide parts of the VDO
668
	# processing based on physical block addresses.
669
	# Each additional thread after the first will use an additional 10MiB of RAM.
670
	# The value must be in range [0..16].
671
	# vdo_hash_zone_threads, vdo_logical_threads and vdo_physical_threads must be
672
	# either all zero or all non-zero.
673
	# This configuration option has an automatic default value.
674
	# vdo_physical_threads = 1
675
 
676
	# Configuration option allocation/vdo_write_policy.
677
	# Specifies the write policy:
678
	# auto  - VDO will check the storage device and determine whether it supports flushes.
679
	#         If it does, VDO will run in async mode, otherwise it will run in sync mode.
680
	# sync  - Writes are acknowledged only after data is stably written.
681
	#         This policy is not supported if the underlying storage is not also synchronous.
682
	# async - Writes are acknowledged after data has been cached for writing to stable storage.
683
	#         Data which has not been flushed is not guaranteed to persist in this mode.
684
	# This configuration option has an automatic default value.
685
	# vdo_write_policy = "auto"
686
 
687
	# Configuration option allocation/vdo_max_discard.
688
	# Specified te maximum size of discard bio accepted, in 4096 byte blocks.
689
	# I/O requests to a VDO volume are normally split into 4096-byte blocks,
690
	# and processed up to 2048 at a time. However, discard requests to a VDO volume
691
	# can be automatically split to a larger size, up to <max discard> 4096-byte blocks
692
	# in a single bio, and are limited to 1500 at a time.
693
	# Increasing this value may provide better overall performance, at the cost of
694
	# increased latency for the individual discard requests.
695
	# The default and minimum is 1. The maximum is UINT_MAX / 4096.
696
	# This configuration option has an automatic default value.
697
	# vdo_max_discard = 1
698
}
699
 
700
# Configuration section log.
701
# How LVM log information is reported.
702
log {
703
 
704
	# Configuration option log/report_command_log.
705
	# Enable or disable LVM log reporting.
706
	# If enabled, LVM will collect a log of operations, messages,
707
	# per-object return codes with object identification and associated
708
	# error numbers (errnos) during LVM command processing. Then the
709
	# log is either reported solely or in addition to any existing
710
	# reports, depending on LVM command used. If it is a reporting command
711
	# (e.g. pvs, vgs, lvs, lvm fullreport), then the log is reported in
712
	# addition to any existing reports. Otherwise, there's only log report
713
	# on output. For all applicable LVM commands, you can request that
714
	# the output has only log report by using --logonly command line
715
	# option. Use log/command_log_cols and log/command_log_sort settings
716
	# to define fields to display and sort fields for the log report.
717
	# You can also use log/command_log_selection to define selection
718
	# criteria used each time the log is reported.
719
	# This configuration option has an automatic default value.
720
	# report_command_log = 0
721
 
722
	# Configuration option log/command_log_sort.
723
	# List of columns to sort by when reporting command log.
724
	# See <lvm command> --logonly --configreport log -o help
725
	# for the list of possible fields.
726
	# This configuration option has an automatic default value.
727
	# command_log_sort = "log_seq_num"
728
 
729
	# Configuration option log/command_log_cols.
730
	# List of columns to report when reporting command log.
731
	# See <lvm command> --logonly --configreport log -o help
732
	# for the list of possible fields.
733
	# This configuration option has an automatic default value.
734
	# command_log_cols = "log_seq_num,log_type,log_context,log_object_type,log_object_name,log_object_id,log_object_group,log_object_group_id,log_message,log_errno,log_ret_code"
735
 
736
	# Configuration option log/command_log_selection.
737
	# Selection criteria used when reporting command log.
738
	# You can define selection criteria that are applied each
739
	# time log is reported. This way, it is possible to control the
740
	# amount of log that is displayed on output and you can select
741
	# only parts of the log that are important for you. To define
742
	# selection criteria, use fields from log report. See also
743
	# <lvm command> --logonly --configreport log -S help for the
744
	# list of possible fields and selection operators. You can also
745
	# define selection criteria for log report on command line directly
746
	# using <lvm command> --configreport log -S <selection criteria>
747
	# which has precedence over log/command_log_selection setting.
748
	# For more information about selection criteria in general, see
749
	# lvm(8) man page.
750
	# This configuration option has an automatic default value.
751
	# command_log_selection = "!(log_type=status && message=success)"
752
 
753
	# Configuration option log/verbose.
754
	# Controls the messages sent to stdout or stderr.
755
	verbose = 0
756
 
757
	# Configuration option log/silent.
758
	# Suppress all non-essential messages from stdout.
759
	# This has the same effect as -qq. When enabled, the following commands
760
	# still produce output: dumpconfig, lvdisplay, lvmdiskscan, lvs, pvck,
761
	# pvdisplay, pvs, version, vgcfgrestore -l, vgdisplay, vgs.
762
	# Non-essential messages are shifted from log level 4 to log level 5
763
	# for syslog and lvm2_log_fn purposes.
764
	# Any 'yes' or 'no' questions not overridden by other arguments are
765
	# suppressed and default to 'no'.
766
	silent = 0
767
 
768
	# Configuration option log/syslog.
769
	# Send log messages through syslog.
770
	syslog = 1
771
 
772
	# Configuration option log/file.
773
	# Write error and debug log messages to a file specified here.
774
	# This configuration option does not have a default value defined.
775
 
776
	# Configuration option log/overwrite.
777
	# Overwrite the log file each time the program is run.
778
	overwrite = 0
779
 
780
	# Configuration option log/level.
781
	# The level of log messages that are sent to the log file or syslog.
782
	# There are 6 syslog-like log levels currently in use: 2 to 7 inclusive.
783
	# 7 is the most verbose (LOG_DEBUG).
784
	level = 0
785
 
786
	# Configuration option log/indent.
787
	# Indent messages according to their severity.
788
	# This configuration option has an automatic default value.
789
	# indent = 0
790
 
791
	# Configuration option log/command_names.
792
	# Display the command name on each line of output.
793
	command_names = 0
794
 
795
	# Configuration option log/prefix.
796
	# A prefix to use before the log message text.
797
	# (After the command name, if selected).
798
	# Two spaces allows you to see/grep the severity of each message.
799
	# To make the messages look similar to the original LVM tools use:
800
	# indent = 0, command_names = 1, prefix = " -- "
801
	prefix = "  "
802
 
803
	# Configuration option log/activation.
804
	# Log messages during activation.
805
	# Don't use this in low memory situations (can deadlock).
806
	activation = 0
807
 
808
	# Configuration option log/debug_classes.
809
	# Select log messages by class.
810
	# Some debugging messages are assigned to a class and only appear in
811
	# debug output if the class is listed here. Classes currently
812
	# available: memory, devices, io, activation, allocation,
813
	# metadata, cache, locking, lvmpolld. Use "all" to see everything.
814
	debug_classes = [ "memory", "devices", "io", "activation", "allocation", "metadata", "cache", "locking", "lvmpolld", "dbus" ]
815
 
816
	# Configuration option log/debug_file_fields.
817
	# The fields included in debug output written to log file.
818
	# Use "all" to include everything (the default).
819
	# This configuration option is advanced.
820
	# This configuration option has an automatic default value.
821
	# debug_file_fields = [ "time", "command", "fileline", "message" ]
822
 
823
	# Configuration option log/debug_output_fields.
824
	# The fields included in debug output written to stderr.
825
	# Use "all" to include everything (the default).
826
	# This configuration option is advanced.
827
	# This configuration option has an automatic default value.
828
	# debug_output_fields = [ "time", "command", "fileline", "message" ]
829
}
830
 
831
# Configuration section backup.
832
# How LVM metadata is backed up and archived.
833
# In LVM, a 'backup' is a copy of the metadata for the current system,
834
# and an 'archive' contains old metadata configurations. They are
835
# stored in a human readable text format.
836
backup {
837
 
838
	# Configuration option backup/backup.
839
	# Maintain a backup of the current metadata configuration.
840
	# Think very hard before turning this off!
841
	backup = 1
842
 
843
	# Configuration option backup/backup_dir.
844
	# Location of the metadata backup files.
845
	# Remember to back up this directory regularly!
846
	backup_dir = "/etc/lvm/backup"
847
 
848
	# Configuration option backup/archive.
849
	# Maintain an archive of old metadata configurations.
850
	# Think very hard before turning this off.
851
	archive = 1
852
 
853
	# Configuration option backup/archive_dir.
854
	# Location of the metdata archive files.
855
	# Remember to back up this directory regularly!
856
	archive_dir = "/etc/lvm/archive"
857
 
858
	# Configuration option backup/retain_min.
859
	# Minimum number of archives to keep.
860
	retain_min = 10
861
 
862
	# Configuration option backup/retain_days.
863
	# Minimum number of days to keep archive files.
864
	retain_days = 30
865
}
866
 
867
# Configuration section shell.
868
# Settings for running LVM in shell (readline) mode.
869
shell {
870
 
871
	# Configuration option shell/history_size.
872
	# Number of lines of history to store in ~/.lvm_history.
873
	history_size = 100
874
}
875
 
876
# Configuration section global.
877
# Miscellaneous global LVM settings.
878
global {
879
 
880
	# Configuration option global/umask.
881
	# The file creation mask for any files and directories created.
882
	# Interpreted as octal if the first digit is zero.
883
	umask = 077
884
 
885
	# Configuration option global/test.
886
	# No on-disk metadata changes will be made in test mode.
887
	# Equivalent to having the -t option on every command.
888
	test = 0
889
 
890
	# Configuration option global/units.
891
	# Default value for --units argument.
892
	units = "r"
893
 
894
	# Configuration option global/si_unit_consistency.
895
	# Distinguish between powers of 1024 and 1000 bytes.
896
	# The LVM commands distinguish between powers of 1024 bytes,
897
	# e.g. KiB, MiB, GiB, and powers of 1000 bytes, e.g. KB, MB, GB.
898
	# If scripts depend on the old behaviour, disable this setting
899
	# temporarily until they are updated.
900
	si_unit_consistency = 1
901
 
902
	# Configuration option global/suffix.
903
	# Display unit suffix for sizes.
904
	# This setting has no effect if the units are in human-readable form
905
	# (global/units = "h") in which case the suffix is always displayed.
906
	suffix = 1
907
 
908
	# Configuration option global/activation.
909
	# Enable/disable communication with the kernel device-mapper.
910
	# Disable to use the tools to manipulate LVM metadata without
911
	# activating any logical volumes. If the device-mapper driver
912
	# is not present in the kernel, disabling this should suppress
913
	# the error messages.
914
	activation = 1
915
 
916
	# Configuration option global/proc.
917
	# Location of proc filesystem.
918
	# This configuration option is advanced.
919
	proc = "/proc"
920
 
921
	# Configuration option global/etc.
922
	# Location of /etc system configuration directory.
923
	etc = "/etc"
924
 
925
	# Configuration option global/wait_for_locks.
926
	# When disabled, fail if a lock request would block.
927
	wait_for_locks = 1
928
 
929
	# Configuration option global/locking_dir.
930
	# Directory to use for LVM command file locks.
931
	# Local non-LV directory that holds file-based locks while commands are
932
	# in progress. A directory like /tmp that may get wiped on reboot is OK.
933
	locking_dir = "/run/lock/lvm"
934
 
935
	# Configuration option global/prioritise_write_locks.
936
	# Allow quicker VG write access during high volume read access.
937
	# When there are competing read-only and read-write access requests for
938
	# a volume group's metadata, instead of always granting the read-only
939
	# requests immediately, delay them to allow the read-write requests to
940
	# be serviced. Without this setting, write access may be stalled by a
193 - 941
	# high volume of read-only requests. This option only affects file locks.
192 - 942
	prioritise_write_locks = 1
943
 
944
	# Configuration option global/library_dir.
945
	# Search this directory first for shared libraries.
946
	# This configuration option does not have a default value defined.
947
 
948
	# Configuration option global/abort_on_internal_errors.
949
	# Abort a command that encounters an internal error.
950
	# Treat any internal errors as fatal errors, aborting the process that
951
	# encountered the internal error. Please only enable for debugging.
952
	abort_on_internal_errors = 0
953
 
954
	# Configuration option global/metadata_read_only.
955
	# No operations that change on-disk metadata are permitted.
956
	# Additionally, read-only commands that encounter metadata in need of
957
	# repair will still be allowed to proceed exactly as if the repair had
958
	# been performed (except for the unchanged vg_seqno). Inappropriate
959
	# use could mess up your system, so seek advice first!
960
	metadata_read_only = 0
961
 
962
	# Configuration option global/mirror_segtype_default.
963
	# The segment type used by the short mirroring option -m.
964
	# The --type mirror|raid1 option overrides this setting.
965
	#
966
	# Accepted values:
967
	#   mirror
968
	#     The original RAID1 implementation from LVM/DM. It is
969
	#     characterized by a flexible log solution (core, disk, mirrored),
970
	#     and by the necessity to block I/O while handling a failure.
971
	#     There is an inherent race in the dmeventd failure handling logic
972
	#     with snapshots of devices using this type of RAID1 that in the
973
	#     worst case could cause a deadlock. (Also see
974
	#     devices/ignore_lvm_mirrors.)
975
	#   raid1
976
	#     This is a newer RAID1 implementation using the MD RAID1
977
	#     personality through device-mapper. It is characterized by a
978
	#     lack of log options. (A log is always allocated for every
979
	#     device and they are placed on the same device as the image,
980
	#     so no separate devices are required.) This mirror
981
	#     implementation does not require I/O to be blocked while
982
	#     handling a failure. This mirror implementation is not
983
	#     cluster-aware and cannot be used in a shared (active/active)
984
	#     fashion in a cluster.
985
	#
986
	mirror_segtype_default = "raid1"
987
 
988
	# Configuration option global/support_mirrored_mirror_log.
989
	# Enable mirrored 'mirror' log type for testing.
990
	#
991
	# This type is deprecated to create or convert to but can
992
	# be enabled to test that activation of existing mirrored
993
	# logs and conversion to disk/core works.
994
	#
995
	# Not supported for regular operation!
996
	# This configuration option has an automatic default value.
997
	# support_mirrored_mirror_log = 0
998
 
999
	# Configuration option global/raid10_segtype_default.
1000
	# The segment type used by the -i -m combination.
1001
	# The --type raid10|mirror option overrides this setting.
1002
	# The --stripes/-i and --mirrors/-m options can both be specified
1003
	# during the creation of a logical volume to use both striping and
1004
	# mirroring for the LV. There are two different implementations.
1005
	#
1006
	# Accepted values:
1007
	#   raid10
1008
	#     LVM uses MD's RAID10 personality through DM. This is the
1009
	#     preferred option.
1010
	#   mirror
1011
	#     LVM layers the 'mirror' and 'stripe' segment types. The layering
1012
	#     is done by creating a mirror LV on top of striped sub-LVs,
1013
	#     effectively creating a RAID 0+1 array. The layering is suboptimal
1014
	#     in terms of providing redundancy and performance.
1015
	#
1016
	raid10_segtype_default = "raid10"
1017
 
1018
	# Configuration option global/sparse_segtype_default.
1019
	# The segment type used by the -V -L combination.
1020
	# The --type snapshot|thin option overrides this setting.
1021
	# The combination of -V and -L options creates a sparse LV. There are
1022
	# two different implementations.
1023
	#
1024
	# Accepted values:
1025
	#   snapshot
1026
	#     The original snapshot implementation from LVM/DM. It uses an old
1027
	#     snapshot that mixes data and metadata within a single COW
1028
	#     storage volume and performs poorly when the size of stored data
1029
	#     passes hundreds of MB.
1030
	#   thin
1031
	#     A newer implementation that uses thin provisioning. It has a
1032
	#     bigger minimal chunk size (64KiB) and uses a separate volume for
1033
	#     metadata. It has better performance, especially when more data
1034
	#     is used. It also supports full snapshots.
1035
	#
1036
	sparse_segtype_default = "thin"
1037
 
1038
	# Configuration option global/lvdisplay_shows_full_device_path.
1039
	# Enable this to reinstate the previous lvdisplay name format.
1040
	# The default format for displaying LV names in lvdisplay was changed
1041
	# in version 2.02.89 to show the LV name and path separately.
1042
	# Previously this was always shown as /dev/vgname/lvname even when that
1043
	# was never a valid path in the /dev filesystem.
1044
	# This configuration option has an automatic default value.
1045
	# lvdisplay_shows_full_device_path = 0
1046
 
1047
	# Configuration option global/event_activation.
1048
	# Activate LVs based on system-generated device events.
1049
	# When a device appears on the system, a system-generated event runs
1050
	# the pvscan command to activate LVs if the new PV completes the VG.
1051
	# Use auto_activation_volume_list to select which LVs should be
1052
	# activated from these events (the default is all.)
1053
	# When event_activation is disabled, the system will generally run
1054
	# a direct activation command to activate LVs in complete VGs.
1055
	# This configuration option has an automatic default value.
1056
	# event_activation = 1
1057
 
1058
	# Configuration option global/use_aio.
1059
	# Use async I/O when reading and writing devices.
1060
	# This configuration option has an automatic default value.
1061
	# use_aio = 1
1062
 
1063
	# Configuration option global/use_lvmlockd.
1064
	# Use lvmlockd for locking among hosts using LVM on shared storage.
1065
	# Applicable only if LVM is compiled with lockd support in which
1066
	# case there is also lvmlockd(8) man page available for more
1067
	# information.
1068
	use_lvmlockd = 0
1069
 
1070
	# Configuration option global/lvmlockd_lock_retries.
1071
	# Retry lvmlockd lock requests this many times.
1072
	# Applicable only if LVM is compiled with lockd support
1073
	# This configuration option has an automatic default value.
1074
	# lvmlockd_lock_retries = 3
1075
 
1076
	# Configuration option global/sanlock_lv_extend.
1077
	# Size in MiB to extend the internal LV holding sanlock locks.
1078
	# The internal LV holds locks for each LV in the VG, and after enough
1079
	# LVs have been created, the internal LV needs to be extended. lvcreate
1080
	# will automatically extend the internal LV when needed by the amount
1081
	# specified here. Setting this to 0 disables the automatic extension
1082
	# and can cause lvcreate to fail. Applicable only if LVM is compiled
1083
	# with lockd support
1084
	# This configuration option has an automatic default value.
1085
	# sanlock_lv_extend = 256
1086
 
1087
	# Configuration option global/thin_check_executable.
1088
	# The full path to the thin_check command.
1089
	# LVM uses this command to check that a thin metadata device is in a
1090
	# usable state. When a thin pool is activated and after it is
1091
	# deactivated, this command is run. Activation will only proceed if
1092
	# the command has an exit status of 0. Set to "" to skip this check.
1093
	# (Not recommended.) Also see thin_check_options.
1094
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1095
	# This configuration option has an automatic default value.
1096
	# thin_check_executable = "/usr/sbin/thin_check"
1097
 
1098
	# Configuration option global/thin_dump_executable.
1099
	# The full path to the thin_dump command.
1100
	# LVM uses this command to dump thin pool metadata.
1101
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1102
	# This configuration option has an automatic default value.
1103
	# thin_dump_executable = "/usr/sbin/thin_dump"
1104
 
1105
	# Configuration option global/thin_repair_executable.
1106
	# The full path to the thin_repair command.
1107
	# LVM uses this command to repair a thin metadata device if it is in
1108
	# an unusable state. Also see thin_repair_options.
1109
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1110
	# This configuration option has an automatic default value.
1111
	# thin_repair_executable = "/usr/sbin/thin_repair"
1112
 
1113
	# Configuration option global/thin_check_options.
1114
	# List of options passed to the thin_check command.
1115
	# With thin_check version 2.1 or newer you can add the option
1116
	# --ignore-non-fatal-errors to let it pass through ignorable errors
1117
	# and fix them later. With thin_check version 3.2 or newer you should
1118
	# include the option --clear-needs-check-flag.
1119
	# This configuration option has an automatic default value.
1120
	# thin_check_options = [ "-q", "--clear-needs-check-flag" ]
1121
 
1122
	# Configuration option global/thin_repair_options.
1123
	# List of options passed to the thin_repair command.
1124
	# This configuration option has an automatic default value.
1125
	# thin_repair_options = [ "" ]
1126
 
1127
	# Configuration option global/thin_disabled_features.
1128
	# Features to not use in the thin driver.
1129
	# This can be helpful for testing, or to avoid using a feature that is
1130
	# causing problems. Features include: block_size, discards,
1131
	# discards_non_power_2, external_origin, metadata_resize,
1132
	# external_origin_extend, error_if_no_space.
1133
	#
1134
	# Example
1135
	# thin_disabled_features = [ "discards", "block_size" ]
1136
	#
1137
	# This configuration option does not have a default value defined.
1138
 
1139
	# Configuration option global/cache_disabled_features.
1140
	# Features to not use in the cache driver.
1141
	# This can be helpful for testing, or to avoid using a feature that is
1142
	# causing problems. Features include: policy_mq, policy_smq, metadata2.
1143
	#
1144
	# Example
1145
	# cache_disabled_features = [ "policy_smq" ]
1146
	#
1147
	# This configuration option does not have a default value defined.
1148
 
1149
	# Configuration option global/cache_check_executable.
1150
	# The full path to the cache_check command.
1151
	# LVM uses this command to check that a cache metadata device is in a
1152
	# usable state. When a cached LV is activated and after it is
1153
	# deactivated, this command is run. Activation will only proceed if the
1154
	# command has an exit status of 0. Set to "" to skip this check.
1155
	# (Not recommended.) Also see cache_check_options.
1156
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1157
	# This configuration option has an automatic default value.
1158
	# cache_check_executable = "/usr/sbin/cache_check"
1159
 
1160
	# Configuration option global/cache_dump_executable.
1161
	# The full path to the cache_dump command.
1162
	# LVM uses this command to dump cache pool metadata.
1163
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1164
	# This configuration option has an automatic default value.
1165
	# cache_dump_executable = "/usr/sbin/cache_dump"
1166
 
1167
	# Configuration option global/cache_repair_executable.
1168
	# The full path to the cache_repair command.
1169
	# LVM uses this command to repair a cache metadata device if it is in
1170
	# an unusable state. Also see cache_repair_options.
1171
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1172
	# This configuration option has an automatic default value.
1173
	# cache_repair_executable = "/usr/sbin/cache_repair"
1174
 
1175
	# Configuration option global/cache_check_options.
1176
	# List of options passed to the cache_check command.
1177
	# With cache_check version 5.0 or newer you should include the option
1178
	# --clear-needs-check-flag.
1179
	# This configuration option has an automatic default value.
1180
	# cache_check_options = [ "-q", "--clear-needs-check-flag" ]
1181
 
1182
	# Configuration option global/cache_repair_options.
1183
	# List of options passed to the cache_repair command.
1184
	# This configuration option has an automatic default value.
1185
	# cache_repair_options = [ "" ]
1186
 
1187
	# Configuration option global/vdo_format_executable.
1188
	# The full path to the vdoformat command.
1189
	# LVM uses this command to initial data volume for VDO type logical volume
1190
	# This configuration option has an automatic default value.
1191
	# vdo_format_executable = "/usr/bin/vdoformat"
1192
 
1193
	# Configuration option global/vdo_format_options.
1194
	# List of options passed added to standard vdoformat command.
1195
	# This configuration option has an automatic default value.
1196
	# vdo_format_options = [ "" ]
1197
 
1198
	# Configuration option global/fsadm_executable.
1199
	# The full path to the fsadm command.
1200
	# LVM uses this command to help with lvresize -r operations.
1201
	# This configuration option has an automatic default value.
1202
	# fsadm_executable = "/usr/sbin/fsadm"
1203
 
1204
	# Configuration option global/system_id_source.
1205
	# The method LVM uses to set the local system ID.
1206
	# Volume Groups can also be given a system ID (by vgcreate, vgchange,
1207
	# or vgimport.) A VG on shared storage devices is accessible only to
1208
	# the host with a matching system ID. See 'man lvmsystemid' for
1209
	# information on limitations and correct usage.
1210
	#
1211
	# Accepted values:
1212
	#   none
1213
	#     The host has no system ID.
1214
	#   lvmlocal
1215
	#     Obtain the system ID from the system_id setting in the 'local'
1216
	#     section of an lvm configuration file, e.g. lvmlocal.conf.
1217
	#   uname
1218
	#     Set the system ID from the hostname (uname) of the system.
1219
	#     System IDs beginning localhost are not permitted.
1220
	#   machineid
1221
	#     Use the contents of the machine-id file to set the system ID.
1222
	#     Some systems create this file at installation time.
1223
	#     See 'man machine-id' and global/etc.
1224
	#   file
1225
	#     Use the contents of another file (system_id_file) to set the
1226
	#     system ID.
1227
	#
1228
	system_id_source = "none"
1229
 
1230
	# Configuration option global/system_id_file.
1231
	# The full path to the file containing a system ID.
1232
	# This is used when system_id_source is set to 'file'.
1233
	# Comments starting with the character # are ignored.
1234
	# This configuration option does not have a default value defined.
1235
 
1236
	# Configuration option global/use_lvmpolld.
1237
	# Use lvmpolld to supervise long running LVM commands.
1238
	# When enabled, control of long running LVM commands is transferred
1239
	# from the original LVM command to the lvmpolld daemon. This allows
1240
	# the operation to continue independent of the original LVM command.
1241
	# After lvmpolld takes over, the LVM command displays the progress
1242
	# of the ongoing operation. lvmpolld itself runs LVM commands to
1243
	# manage the progress of ongoing operations. lvmpolld can be used as
1244
	# a native systemd service, which allows it to be started on demand,
1245
	# and to use its own control group. When this option is disabled, LVM
1246
	# commands will supervise long running operations by forking themselves.
1247
	# Applicable only if LVM is compiled with lvmpolld support.
1248
	use_lvmpolld = 1
1249
 
1250
	# Configuration option global/notify_dbus.
1251
	# Enable D-Bus notification from LVM commands.
1252
	# When enabled, an LVM command that changes PVs, changes VG metadata,
1253
	# or changes the activation state of an LV will send a notification.
1254
	notify_dbus = 1
1255
 
1256
	# Configuration option global/io_memory_size.
1257
	# The amount of memory in KiB that LVM allocates to perform disk io.
1258
	# LVM performance may benefit from more io memory when there are many
1259
	# disks or VG metadata is large. Increasing this size may be necessary
1260
	# when a single copy of VG metadata is larger than the current setting.
1261
	# This value should usually not be decreased from the default; setting
1262
	# it too low can result in lvm failing to read VGs.
1263
	# This configuration option has an automatic default value.
1264
	# io_memory_size = 8192
1265
}
1266
 
1267
# Configuration section activation.
1268
activation {
1269
 
1270
	# Configuration option activation/checks.
1271
	# Perform internal checks of libdevmapper operations.
1272
	# Useful for debugging problems with activation. Some of the checks may
1273
	# be expensive, so it's best to use this only when there seems to be a
1274
	# problem.
1275
	checks = 0
1276
 
1277
	# Configuration option activation/udev_sync.
1278
	# Use udev notifications to synchronize udev and LVM.
1279
	# The --nodevsync option overrides this setting.
1280
	# When disabled, LVM commands will not wait for notifications from
1281
	# udev, but continue irrespective of any possible udev processing in
1282
	# the background. Only use this if udev is not running or has rules
1283
	# that ignore the devices LVM creates. If enabled when udev is not
1284
	# running, and LVM processes are waiting for udev, run the command
1285
	# 'dmsetup udevcomplete_all' to wake them up.
1286
	udev_sync = 1
1287
 
1288
	# Configuration option activation/udev_rules.
1289
	# Use udev rules to manage LV device nodes and symlinks.
1290
	# When disabled, LVM will manage the device nodes and symlinks for
1291
	# active LVs itself. Manual intervention may be required if this
1292
	# setting is changed while LVs are active.
1293
	udev_rules = 1
1294
 
1295
	# Configuration option activation/verify_udev_operations.
1296
	# Use extra checks in LVM to verify udev operations.
1297
	# This enables additional checks (and if necessary, repairs) on entries
1298
	# in the device directory after udev has completed processing its
1299
	# events. Useful for diagnosing problems with LVM/udev interactions.
1300
	# This configuration option has an automatic default value.
1301
	# verify_udev_operations = 0
1302
 
1303
	# Configuration option activation/retry_deactivation.
1304
	# Retry failed LV deactivation.
1305
	# If LV deactivation fails, LVM will retry for a few seconds before
1306
	# failing. This may happen because a process run from a quick udev rule
1307
	# temporarily opened the device.
1308
	retry_deactivation = 1
1309
 
1310
	# Configuration option activation/missing_stripe_filler.
1311
	# Method to fill missing stripes when activating an incomplete LV.
1312
	# Using 'error' will make inaccessible parts of the device return I/O
1313
	# errors on access. Using 'zero' will return success (and zero) on I/O
1314
	# You can instead use a device path, in which case,
1315
	# that device will be used in place of missing stripes. Using anything
1316
	# other than 'error' with mirrored or snapshotted volumes is likely to
1317
	# result in data corruption.
1318
	# This configuration option is advanced.
1319
	missing_stripe_filler = "error"
1320
 
1321
	# Configuration option activation/use_linear_target.
1322
	# Use the linear target to optimize single stripe LVs.
1323
	# When disabled, the striped target is used. The linear target is an
1324
	# optimised version of the striped target that only handles a single
1325
	# stripe.
1326
	# This configuration option has an automatic default value.
1327
	# use_linear_target = 1
1328
 
1329
	# Configuration option activation/reserved_stack.
1330
	# Stack size in KiB to reserve for use while devices are suspended.
1331
	# Insufficent reserve risks I/O deadlock during device suspension.
1332
	# This configuration option has an automatic default value.
1333
	# reserved_stack = 64
1334
 
1335
	# Configuration option activation/reserved_memory.
1336
	# Memory size in KiB to reserve for use while devices are suspended.
1337
	# Insufficent reserve risks I/O deadlock during device suspension.
1338
	# This configuration option has an automatic default value.
1339
	# reserved_memory = 8192
1340
 
1341
	# Configuration option activation/process_priority.
1342
	# Nice value used while devices are suspended.
1343
	# Use a high priority so that LVs are suspended
1344
	# for the shortest possible time.
1345
	# This configuration option has an automatic default value.
1346
	# process_priority = -18
1347
 
1348
	# Configuration option activation/volume_list.
1349
	# Only LVs selected by this list are activated.
1350
	# If this list is defined, an LV is only activated if it matches an
1351
	# entry in this list. If this list is undefined, it imposes no limits
1352
	# on LV activation (all are allowed).
1353
	#
1354
	# Accepted values:
1355
	#   vgname
1356
	#     The VG name is matched exactly and selects all LVs in the VG.
1357
	#   vgname/lvname
1358
	#     The VG name and LV name are matched exactly and selects the LV.
1359
	#   @tag
1360
	#     Selects an LV if the specified tag matches a tag set on the LV
1361
	#     or VG.
1362
	#   @*
1363
	#     Selects an LV if a tag defined on the host is also set on the LV
1364
	#     or VG. See tags/hosttags. If any host tags exist but volume_list
1365
	#     is not defined, a default single-entry list containing '@*'
1366
	#     is assumed.
1367
	#
1368
	# Example
1369
	# volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
1370
	#
1371
	# This configuration option does not have a default value defined.
1372
 
1373
	# Configuration option activation/auto_activation_volume_list.
1374
	# Only LVs selected by this list are auto-activated.
1375
	# This list works like volume_list, but it is used only by
1376
	# auto-activation commands. It does not apply to direct activation
1377
	# commands. If this list is defined, an LV is only auto-activated
1378
	# if it matches an entry in this list. If this list is undefined, it
1379
	# imposes no limits on LV auto-activation (all are allowed.) If this
1380
	# list is defined and empty, i.e. "[]", then no LVs are selected for
1381
	# auto-activation. An LV that is selected by this list for
1382
	# auto-activation, must also be selected by volume_list (if defined)
1383
	# before it is activated. Auto-activation is an activation command that
1384
	# includes the 'a' argument: --activate ay or -a ay. The 'a' (auto)
1385
	# argument for auto-activation is meant to be used by activation
1386
	# commands that are run automatically by the system, as opposed to LVM
1387
	# commands run directly by a user. A user may also use the 'a' flag
1388
	# directly to perform auto-activation. Also see pvscan(8) for more
1389
	# information about auto-activation.
1390
	#
1391
	# Accepted values:
1392
	#   vgname
1393
	#     The VG name is matched exactly and selects all LVs in the VG.
1394
	#   vgname/lvname
1395
	#     The VG name and LV name are matched exactly and selects the LV.
1396
	#   @tag
1397
	#     Selects an LV if the specified tag matches a tag set on the LV
1398
	#     or VG.
1399
	#   @*
1400
	#     Selects an LV if a tag defined on the host is also set on the LV
1401
	#     or VG. See tags/hosttags. If any host tags exist but volume_list
1402
	#     is not defined, a default single-entry list containing '@*'
1403
	#     is assumed.
1404
	#
1405
	# Example
1406
	# auto_activation_volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
1407
	#
1408
	# This configuration option does not have a default value defined.
1409
 
1410
	# Configuration option activation/read_only_volume_list.
1411
	# LVs in this list are activated in read-only mode.
1412
	# If this list is defined, each LV that is to be activated is checked
1413
	# against this list, and if it matches, it is activated in read-only
1414
	# mode. This overrides the permission setting stored in the metadata,
1415
	# e.g. from --permission rw.
1416
	#
1417
	# Accepted values:
1418
	#   vgname
1419
	#     The VG name is matched exactly and selects all LVs in the VG.
1420
	#   vgname/lvname
1421
	#     The VG name and LV name are matched exactly and selects the LV.
1422
	#   @tag
1423
	#     Selects an LV if the specified tag matches a tag set on the LV
1424
	#     or VG.
1425
	#   @*
1426
	#     Selects an LV if a tag defined on the host is also set on the LV
1427
	#     or VG. See tags/hosttags. If any host tags exist but volume_list
1428
	#     is not defined, a default single-entry list containing '@*'
1429
	#     is assumed.
1430
	#
1431
	# Example
1432
	# read_only_volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
1433
	#
1434
	# This configuration option does not have a default value defined.
1435
 
1436
	# Configuration option activation/raid_region_size.
1437
	# Size in KiB of each raid or mirror synchronization region.
1438
	# The clean/dirty state of data is tracked for each region.
1439
	# The value is rounded down to a power of two if necessary, and
1440
	# is ignored if it is not a multiple of the machine memory page size.
1441
	raid_region_size = 2048
1442
 
1443
	# Configuration option activation/error_when_full.
1444
	# Return errors if a thin pool runs out of space.
1445
	# The --errorwhenfull option overrides this setting.
1446
	# When enabled, writes to thin LVs immediately return an error if the
1447
	# thin pool is out of data space. When disabled, writes to thin LVs
1448
	# are queued if the thin pool is out of space, and processed when the
1449
	# thin pool data space is extended. New thin pools are assigned the
1450
	# behavior defined here.
1451
	# This configuration option has an automatic default value.
1452
	# error_when_full = 0
1453
 
1454
	# Configuration option activation/readahead.
1455
	# Setting to use when there is no readahead setting in metadata.
1456
	#
1457
	# Accepted values:
1458
	#   none
1459
	#     Disable readahead.
1460
	#   auto
1461
	#     Use default value chosen by kernel.
1462
	#
1463
	# This configuration option has an automatic default value.
1464
	# readahead = "auto"
1465
 
1466
	# Configuration option activation/raid_fault_policy.
1467
	# Defines how a device failure in a RAID LV is handled.
1468
	# This includes LVs that have the following segment types:
1469
	# raid1, raid4, raid5*, and raid6*.
1470
	# If a device in the LV fails, the policy determines the steps
1471
	# performed by dmeventd automatically, and the steps perfomed by the
1472
	# manual command lvconvert --repair --use-policies.
1473
	# Automatic handling requires dmeventd to be monitoring the LV.
1474
	#
1475
	# Accepted values:
1476
	#   warn
1477
	#     Use the system log to warn the user that a device in the RAID LV
1478
	#     has failed. It is left to the user to run lvconvert --repair
1479
	#     manually to remove or replace the failed device. As long as the
1480
	#     number of failed devices does not exceed the redundancy of the LV
1481
	#     (1 device for raid4/5, 2 for raid6), the LV will remain usable.
1482
	#   allocate
1483
	#     Attempt to use any extra physical volumes in the VG as spares and
1484
	#     replace faulty devices.
1485
	#
1486
	raid_fault_policy = "warn"
1487
 
1488
	# Configuration option activation/mirror_image_fault_policy.
1489
	# Defines how a device failure in a 'mirror' LV is handled.
1490
	# An LV with the 'mirror' segment type is composed of mirror images
1491
	# (copies) and a mirror log. A disk log ensures that a mirror LV does
1492
	# not need to be re-synced (all copies made the same) every time a
1493
	# machine reboots or crashes. If a device in the LV fails, this policy
1494
	# determines the steps perfomed by dmeventd automatically, and the steps
1495
	# performed by the manual command lvconvert --repair --use-policies.
1496
	# Automatic handling requires dmeventd to be monitoring the LV.
1497
	#
1498
	# Accepted values:
1499
	#   remove
1500
	#     Simply remove the faulty device and run without it. If the log
1501
	#     device fails, the mirror would convert to using an in-memory log.
1502
	#     This means the mirror will not remember its sync status across
1503
	#     crashes/reboots and the entire mirror will be re-synced. If a
1504
	#     mirror image fails, the mirror will convert to a non-mirrored
1505
	#     device if there is only one remaining good copy.
1506
	#   allocate
1507
	#     Remove the faulty device and try to allocate space on a new
1508
	#     device to be a replacement for the failed device. Using this
1509
	#     policy for the log is fast and maintains the ability to remember
1510
	#     sync state through crashes/reboots. Using this policy for a
1511
	#     mirror device is slow, as it requires the mirror to resynchronize
1512
	#     the devices, but it will preserve the mirror characteristic of
1513
	#     the device. This policy acts like 'remove' if no suitable device
1514
	#     and space can be allocated for the replacement.
1515
	#   allocate_anywhere
1516
	#     Not yet implemented. Useful to place the log device temporarily
1517
	#     on the same physical volume as one of the mirror images. This
1518
	#     policy is not recommended for mirror devices since it would break
1519
	#     the redundant nature of the mirror. This policy acts like
1520
	#     'remove' if no suitable device and space can be allocated for the
1521
	#     replacement.
1522
	#
1523
	mirror_image_fault_policy = "remove"
1524
 
1525
	# Configuration option activation/mirror_log_fault_policy.
1526
	# Defines how a device failure in a 'mirror' log LV is handled.
1527
	# The mirror_image_fault_policy description for mirrored LVs also
1528
	# applies to mirrored log LVs.
1529
	mirror_log_fault_policy = "allocate"
1530
 
1531
	# Configuration option activation/snapshot_autoextend_threshold.
1532
	# Auto-extend a snapshot when its usage exceeds this percent.
1533
	# Setting this to 100 disables automatic extension.
1534
	# The minimum value is 50 (a smaller value is treated as 50.)
1535
	# Also see snapshot_autoextend_percent.
1536
	# Automatic extension requires dmeventd to be monitoring the LV.
1537
	#
1538
	# Example
1539
	# Using 70% autoextend threshold and 20% autoextend size, when a 1G
1540
	# snapshot exceeds 700M, it is extended to 1.2G, and when it exceeds
1541
	# 840M, it is extended to 1.44G:
1542
	# snapshot_autoextend_threshold = 70
1543
	#
1544
	snapshot_autoextend_threshold = 100
1545
 
1546
	# Configuration option activation/snapshot_autoextend_percent.
1547
	# Auto-extending a snapshot adds this percent extra space.
1548
	# The amount of additional space added to a snapshot is this
1549
	# percent of its current size.
1550
	#
1551
	# Example
1552
	# Using 70% autoextend threshold and 20% autoextend size, when a 1G
1553
	# snapshot exceeds 700M, it is extended to 1.2G, and when it exceeds
1554
	# 840M, it is extended to 1.44G:
1555
	# snapshot_autoextend_percent = 20
1556
	#
1557
	snapshot_autoextend_percent = 20
1558
 
1559
	# Configuration option activation/thin_pool_autoextend_threshold.
1560
	# Auto-extend a thin pool when its usage exceeds this percent.
1561
	# Setting this to 100 disables automatic extension.
1562
	# The minimum value is 50 (a smaller value is treated as 50.)
1563
	# Also see thin_pool_autoextend_percent.
1564
	# Automatic extension requires dmeventd to be monitoring the LV.
1565
	#
1566
	# Example
1567
	# Using 70% autoextend threshold and 20% autoextend size, when a 1G
1568
	# thin pool exceeds 700M, it is extended to 1.2G, and when it exceeds
1569
	# 840M, it is extended to 1.44G:
1570
	# thin_pool_autoextend_threshold = 70
1571
	#
1572
	thin_pool_autoextend_threshold = 100
1573
 
1574
	# Configuration option activation/thin_pool_autoextend_percent.
1575
	# Auto-extending a thin pool adds this percent extra space.
1576
	# The amount of additional space added to a thin pool is this
1577
	# percent of its current size.
1578
	#
1579
	# Example
1580
	# Using 70% autoextend threshold and 20% autoextend size, when a 1G
1581
	# thin pool exceeds 700M, it is extended to 1.2G, and when it exceeds
1582
	# 840M, it is extended to 1.44G:
1583
	# thin_pool_autoextend_percent = 20
1584
	#
1585
	thin_pool_autoextend_percent = 20
1586
 
1587
	# Configuration option activation/vdo_pool_autoextend_threshold.
1588
	# Auto-extend a VDO pool when its usage exceeds this percent.
1589
	# Setting this to 100 disables automatic extension.
1590
	# The minimum value is 50 (a smaller value is treated as 50.)
1591
	# Also see vdo_pool_autoextend_percent.
1592
	# Automatic extension requires dmeventd to be monitoring the LV.
1593
	#
1594
	# Example
1595
	# Using 70% autoextend threshold and 20% autoextend size, when a 10G
1596
	# VDO pool exceeds 7G, it is extended to 12G, and when it exceeds
1597
	# 8.4G, it is extended to 14.4G:
1598
	# vdo_pool_autoextend_threshold = 70
1599
	#
1600
	# This configuration option has an automatic default value.
1601
	# vdo_pool_autoextend_threshold = 100
1602
 
1603
	# Configuration option activation/vdo_pool_autoextend_percent.
1604
	# Auto-extending a VDO pool adds this percent extra space.
1605
	# The amount of additional space added to a VDO pool is this
1606
	# percent of its current size.
1607
	#
1608
	# Example
1609
	# Using 70% autoextend threshold and 20% autoextend size, when a 10G
1610
	# VDO pool exceeds 7G, it is extended to 12G, and when it exceeds
1611
	# 8.4G, it is extended to 14.4G:
1612
	# This configuration option has an automatic default value.
1613
	# vdo_pool_autoextend_percent = 20
1614
 
1615
	# Configuration option activation/mlock_filter.
1616
	# Do not mlock these memory areas.
1617
	# While activating devices, I/O to devices being (re)configured is
1618
	# suspended. As a precaution against deadlocks, LVM pins memory it is
1619
	# using so it is not paged out, and will not require I/O to reread.
1620
	# Groups of pages that are known not to be accessed during activation
1621
	# do not need to be pinned into memory. Each string listed in this
1622
	# setting is compared against each line in /proc/self/maps, and the
1623
	# pages corresponding to lines that match are not pinned. On some
1624
	# systems, locale-archive was found to make up over 80% of the memory
1625
	# used by the process.
1626
	#
1627
	# Example
1628
	# mlock_filter = [ "locale/locale-archive", "gconv/gconv-modules.cache" ]
1629
	#
1630
	# This configuration option is advanced.
1631
	# This configuration option does not have a default value defined.
1632
 
1633
	# Configuration option activation/use_mlockall.
1634
	# Use the old behavior of mlockall to pin all memory.
1635
	# Prior to version 2.02.62, LVM used mlockall() to pin the whole
1636
	# process's memory while activating devices.
1637
	# This configuration option has an automatic default value.
1638
	# use_mlockall = 0
1639
 
1640
	# Configuration option activation/monitoring.
1641
	# Monitor LVs that are activated.
1642
	# The --ignoremonitoring option overrides this setting.
1643
	# When enabled, LVM will ask dmeventd to monitor activated LVs.
1644
	monitoring = 1
1645
 
1646
	# Configuration option activation/polling_interval.
1647
	# Check pvmove or lvconvert progress at this interval (seconds).
1648
	# When pvmove or lvconvert must wait for the kernel to finish
1649
	# synchronising or merging data, they check and report progress at
1650
	# intervals of this number of seconds. If this is set to 0 and there
1651
	# is only one thing to wait for, there are no progress reports, but
1652
	# the process is awoken immediately once the operation is complete.
1653
	# This configuration option has an automatic default value.
1654
	# polling_interval = 15
1655
 
1656
	# Configuration option activation/auto_set_activation_skip.
1657
	# Set the activation skip flag on new thin snapshot LVs.
1658
	# The --setactivationskip option overrides this setting.
1659
	# An LV can have a persistent 'activation skip' flag. The flag causes
1660
	# the LV to be skipped during normal activation. The lvchange/vgchange
1661
	# -K option is required to activate LVs that have the activation skip
1662
	# flag set. When this setting is enabled, the activation skip flag is
1663
	# set on new thin snapshot LVs.
1664
	# This configuration option has an automatic default value.
1665
	# auto_set_activation_skip = 1
1666
 
1667
	# Configuration option activation/activation_mode.
1668
	# How LVs with missing devices are activated.
1669
	# The --activationmode option overrides this setting.
1670
	#
1671
	# Accepted values:
1672
	#   complete
1673
	#     Only allow activation of an LV if all of the Physical Volumes it
1674
	#     uses are present. Other PVs in the Volume Group may be missing.
1675
	#   degraded
1676
	#     Like complete, but additionally RAID LVs of segment type raid1,
1677
	#     raid4, raid5, radid6 and raid10 will be activated if there is no
1678
	#     data loss, i.e. they have sufficient redundancy to present the
1679
	#     entire addressable range of the Logical Volume.
1680
	#   partial
1681
	#     Allows the activation of any LV even if a missing or failed PV
1682
	#     could cause data loss with a portion of the LV inaccessible.
1683
	#     This setting should not normally be used, but may sometimes
1684
	#     assist with data recovery.
1685
	#
1686
	activation_mode = "degraded"
1687
 
1688
	# Configuration option activation/lock_start_list.
1689
	# Locking is started only for VGs selected by this list.
1690
	# The rules are the same as those for volume_list.
1691
	# This configuration option does not have a default value defined.
1692
 
1693
	# Configuration option activation/auto_lock_start_list.
1694
	# Locking is auto-started only for VGs selected by this list.
1695
	# The rules are the same as those for auto_activation_volume_list.
1696
	# This configuration option does not have a default value defined.
1697
}
1698
 
1699
# Configuration section metadata.
1700
# This configuration section has an automatic default value.
1701
# metadata {
1702
 
1703
	# Configuration option metadata/check_pv_device_sizes.
1704
	# Check device sizes are not smaller than corresponding PV sizes.
1705
	# If device size is less than corresponding PV size found in metadata,
1706
	# there is always a risk of data loss. If this option is set, then LVM
1707
	# issues a warning message each time it finds that the device size is
1708
	# less than corresponding PV size. You should not disable this unless
1709
	# you are absolutely sure about what you are doing!
1710
	# This configuration option is advanced.
1711
	# This configuration option has an automatic default value.
1712
	# check_pv_device_sizes = 1
1713
 
1714
	# Configuration option metadata/record_lvs_history.
1715
	# When enabled, LVM keeps history records about removed LVs in
1716
	# metadata. The information that is recorded in metadata for
1717
	# historical LVs is reduced when compared to original
1718
	# information kept in metadata for live LVs. Currently, this
1719
	# feature is supported for thin and thin snapshot LVs only.
1720
	# This configuration option has an automatic default value.
1721
	# record_lvs_history = 0
1722
 
1723
	# Configuration option metadata/lvs_history_retention_time.
1724
	# Retention time in seconds after which a record about individual
1725
	# historical logical volume is automatically destroyed.
1726
	# A value of 0 disables this feature.
1727
	# This configuration option has an automatic default value.
1728
	# lvs_history_retention_time = 0
1729
 
1730
	# Configuration option metadata/pvmetadatacopies.
1731
	# Number of copies of metadata to store on each PV.
1732
	# The --pvmetadatacopies option overrides this setting.
1733
	#
1734
	# Accepted values:
1735
	#   2
1736
	#     Two copies of the VG metadata are stored on the PV, one at the
1737
	#     front of the PV, and one at the end.
1738
	#   1
1739
	#     One copy of VG metadata is stored at the front of the PV.
1740
	#   0
1741
	#     No copies of VG metadata are stored on the PV. This may be
1742
	#     useful for VGs containing large numbers of PVs.
1743
	#
1744
	# This configuration option is advanced.
1745
	# This configuration option has an automatic default value.
1746
	# pvmetadatacopies = 1
1747
 
1748
	# Configuration option metadata/vgmetadatacopies.
1749
	# Number of copies of metadata to maintain for each VG.
1750
	# The --vgmetadatacopies option overrides this setting.
1751
	# If set to a non-zero value, LVM automatically chooses which of the
1752
	# available metadata areas to use to achieve the requested number of
1753
	# copies of the VG metadata. If you set a value larger than the the
1754
	# total number of metadata areas available, then metadata is stored in
1755
	# them all. The value 0 (unmanaged) disables this automatic management
1756
	# and allows you to control which metadata areas are used at the
1757
	# individual PV level using pvchange --metadataignore y|n.
1758
	# This configuration option has an automatic default value.
1759
	# vgmetadatacopies = 0
1760
 
1761
	# Configuration option metadata/pvmetadatasize.
1762
	# The default size of the metadata area in units of 512 byte sectors.
1763
	# The metadata area begins at an offset of the page size from the start
1764
	# of the device. The first PE is by default at 1 MiB from the start of
1765
	# the device. The space between these is the default metadata area size.
1766
	# The actual size of the metadata area may be larger than what is set
1767
	# here due to default_data_alignment making the first PE a MiB multiple.
1768
	# The metadata area begins with a 512 byte header and is followed by a
1769
	# circular buffer used for VG metadata text. The maximum size of the VG
1770
	# metadata is about half the size of the metadata buffer. VGs with large
1771
	# numbers of PVs or LVs, or VGs containing complex LV structures, may need
1772
	# additional space for VG metadata. The --metadatasize option overrides
1773
	# this setting.
1774
	# This configuration option does not have a default value defined.
1775
 
1776
	# Configuration option metadata/pvmetadataignore.
1777
	# Ignore metadata areas on a new PV.
1778
	# The --metadataignore option overrides this setting.
1779
	# If metadata areas on a PV are ignored, LVM will not store metadata
1780
	# in them.
1781
	# This configuration option is advanced.
1782
	# This configuration option has an automatic default value.
1783
	# pvmetadataignore = 0
1784
 
1785
	# Configuration option metadata/stripesize.
1786
	# This configuration option is advanced.
1787
	# This configuration option has an automatic default value.
1788
	# stripesize = 64
1789
# }
1790
 
1791
# Configuration section report.
1792
# LVM report command output formatting.
1793
# This configuration section has an automatic default value.
1794
# report {
1795
 
1796
	# Configuration option report/output_format.
1797
	# Format of LVM command's report output.
1798
	# If there is more than one report per command, then the format
1799
	# is applied for all reports. You can also change output format
1800
	# directly on command line using --reportformat option which
1801
	# has precedence over log/output_format setting.
1802
	# Accepted values:
1803
	#   basic
1804
	#     Original format with columns and rows. If there is more than
1805
	#     one report per command, each report is prefixed with report's
1806
	#     name for identification.
1807
	#   json
1808
	#     JSON format.
1809
	# This configuration option has an automatic default value.
1810
	# output_format = "basic"
1811
 
1812
	# Configuration option report/compact_output.
1813
	# Do not print empty values for all report fields.
1814
	# If enabled, all fields that don't have a value set for any of the
1815
	# rows reported are skipped and not printed. Compact output is
1816
	# applicable only if report/buffered is enabled. If you need to
1817
	# compact only specified fields, use compact_output=0 and define
1818
	# report/compact_output_cols configuration setting instead.
1819
	# This configuration option has an automatic default value.
1820
	# compact_output = 0
1821
 
1822
	# Configuration option report/compact_output_cols.
1823
	# Do not print empty values for specified report fields.
1824
	# If defined, specified fields that don't have a value set for any
1825
	# of the rows reported are skipped and not printed. Compact output
1826
	# is applicable only if report/buffered is enabled. If you need to
1827
	# compact all fields, use compact_output=1 instead in which case
1828
	# the compact_output_cols setting is then ignored.
1829
	# This configuration option has an automatic default value.
1830
	# compact_output_cols = ""
1831
 
1832
	# Configuration option report/aligned.
1833
	# Align columns in report output.
1834
	# This configuration option has an automatic default value.
1835
	# aligned = 1
1836
 
1837
	# Configuration option report/buffered.
1838
	# Buffer report output.
1839
	# When buffered reporting is used, the report's content is appended
1840
	# incrementally to include each object being reported until the report
1841
	# is flushed to output which normally happens at the end of command
1842
	# execution. Otherwise, if buffering is not used, each object is
1843
	# reported as soon as its processing is finished.
1844
	# This configuration option has an automatic default value.
1845
	# buffered = 1
1846
 
1847
	# Configuration option report/headings.
1848
	# Show headings for columns on report.
1849
	# This configuration option has an automatic default value.
1850
	# headings = 1
1851
 
1852
	# Configuration option report/separator.
1853
	# A separator to use on report after each field.
1854
	# This configuration option has an automatic default value.
1855
	# separator = " "
1856
 
1857
	# Configuration option report/list_item_separator.
1858
	# A separator to use for list items when reported.
1859
	# This configuration option has an automatic default value.
1860
	# list_item_separator = ","
1861
 
1862
	# Configuration option report/prefixes.
1863
	# Use a field name prefix for each field reported.
1864
	# This configuration option has an automatic default value.
1865
	# prefixes = 0
1866
 
1867
	# Configuration option report/quoted.
1868
	# Quote field values when using field name prefixes.
1869
	# This configuration option has an automatic default value.
1870
	# quoted = 1
1871
 
1872
	# Configuration option report/columns_as_rows.
1873
	# Output each column as a row.
1874
	# If set, this also implies report/prefixes=1.
1875
	# This configuration option has an automatic default value.
1876
	# columns_as_rows = 0
1877
 
1878
	# Configuration option report/binary_values_as_numeric.
1879
	# Use binary values 0 or 1 instead of descriptive literal values.
1880
	# For columns that have exactly two valid values to report
1881
	# (not counting the 'unknown' value which denotes that the
1882
	# value could not be determined).
1883
	# This configuration option has an automatic default value.
1884
	# binary_values_as_numeric = 0
1885
 
1886
	# Configuration option report/time_format.
1887
	# Set time format for fields reporting time values.
1888
	# Format specification is a string which may contain special character
1889
	# sequences and ordinary character sequences. Ordinary character
1890
	# sequences are copied verbatim. Each special character sequence is
1891
	# introduced by the '%' character and such sequence is then
1892
	# substituted with a value as described below.
1893
	#
1894
	# Accepted values:
1895
	#   %a
1896
	#     The abbreviated name of the day of the week according to the
1897
	#     current locale.
1898
	#   %A
1899
	#     The full name of the day of the week according to the current
1900
	#     locale.
1901
	#   %b
1902
	#     The abbreviated month name according to the current locale.
1903
	#   %B
1904
	#     The full month name according to the current locale.
1905
	#   %c
1906
	#     The preferred date and time representation for the current
1907
	#     locale (alt E)
1908
	#   %C
1909
	#     The century number (year/100) as a 2-digit integer. (alt E)
1910
	#   %d
1911
	#     The day of the month as a decimal number (range 01 to 31).
1912
	#     (alt O)
1913
	#   %D
1914
	#     Equivalent to %m/%d/%y. (For Americans only. Americans should
1915
	#     note that in other countries%d/%m/%y is rather common. This
1916
	#     means that in international context this format is ambiguous and
1917
	#     should not be used.
1918
	#   %e
1919
	#     Like %d, the day of the month as a decimal number, but a leading
1920
	#     zero is replaced by a space. (alt O)
1921
	#   %E
1922
	#     Modifier: use alternative local-dependent representation if
1923
	#     available.
1924
	#   %F
1925
	#     Equivalent to %Y-%m-%d (the ISO 8601 date format).
1926
	#   %G
1927
	#     The ISO 8601 week-based year with century as adecimal number.
1928
	#     The 4-digit year corresponding to the ISO week number (see %V).
1929
	#     This has the same format and value as %Y, except that if the
1930
	#     ISO week number belongs to the previous or next year, that year
1931
	#     is used instead.
1932
	#   %g
1933
	#     Like %G, but without century, that is, with a 2-digit year
1934
	#     (00-99).
1935
	#   %h
1936
	#     Equivalent to %b.
1937
	#   %H
1938
	#     The hour as a decimal number using a 24-hour clock
1939
	#     (range 00 to 23). (alt O)
1940
	#   %I
1941
	#     The hour as a decimal number using a 12-hour clock
1942
	#     (range 01 to 12). (alt O)
1943
	#   %j
1944
	#     The day of the year as a decimal number (range 001 to 366).
1945
	#   %k
1946
	#     The hour (24-hour clock) as a decimal number (range 0 to 23);
1947
	#     single digits are preceded by a blank. (See also %H.)
1948
	#   %l
1949
	#     The hour (12-hour clock) as a decimal number (range 1 to 12);
1950
	#     single digits are preceded by a blank. (See also %I.)
1951
	#   %m
1952
	#     The month as a decimal number (range 01 to 12). (alt O)
1953
	#   %M
1954
	#     The minute as a decimal number (range 00 to 59). (alt O)
1955
	#   %O
1956
	#     Modifier: use alternative numeric symbols.
1957
	#   %p
1958
	#     Either "AM" or "PM" according to the given time value,
1959
	#     or the corresponding strings for the current locale. Noon is
1960
	#     treated as "PM" and midnight as "AM".
1961
	#   %P
1962
	#     Like %p but in lowercase: "am" or "pm" or a corresponding
1963
	#     string for the current locale.
1964
	#   %r
1965
	#     The time in a.m. or p.m. notation. In the POSIX locale this is
1966
	#     equivalent to %I:%M:%S %p.
1967
	#   %R
1968
	#     The time in 24-hour notation (%H:%M). For a version including
1969
	#     the seconds, see %T below.
1970
	#   %s
1971
	#     The number of seconds since the Epoch,
1972
	#     1970-01-01 00:00:00 +0000 (UTC)
1973
	#   %S
1974
	#     The second as a decimal number (range 00 to 60). (The range is
1975
	#     up to 60 to allow for occasional leap seconds.) (alt O)
1976
	#   %t
1977
	#     A tab character.
1978
	#   %T
1979
	#     The time in 24-hour notation (%H:%M:%S).
1980
	#   %u
1981
	#     The day of the week as a decimal, range 1 to 7, Monday being 1.
1982
	#     See also %w. (alt O)
1983
	#   %U
1984
	#     The week number of the current year as a decimal number,
1985
	#     range 00 to 53, starting with the first Sunday as the first
1986
	#     day of week 01. See also %V and %W. (alt O)
1987
	#   %V
1988
	#     The ISO 8601 week number of the current year as a decimal number,
1989
	#     range 01 to 53, where week 1 is the first week that has at least
1990
	#     4 days in the new year. See also %U and %W. (alt O)
1991
	#   %w
1992
	#     The day of the week as a decimal, range 0 to 6, Sunday being 0.
1993
	#     See also %u. (alt O)
1994
	#   %W
1995
	#     The week number of the current year as a decimal number,
1996
	#     range 00 to 53, starting with the first Monday as the first day
1997
	#     of week 01. (alt O)
1998
	#   %x
1999
	#     The preferred date representation for the current locale without
2000
	#     the time. (alt E)
2001
	#   %X
2002
	#     The preferred time representation for the current locale without
2003
	#     the date. (alt E)
2004
	#   %y
2005
	#     The year as a decimal number without a century (range 00 to 99).
2006
	#     (alt E, alt O)
2007
	#   %Y
2008
	#     The year as a decimal number including the century. (alt E)
2009
	#   %z
2010
	#     The +hhmm or -hhmm numeric timezone (that is, the hour and minute
2011
	#     offset from UTC).
2012
	#   %Z
2013
	#     The timezone name or abbreviation.
2014
	#   %%
2015
	#     A literal '%' character.
2016
	#
2017
	# This configuration option has an automatic default value.
2018
	# time_format = "%Y-%m-%d %T %z"
2019
 
2020
	# Configuration option report/devtypes_sort.
2021
	# List of columns to sort by when reporting 'lvm devtypes' command.
2022
	# See 'lvm devtypes -o help' for the list of possible fields.
2023
	# This configuration option has an automatic default value.
2024
	# devtypes_sort = "devtype_name"
2025
 
2026
	# Configuration option report/devtypes_cols.
2027
	# List of columns to report for 'lvm devtypes' command.
2028
	# See 'lvm devtypes -o help' for the list of possible fields.
2029
	# This configuration option has an automatic default value.
2030
	# devtypes_cols = "devtype_name,devtype_max_partitions,devtype_description"
2031
 
2032
	# Configuration option report/devtypes_cols_verbose.
2033
	# List of columns to report for 'lvm devtypes' command in verbose mode.
2034
	# See 'lvm devtypes -o help' for the list of possible fields.
2035
	# This configuration option has an automatic default value.
2036
	# devtypes_cols_verbose = "devtype_name,devtype_max_partitions,devtype_description"
2037
 
2038
	# Configuration option report/lvs_sort.
2039
	# List of columns to sort by when reporting 'lvs' command.
2040
	# See 'lvs -o help' for the list of possible fields.
2041
	# This configuration option has an automatic default value.
2042
	# lvs_sort = "vg_name,lv_name"
2043
 
2044
	# Configuration option report/lvs_cols.
2045
	# List of columns to report for 'lvs' command.
2046
	# See 'lvs -o help' for the list of possible fields.
2047
	# This configuration option has an automatic default value.
2048
	# lvs_cols = "lv_name,vg_name,lv_attr,lv_size,pool_lv,origin,data_percent,metadata_percent,move_pv,mirror_log,copy_percent,convert_lv"
2049
 
2050
	# Configuration option report/lvs_cols_verbose.
2051
	# List of columns to report for 'lvs' command in verbose mode.
2052
	# See 'lvs -o help' for the list of possible fields.
2053
	# This configuration option has an automatic default value.
2054
	# lvs_cols_verbose = "lv_name,vg_name,seg_count,lv_attr,lv_size,lv_major,lv_minor,lv_kernel_major,lv_kernel_minor,pool_lv,origin,data_percent,metadata_percent,move_pv,copy_percent,mirror_log,convert_lv,lv_uuid,lv_profile"
2055
 
2056
	# Configuration option report/vgs_sort.
2057
	# List of columns to sort by when reporting 'vgs' command.
2058
	# See 'vgs -o help' for the list of possible fields.
2059
	# This configuration option has an automatic default value.
2060
	# vgs_sort = "vg_name"
2061
 
2062
	# Configuration option report/vgs_cols.
2063
	# List of columns to report for 'vgs' command.
2064
	# See 'vgs -o help' for the list of possible fields.
2065
	# This configuration option has an automatic default value.
2066
	# vgs_cols = "vg_name,pv_count,lv_count,snap_count,vg_attr,vg_size,vg_free"
2067
 
2068
	# Configuration option report/vgs_cols_verbose.
2069
	# List of columns to report for 'vgs' command in verbose mode.
2070
	# See 'vgs -o help' for the list of possible fields.
2071
	# This configuration option has an automatic default value.
2072
	# vgs_cols_verbose = "vg_name,vg_attr,vg_extent_size,pv_count,lv_count,snap_count,vg_size,vg_free,vg_uuid,vg_profile"
2073
 
2074
	# Configuration option report/pvs_sort.
2075
	# List of columns to sort by when reporting 'pvs' command.
2076
	# See 'pvs -o help' for the list of possible fields.
2077
	# This configuration option has an automatic default value.
2078
	# pvs_sort = "pv_name"
2079
 
2080
	# Configuration option report/pvs_cols.
2081
	# List of columns to report for 'pvs' command.
2082
	# See 'pvs -o help' for the list of possible fields.
2083
	# This configuration option has an automatic default value.
2084
	# pvs_cols = "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free"
2085
 
2086
	# Configuration option report/pvs_cols_verbose.
2087
	# List of columns to report for 'pvs' command in verbose mode.
2088
	# See 'pvs -o help' for the list of possible fields.
2089
	# This configuration option has an automatic default value.
2090
	# pvs_cols_verbose = "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,dev_size,pv_uuid"
2091
 
2092
	# Configuration option report/segs_sort.
2093
	# List of columns to sort by when reporting 'lvs --segments' command.
2094
	# See 'lvs --segments -o help' for the list of possible fields.
2095
	# This configuration option has an automatic default value.
2096
	# segs_sort = "vg_name,lv_name,seg_start"
2097
 
2098
	# Configuration option report/segs_cols.
2099
	# List of columns to report for 'lvs --segments' command.
2100
	# See 'lvs --segments -o help' for the list of possible fields.
2101
	# This configuration option has an automatic default value.
2102
	# segs_cols = "lv_name,vg_name,lv_attr,stripes,segtype,seg_size"
2103
 
2104
	# Configuration option report/segs_cols_verbose.
2105
	# List of columns to report for 'lvs --segments' command in verbose mode.
2106
	# See 'lvs --segments -o help' for the list of possible fields.
2107
	# This configuration option has an automatic default value.
2108
	# segs_cols_verbose = "lv_name,vg_name,lv_attr,seg_start,seg_size,stripes,segtype,stripesize,chunksize"
2109
 
2110
	# Configuration option report/pvsegs_sort.
2111
	# List of columns to sort by when reporting 'pvs --segments' command.
2112
	# See 'pvs --segments -o help' for the list of possible fields.
2113
	# This configuration option has an automatic default value.
2114
	# pvsegs_sort = "pv_name,pvseg_start"
2115
 
2116
	# Configuration option report/pvsegs_cols.
2117
	# List of columns to sort by when reporting 'pvs --segments' command.
2118
	# See 'pvs --segments -o help' for the list of possible fields.
2119
	# This configuration option has an automatic default value.
2120
	# pvsegs_cols = "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size"
2121
 
2122
	# Configuration option report/pvsegs_cols_verbose.
2123
	# List of columns to sort by when reporting 'pvs --segments' command in verbose mode.
2124
	# See 'pvs --segments -o help' for the list of possible fields.
2125
	# This configuration option has an automatic default value.
2126
	# pvsegs_cols_verbose = "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size,lv_name,seg_start_pe,segtype,seg_pe_ranges"
2127
 
2128
	# Configuration option report/vgs_cols_full.
2129
	# List of columns to report for lvm fullreport's 'vgs' subreport.
2130
	# See 'vgs -o help' for the list of possible fields.
2131
	# This configuration option has an automatic default value.
2132
	# vgs_cols_full = "vg_all"
2133
 
2134
	# Configuration option report/pvs_cols_full.
2135
	# List of columns to report for lvm fullreport's 'vgs' subreport.
2136
	# See 'pvs -o help' for the list of possible fields.
2137
	# This configuration option has an automatic default value.
2138
	# pvs_cols_full = "pv_all"
2139
 
2140
	# Configuration option report/lvs_cols_full.
2141
	# List of columns to report for lvm fullreport's 'lvs' subreport.
2142
	# See 'lvs -o help' for the list of possible fields.
2143
	# This configuration option has an automatic default value.
2144
	# lvs_cols_full = "lv_all"
2145
 
2146
	# Configuration option report/pvsegs_cols_full.
2147
	# List of columns to report for lvm fullreport's 'pvseg' subreport.
2148
	# See 'pvs --segments -o help' for the list of possible fields.
2149
	# This configuration option has an automatic default value.
2150
	# pvsegs_cols_full = "pvseg_all,pv_uuid,lv_uuid"
2151
 
2152
	# Configuration option report/segs_cols_full.
2153
	# List of columns to report for lvm fullreport's 'seg' subreport.
2154
	# See 'lvs --segments -o help' for the list of possible fields.
2155
	# This configuration option has an automatic default value.
2156
	# segs_cols_full = "seg_all,lv_uuid"
2157
 
2158
	# Configuration option report/vgs_sort_full.
2159
	# List of columns to sort by when reporting lvm fullreport's 'vgs' subreport.
2160
	# See 'vgs -o help' for the list of possible fields.
2161
	# This configuration option has an automatic default value.
2162
	# vgs_sort_full = "vg_name"
2163
 
2164
	# Configuration option report/pvs_sort_full.
2165
	# List of columns to sort by when reporting lvm fullreport's 'vgs' subreport.
2166
	# See 'pvs -o help' for the list of possible fields.
2167
	# This configuration option has an automatic default value.
2168
	# pvs_sort_full = "pv_name"
2169
 
2170
	# Configuration option report/lvs_sort_full.
2171
	# List of columns to sort by when reporting lvm fullreport's 'lvs' subreport.
2172
	# See 'lvs -o help' for the list of possible fields.
2173
	# This configuration option has an automatic default value.
2174
	# lvs_sort_full = "vg_name,lv_name"
2175
 
2176
	# Configuration option report/pvsegs_sort_full.
2177
	# List of columns to sort by when reporting for lvm fullreport's 'pvseg' subreport.
2178
	# See 'pvs --segments -o help' for the list of possible fields.
2179
	# This configuration option has an automatic default value.
2180
	# pvsegs_sort_full = "pv_uuid,pvseg_start"
2181
 
2182
	# Configuration option report/segs_sort_full.
2183
	# List of columns to sort by when reporting lvm fullreport's 'seg' subreport.
2184
	# See 'lvs --segments -o help' for the list of possible fields.
2185
	# This configuration option has an automatic default value.
2186
	# segs_sort_full = "lv_uuid,seg_start"
2187
 
2188
	# Configuration option report/mark_hidden_devices.
2189
	# Use brackets [] to mark hidden devices.
2190
	# This configuration option has an automatic default value.
2191
	# mark_hidden_devices = 1
2192
 
2193
	# Configuration option report/two_word_unknown_device.
2194
	# Use the two words 'unknown device' in place of '[unknown]'.
2195
	# This is displayed when the device for a PV is not known.
2196
	# This configuration option has an automatic default value.
2197
	# two_word_unknown_device = 0
2198
# }
2199
 
2200
# Configuration section dmeventd.
2201
# Settings for the LVM event daemon.
2202
dmeventd {
2203
 
2204
	# Configuration option dmeventd/mirror_library.
2205
	# The library dmeventd uses when monitoring a mirror device.
2206
	# libdevmapper-event-lvm2mirror.so attempts to recover from
2207
	# failures. It removes failed devices from a volume group and
2208
	# reconfigures a mirror as necessary. If no mirror library is
2209
	# provided, mirrors are not monitored through dmeventd.
2210
	# This configuration option has an automatic default value.
2211
	# mirror_library = "libdevmapper-event-lvm2mirror.so"
2212
 
2213
	# Configuration option dmeventd/raid_library.
2214
	# This configuration option has an automatic default value.
2215
	# raid_library = "libdevmapper-event-lvm2raid.so"
2216
 
2217
	# Configuration option dmeventd/snapshot_library.
2218
	# The library dmeventd uses when monitoring a snapshot device.
2219
	# libdevmapper-event-lvm2snapshot.so monitors the filling of snapshots
2220
	# and emits a warning through syslog when the usage exceeds 80%. The
2221
	# warning is repeated when 85%, 90% and 95% of the snapshot is filled.
2222
	# This configuration option has an automatic default value.
2223
	# snapshot_library = "libdevmapper-event-lvm2snapshot.so"
2224
 
2225
	# Configuration option dmeventd/thin_library.
2226
	# The library dmeventd uses when monitoring a thin device.
2227
	# libdevmapper-event-lvm2thin.so monitors the filling of a pool
2228
	# and emits a warning through syslog when the usage exceeds 80%. The
2229
	# warning is repeated when 85%, 90% and 95% of the pool is filled.
2230
	# This configuration option has an automatic default value.
2231
	# thin_library = "libdevmapper-event-lvm2thin.so"
2232
 
2233
	# Configuration option dmeventd/thin_command.
2234
	# The plugin runs command with each 5% increment when thin-pool data volume
2235
	# or metadata volume gets above 50%.
2236
	# Command which starts with 'lvm ' prefix is internal lvm command.
2237
	# You can write your own handler to customise behaviour in more details.
2238
	# User handler is specified with the full path starting with '/'.
2239
	# This configuration option has an automatic default value.
2240
	# thin_command = "lvm lvextend --use-policies"
2241
 
2242
	# Configuration option dmeventd/vdo_library.
2243
	# The library dmeventd uses when monitoring a VDO pool device.
2244
	# libdevmapper-event-lvm2vdo.so monitors the filling of a pool
2245
	# and emits a warning through syslog when the usage exceeds 80%. The
2246
	# warning is repeated when 85%, 90% and 95% of the pool is filled.
2247
	# This configuration option has an automatic default value.
2248
	# vdo_library = "libdevmapper-event-lvm2vdo.so"
2249
 
2250
	# Configuration option dmeventd/vdo_command.
2251
	# The plugin runs command with each 5% increment when VDO pool volume
2252
	# gets above 50%.
2253
	# Command which starts with 'lvm ' prefix is internal lvm command.
2254
	# You can write your own handler to customise behaviour in more details.
2255
	# User handler is specified with the full path starting with '/'.
2256
	# This configuration option has an automatic default value.
2257
	# vdo_command = "lvm lvextend --use-policies"
2258
 
2259
	# Configuration option dmeventd/executable.
2260
	# The full path to the dmeventd binary.
2261
	# This configuration option has an automatic default value.
2262
	# executable = "/usr/sbin/dmeventd"
2263
}
2264
 
2265
# Configuration section tags.
2266
# Host tag settings.
2267
# This configuration section has an automatic default value.
2268
# tags {
2269
 
2270
	# Configuration option tags/hosttags.
2271
	# Create a host tag using the machine name.
2272
	# The machine name is nodename returned by uname(2).
2273
	# This configuration option has an automatic default value.
2274
	# hosttags = 0
2275
 
2276
	# Configuration section tags/<tag>.
2277
	# Replace this subsection name with a custom tag name.
2278
	# Multiple subsections like this can be created. The '@' prefix for
2279
	# tags is optional. This subsection can contain host_list, which is a
2280
	# list of machine names. If the name of the local machine is found in
2281
	# host_list, then the name of this subsection is used as a tag and is
2282
	# applied to the local machine as a 'host tag'. If this subsection is
2283
	# empty (has no host_list), then the subsection name is always applied
2284
	# as a 'host tag'.
2285
	#
2286
	# Example
2287
	# The host tag foo is given to all hosts, and the host tag
2288
	# bar is given to the hosts named machine1 and machine2.
2289
	# tags { foo { } bar { host_list = [ "machine1", "machine2" ] } }
2290
	#
2291
	# This configuration section has variable name.
2292
	# This configuration section has an automatic default value.
2293
	# tag {
2294
 
2295
		# Configuration option tags/<tag>/host_list.
2296
		# A list of machine names.
2297
		# These machine names are compared to the nodename returned
2298
		# by uname(2). If the local machine name matches an entry in
2299
		# this list, the name of the subsection is applied to the
2300
		# machine as a 'host tag'.
2301
		# This configuration option does not have a default value defined.
2302
	# }
2303
# }