Subversion Repositories configs

Rev

Rev 193 | Go to most recent revision | Details | 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
941
	# high volume of read-only requests. This option only affects
942
	# locking_type 1 viz. local file-based locking.
943
	prioritise_write_locks = 1
944
 
945
	# Configuration option global/library_dir.
946
	# Search this directory first for shared libraries.
947
	# This configuration option does not have a default value defined.
948
 
949
	# Configuration option global/abort_on_internal_errors.
950
	# Abort a command that encounters an internal error.
951
	# Treat any internal errors as fatal errors, aborting the process that
952
	# encountered the internal error. Please only enable for debugging.
953
	abort_on_internal_errors = 0
954
 
955
	# Configuration option global/metadata_read_only.
956
	# No operations that change on-disk metadata are permitted.
957
	# Additionally, read-only commands that encounter metadata in need of
958
	# repair will still be allowed to proceed exactly as if the repair had
959
	# been performed (except for the unchanged vg_seqno). Inappropriate
960
	# use could mess up your system, so seek advice first!
961
	metadata_read_only = 0
962
 
963
	# Configuration option global/mirror_segtype_default.
964
	# The segment type used by the short mirroring option -m.
965
	# The --type mirror|raid1 option overrides this setting.
966
	#
967
	# Accepted values:
968
	#   mirror
969
	#     The original RAID1 implementation from LVM/DM. It is
970
	#     characterized by a flexible log solution (core, disk, mirrored),
971
	#     and by the necessity to block I/O while handling a failure.
972
	#     There is an inherent race in the dmeventd failure handling logic
973
	#     with snapshots of devices using this type of RAID1 that in the
974
	#     worst case could cause a deadlock. (Also see
975
	#     devices/ignore_lvm_mirrors.)
976
	#   raid1
977
	#     This is a newer RAID1 implementation using the MD RAID1
978
	#     personality through device-mapper. It is characterized by a
979
	#     lack of log options. (A log is always allocated for every
980
	#     device and they are placed on the same device as the image,
981
	#     so no separate devices are required.) This mirror
982
	#     implementation does not require I/O to be blocked while
983
	#     handling a failure. This mirror implementation is not
984
	#     cluster-aware and cannot be used in a shared (active/active)
985
	#     fashion in a cluster.
986
	#
987
	mirror_segtype_default = "raid1"
988
 
989
	# Configuration option global/support_mirrored_mirror_log.
990
	# Enable mirrored 'mirror' log type for testing.
991
	#
992
	# This type is deprecated to create or convert to but can
993
	# be enabled to test that activation of existing mirrored
994
	# logs and conversion to disk/core works.
995
	#
996
	# Not supported for regular operation!
997
	# This configuration option has an automatic default value.
998
	# support_mirrored_mirror_log = 0
999
 
1000
	# Configuration option global/raid10_segtype_default.
1001
	# The segment type used by the -i -m combination.
1002
	# The --type raid10|mirror option overrides this setting.
1003
	# The --stripes/-i and --mirrors/-m options can both be specified
1004
	# during the creation of a logical volume to use both striping and
1005
	# mirroring for the LV. There are two different implementations.
1006
	#
1007
	# Accepted values:
1008
	#   raid10
1009
	#     LVM uses MD's RAID10 personality through DM. This is the
1010
	#     preferred option.
1011
	#   mirror
1012
	#     LVM layers the 'mirror' and 'stripe' segment types. The layering
1013
	#     is done by creating a mirror LV on top of striped sub-LVs,
1014
	#     effectively creating a RAID 0+1 array. The layering is suboptimal
1015
	#     in terms of providing redundancy and performance.
1016
	#
1017
	raid10_segtype_default = "raid10"
1018
 
1019
	# Configuration option global/sparse_segtype_default.
1020
	# The segment type used by the -V -L combination.
1021
	# The --type snapshot|thin option overrides this setting.
1022
	# The combination of -V and -L options creates a sparse LV. There are
1023
	# two different implementations.
1024
	#
1025
	# Accepted values:
1026
	#   snapshot
1027
	#     The original snapshot implementation from LVM/DM. It uses an old
1028
	#     snapshot that mixes data and metadata within a single COW
1029
	#     storage volume and performs poorly when the size of stored data
1030
	#     passes hundreds of MB.
1031
	#   thin
1032
	#     A newer implementation that uses thin provisioning. It has a
1033
	#     bigger minimal chunk size (64KiB) and uses a separate volume for
1034
	#     metadata. It has better performance, especially when more data
1035
	#     is used. It also supports full snapshots.
1036
	#
1037
	sparse_segtype_default = "thin"
1038
 
1039
	# Configuration option global/lvdisplay_shows_full_device_path.
1040
	# Enable this to reinstate the previous lvdisplay name format.
1041
	# The default format for displaying LV names in lvdisplay was changed
1042
	# in version 2.02.89 to show the LV name and path separately.
1043
	# Previously this was always shown as /dev/vgname/lvname even when that
1044
	# was never a valid path in the /dev filesystem.
1045
	# This configuration option has an automatic default value.
1046
	# lvdisplay_shows_full_device_path = 0
1047
 
1048
	# Configuration option global/event_activation.
1049
	# Activate LVs based on system-generated device events.
1050
	# When a device appears on the system, a system-generated event runs
1051
	# the pvscan command to activate LVs if the new PV completes the VG.
1052
	# Use auto_activation_volume_list to select which LVs should be
1053
	# activated from these events (the default is all.)
1054
	# When event_activation is disabled, the system will generally run
1055
	# a direct activation command to activate LVs in complete VGs.
1056
	# This configuration option has an automatic default value.
1057
	# event_activation = 1
1058
 
1059
	# Configuration option global/use_aio.
1060
	# Use async I/O when reading and writing devices.
1061
	# This configuration option has an automatic default value.
1062
	# use_aio = 1
1063
 
1064
	# Configuration option global/use_lvmlockd.
1065
	# Use lvmlockd for locking among hosts using LVM on shared storage.
1066
	# Applicable only if LVM is compiled with lockd support in which
1067
	# case there is also lvmlockd(8) man page available for more
1068
	# information.
1069
	use_lvmlockd = 0
1070
 
1071
	# Configuration option global/lvmlockd_lock_retries.
1072
	# Retry lvmlockd lock requests this many times.
1073
	# Applicable only if LVM is compiled with lockd support
1074
	# This configuration option has an automatic default value.
1075
	# lvmlockd_lock_retries = 3
1076
 
1077
	# Configuration option global/sanlock_lv_extend.
1078
	# Size in MiB to extend the internal LV holding sanlock locks.
1079
	# The internal LV holds locks for each LV in the VG, and after enough
1080
	# LVs have been created, the internal LV needs to be extended. lvcreate
1081
	# will automatically extend the internal LV when needed by the amount
1082
	# specified here. Setting this to 0 disables the automatic extension
1083
	# and can cause lvcreate to fail. Applicable only if LVM is compiled
1084
	# with lockd support
1085
	# This configuration option has an automatic default value.
1086
	# sanlock_lv_extend = 256
1087
 
1088
	# Configuration option global/thin_check_executable.
1089
	# The full path to the thin_check command.
1090
	# LVM uses this command to check that a thin metadata device is in a
1091
	# usable state. When a thin pool is activated and after it is
1092
	# deactivated, this command is run. Activation will only proceed if
1093
	# the command has an exit status of 0. Set to "" to skip this check.
1094
	# (Not recommended.) Also see thin_check_options.
1095
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1096
	# This configuration option has an automatic default value.
1097
	# thin_check_executable = "/usr/sbin/thin_check"
1098
 
1099
	# Configuration option global/thin_dump_executable.
1100
	# The full path to the thin_dump command.
1101
	# LVM uses this command to dump thin pool metadata.
1102
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1103
	# This configuration option has an automatic default value.
1104
	# thin_dump_executable = "/usr/sbin/thin_dump"
1105
 
1106
	# Configuration option global/thin_repair_executable.
1107
	# The full path to the thin_repair command.
1108
	# LVM uses this command to repair a thin metadata device if it is in
1109
	# an unusable state. Also see thin_repair_options.
1110
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1111
	# This configuration option has an automatic default value.
1112
	# thin_repair_executable = "/usr/sbin/thin_repair"
1113
 
1114
	# Configuration option global/thin_check_options.
1115
	# List of options passed to the thin_check command.
1116
	# With thin_check version 2.1 or newer you can add the option
1117
	# --ignore-non-fatal-errors to let it pass through ignorable errors
1118
	# and fix them later. With thin_check version 3.2 or newer you should
1119
	# include the option --clear-needs-check-flag.
1120
	# This configuration option has an automatic default value.
1121
	# thin_check_options = [ "-q", "--clear-needs-check-flag" ]
1122
 
1123
	# Configuration option global/thin_repair_options.
1124
	# List of options passed to the thin_repair command.
1125
	# This configuration option has an automatic default value.
1126
	# thin_repair_options = [ "" ]
1127
 
1128
	# Configuration option global/thin_disabled_features.
1129
	# Features to not use in the thin driver.
1130
	# This can be helpful for testing, or to avoid using a feature that is
1131
	# causing problems. Features include: block_size, discards,
1132
	# discards_non_power_2, external_origin, metadata_resize,
1133
	# external_origin_extend, error_if_no_space.
1134
	#
1135
	# Example
1136
	# thin_disabled_features = [ "discards", "block_size" ]
1137
	#
1138
	# This configuration option does not have a default value defined.
1139
 
1140
	# Configuration option global/cache_disabled_features.
1141
	# Features to not use in the cache driver.
1142
	# This can be helpful for testing, or to avoid using a feature that is
1143
	# causing problems. Features include: policy_mq, policy_smq, metadata2.
1144
	#
1145
	# Example
1146
	# cache_disabled_features = [ "policy_smq" ]
1147
	#
1148
	# This configuration option does not have a default value defined.
1149
 
1150
	# Configuration option global/cache_check_executable.
1151
	# The full path to the cache_check command.
1152
	# LVM uses this command to check that a cache metadata device is in a
1153
	# usable state. When a cached LV is activated and after it is
1154
	# deactivated, this command is run. Activation will only proceed if the
1155
	# command has an exit status of 0. Set to "" to skip this check.
1156
	# (Not recommended.) Also see cache_check_options.
1157
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1158
	# This configuration option has an automatic default value.
1159
	# cache_check_executable = "/usr/sbin/cache_check"
1160
 
1161
	# Configuration option global/cache_dump_executable.
1162
	# The full path to the cache_dump command.
1163
	# LVM uses this command to dump cache pool metadata.
1164
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1165
	# This configuration option has an automatic default value.
1166
	# cache_dump_executable = "/usr/sbin/cache_dump"
1167
 
1168
	# Configuration option global/cache_repair_executable.
1169
	# The full path to the cache_repair command.
1170
	# LVM uses this command to repair a cache metadata device if it is in
1171
	# an unusable state. Also see cache_repair_options.
1172
	# (See package device-mapper-persistent-data or thin-provisioning-tools)
1173
	# This configuration option has an automatic default value.
1174
	# cache_repair_executable = "/usr/sbin/cache_repair"
1175
 
1176
	# Configuration option global/cache_check_options.
1177
	# List of options passed to the cache_check command.
1178
	# With cache_check version 5.0 or newer you should include the option
1179
	# --clear-needs-check-flag.
1180
	# This configuration option has an automatic default value.
1181
	# cache_check_options = [ "-q", "--clear-needs-check-flag" ]
1182
 
1183
	# Configuration option global/cache_repair_options.
1184
	# List of options passed to the cache_repair command.
1185
	# This configuration option has an automatic default value.
1186
	# cache_repair_options = [ "" ]
1187
 
1188
	# Configuration option global/vdo_format_executable.
1189
	# The full path to the vdoformat command.
1190
	# LVM uses this command to initial data volume for VDO type logical volume
1191
	# This configuration option has an automatic default value.
1192
	# vdo_format_executable = "/usr/bin/vdoformat"
1193
 
1194
	# Configuration option global/vdo_format_options.
1195
	# List of options passed added to standard vdoformat command.
1196
	# This configuration option has an automatic default value.
1197
	# vdo_format_options = [ "" ]
1198
 
1199
	# Configuration option global/fsadm_executable.
1200
	# The full path to the fsadm command.
1201
	# LVM uses this command to help with lvresize -r operations.
1202
	# This configuration option has an automatic default value.
1203
	# fsadm_executable = "/usr/sbin/fsadm"
1204
 
1205
	# Configuration option global/system_id_source.
1206
	# The method LVM uses to set the local system ID.
1207
	# Volume Groups can also be given a system ID (by vgcreate, vgchange,
1208
	# or vgimport.) A VG on shared storage devices is accessible only to
1209
	# the host with a matching system ID. See 'man lvmsystemid' for
1210
	# information on limitations and correct usage.
1211
	#
1212
	# Accepted values:
1213
	#   none
1214
	#     The host has no system ID.
1215
	#   lvmlocal
1216
	#     Obtain the system ID from the system_id setting in the 'local'
1217
	#     section of an lvm configuration file, e.g. lvmlocal.conf.
1218
	#   uname
1219
	#     Set the system ID from the hostname (uname) of the system.
1220
	#     System IDs beginning localhost are not permitted.
1221
	#   machineid
1222
	#     Use the contents of the machine-id file to set the system ID.
1223
	#     Some systems create this file at installation time.
1224
	#     See 'man machine-id' and global/etc.
1225
	#   file
1226
	#     Use the contents of another file (system_id_file) to set the
1227
	#     system ID.
1228
	#
1229
	system_id_source = "none"
1230
 
1231
	# Configuration option global/system_id_file.
1232
	# The full path to the file containing a system ID.
1233
	# This is used when system_id_source is set to 'file'.
1234
	# Comments starting with the character # are ignored.
1235
	# This configuration option does not have a default value defined.
1236
 
1237
	# Configuration option global/use_lvmpolld.
1238
	# Use lvmpolld to supervise long running LVM commands.
1239
	# When enabled, control of long running LVM commands is transferred
1240
	# from the original LVM command to the lvmpolld daemon. This allows
1241
	# the operation to continue independent of the original LVM command.
1242
	# After lvmpolld takes over, the LVM command displays the progress
1243
	# of the ongoing operation. lvmpolld itself runs LVM commands to
1244
	# manage the progress of ongoing operations. lvmpolld can be used as
1245
	# a native systemd service, which allows it to be started on demand,
1246
	# and to use its own control group. When this option is disabled, LVM
1247
	# commands will supervise long running operations by forking themselves.
1248
	# Applicable only if LVM is compiled with lvmpolld support.
1249
	use_lvmpolld = 1
1250
 
1251
	# Configuration option global/notify_dbus.
1252
	# Enable D-Bus notification from LVM commands.
1253
	# When enabled, an LVM command that changes PVs, changes VG metadata,
1254
	# or changes the activation state of an LV will send a notification.
1255
	notify_dbus = 1
1256
 
1257
	# Configuration option global/io_memory_size.
1258
	# The amount of memory in KiB that LVM allocates to perform disk io.
1259
	# LVM performance may benefit from more io memory when there are many
1260
	# disks or VG metadata is large. Increasing this size may be necessary
1261
	# when a single copy of VG metadata is larger than the current setting.
1262
	# This value should usually not be decreased from the default; setting
1263
	# it too low can result in lvm failing to read VGs.
1264
	# This configuration option has an automatic default value.
1265
	# io_memory_size = 8192
1266
}
1267
 
1268
# Configuration section activation.
1269
activation {
1270
 
1271
	# Configuration option activation/checks.
1272
	# Perform internal checks of libdevmapper operations.
1273
	# Useful for debugging problems with activation. Some of the checks may
1274
	# be expensive, so it's best to use this only when there seems to be a
1275
	# problem.
1276
	checks = 0
1277
 
1278
	# Configuration option activation/udev_sync.
1279
	# Use udev notifications to synchronize udev and LVM.
1280
	# The --nodevsync option overrides this setting.
1281
	# When disabled, LVM commands will not wait for notifications from
1282
	# udev, but continue irrespective of any possible udev processing in
1283
	# the background. Only use this if udev is not running or has rules
1284
	# that ignore the devices LVM creates. If enabled when udev is not
1285
	# running, and LVM processes are waiting for udev, run the command
1286
	# 'dmsetup udevcomplete_all' to wake them up.
1287
	udev_sync = 1
1288
 
1289
	# Configuration option activation/udev_rules.
1290
	# Use udev rules to manage LV device nodes and symlinks.
1291
	# When disabled, LVM will manage the device nodes and symlinks for
1292
	# active LVs itself. Manual intervention may be required if this
1293
	# setting is changed while LVs are active.
1294
	udev_rules = 1
1295
 
1296
	# Configuration option activation/verify_udev_operations.
1297
	# Use extra checks in LVM to verify udev operations.
1298
	# This enables additional checks (and if necessary, repairs) on entries
1299
	# in the device directory after udev has completed processing its
1300
	# events. Useful for diagnosing problems with LVM/udev interactions.
1301
	# This configuration option has an automatic default value.
1302
	# verify_udev_operations = 0
1303
 
1304
	# Configuration option activation/retry_deactivation.
1305
	# Retry failed LV deactivation.
1306
	# If LV deactivation fails, LVM will retry for a few seconds before
1307
	# failing. This may happen because a process run from a quick udev rule
1308
	# temporarily opened the device.
1309
	retry_deactivation = 1
1310
 
1311
	# Configuration option activation/missing_stripe_filler.
1312
	# Method to fill missing stripes when activating an incomplete LV.
1313
	# Using 'error' will make inaccessible parts of the device return I/O
1314
	# errors on access. Using 'zero' will return success (and zero) on I/O
1315
	# You can instead use a device path, in which case,
1316
	# that device will be used in place of missing stripes. Using anything
1317
	# other than 'error' with mirrored or snapshotted volumes is likely to
1318
	# result in data corruption.
1319
	# This configuration option is advanced.
1320
	missing_stripe_filler = "error"
1321
 
1322
	# Configuration option activation/use_linear_target.
1323
	# Use the linear target to optimize single stripe LVs.
1324
	# When disabled, the striped target is used. The linear target is an
1325
	# optimised version of the striped target that only handles a single
1326
	# stripe.
1327
	# This configuration option has an automatic default value.
1328
	# use_linear_target = 1
1329
 
1330
	# Configuration option activation/reserved_stack.
1331
	# Stack size in KiB to reserve for use while devices are suspended.
1332
	# Insufficent reserve risks I/O deadlock during device suspension.
1333
	# This configuration option has an automatic default value.
1334
	# reserved_stack = 64
1335
 
1336
	# Configuration option activation/reserved_memory.
1337
	# Memory size in KiB to reserve for use while devices are suspended.
1338
	# Insufficent reserve risks I/O deadlock during device suspension.
1339
	# This configuration option has an automatic default value.
1340
	# reserved_memory = 8192
1341
 
1342
	# Configuration option activation/process_priority.
1343
	# Nice value used while devices are suspended.
1344
	# Use a high priority so that LVs are suspended
1345
	# for the shortest possible time.
1346
	# This configuration option has an automatic default value.
1347
	# process_priority = -18
1348
 
1349
	# Configuration option activation/volume_list.
1350
	# Only LVs selected by this list are activated.
1351
	# If this list is defined, an LV is only activated if it matches an
1352
	# entry in this list. If this list is undefined, it imposes no limits
1353
	# on LV activation (all are allowed).
1354
	#
1355
	# Accepted values:
1356
	#   vgname
1357
	#     The VG name is matched exactly and selects all LVs in the VG.
1358
	#   vgname/lvname
1359
	#     The VG name and LV name are matched exactly and selects the LV.
1360
	#   @tag
1361
	#     Selects an LV if the specified tag matches a tag set on the LV
1362
	#     or VG.
1363
	#   @*
1364
	#     Selects an LV if a tag defined on the host is also set on the LV
1365
	#     or VG. See tags/hosttags. If any host tags exist but volume_list
1366
	#     is not defined, a default single-entry list containing '@*'
1367
	#     is assumed.
1368
	#
1369
	# Example
1370
	# volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
1371
	#
1372
	# This configuration option does not have a default value defined.
1373
 
1374
	# Configuration option activation/auto_activation_volume_list.
1375
	# Only LVs selected by this list are auto-activated.
1376
	# This list works like volume_list, but it is used only by
1377
	# auto-activation commands. It does not apply to direct activation
1378
	# commands. If this list is defined, an LV is only auto-activated
1379
	# if it matches an entry in this list. If this list is undefined, it
1380
	# imposes no limits on LV auto-activation (all are allowed.) If this
1381
	# list is defined and empty, i.e. "[]", then no LVs are selected for
1382
	# auto-activation. An LV that is selected by this list for
1383
	# auto-activation, must also be selected by volume_list (if defined)
1384
	# before it is activated. Auto-activation is an activation command that
1385
	# includes the 'a' argument: --activate ay or -a ay. The 'a' (auto)
1386
	# argument for auto-activation is meant to be used by activation
1387
	# commands that are run automatically by the system, as opposed to LVM
1388
	# commands run directly by a user. A user may also use the 'a' flag
1389
	# directly to perform auto-activation. Also see pvscan(8) for more
1390
	# information about auto-activation.
1391
	#
1392
	# Accepted values:
1393
	#   vgname
1394
	#     The VG name is matched exactly and selects all LVs in the VG.
1395
	#   vgname/lvname
1396
	#     The VG name and LV name are matched exactly and selects the LV.
1397
	#   @tag
1398
	#     Selects an LV if the specified tag matches a tag set on the LV
1399
	#     or VG.
1400
	#   @*
1401
	#     Selects an LV if a tag defined on the host is also set on the LV
1402
	#     or VG. See tags/hosttags. If any host tags exist but volume_list
1403
	#     is not defined, a default single-entry list containing '@*'
1404
	#     is assumed.
1405
	#
1406
	# Example
1407
	# auto_activation_volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
1408
	#
1409
	# This configuration option does not have a default value defined.
1410
 
1411
	# Configuration option activation/read_only_volume_list.
1412
	# LVs in this list are activated in read-only mode.
1413
	# If this list is defined, each LV that is to be activated is checked
1414
	# against this list, and if it matches, it is activated in read-only
1415
	# mode. This overrides the permission setting stored in the metadata,
1416
	# e.g. from --permission rw.
1417
	#
1418
	# Accepted values:
1419
	#   vgname
1420
	#     The VG name is matched exactly and selects all LVs in the VG.
1421
	#   vgname/lvname
1422
	#     The VG name and LV name are matched exactly and selects the LV.
1423
	#   @tag
1424
	#     Selects an LV if the specified tag matches a tag set on the LV
1425
	#     or VG.
1426
	#   @*
1427
	#     Selects an LV if a tag defined on the host is also set on the LV
1428
	#     or VG. See tags/hosttags. If any host tags exist but volume_list
1429
	#     is not defined, a default single-entry list containing '@*'
1430
	#     is assumed.
1431
	#
1432
	# Example
1433
	# read_only_volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
1434
	#
1435
	# This configuration option does not have a default value defined.
1436
 
1437
	# Configuration option activation/raid_region_size.
1438
	# Size in KiB of each raid or mirror synchronization region.
1439
	# The clean/dirty state of data is tracked for each region.
1440
	# The value is rounded down to a power of two if necessary, and
1441
	# is ignored if it is not a multiple of the machine memory page size.
1442
	raid_region_size = 2048
1443
 
1444
	# Configuration option activation/error_when_full.
1445
	# Return errors if a thin pool runs out of space.
1446
	# The --errorwhenfull option overrides this setting.
1447
	# When enabled, writes to thin LVs immediately return an error if the
1448
	# thin pool is out of data space. When disabled, writes to thin LVs
1449
	# are queued if the thin pool is out of space, and processed when the
1450
	# thin pool data space is extended. New thin pools are assigned the
1451
	# behavior defined here.
1452
	# This configuration option has an automatic default value.
1453
	# error_when_full = 0
1454
 
1455
	# Configuration option activation/readahead.
1456
	# Setting to use when there is no readahead setting in metadata.
1457
	#
1458
	# Accepted values:
1459
	#   none
1460
	#     Disable readahead.
1461
	#   auto
1462
	#     Use default value chosen by kernel.
1463
	#
1464
	# This configuration option has an automatic default value.
1465
	# readahead = "auto"
1466
 
1467
	# Configuration option activation/raid_fault_policy.
1468
	# Defines how a device failure in a RAID LV is handled.
1469
	# This includes LVs that have the following segment types:
1470
	# raid1, raid4, raid5*, and raid6*.
1471
	# If a device in the LV fails, the policy determines the steps
1472
	# performed by dmeventd automatically, and the steps perfomed by the
1473
	# manual command lvconvert --repair --use-policies.
1474
	# Automatic handling requires dmeventd to be monitoring the LV.
1475
	#
1476
	# Accepted values:
1477
	#   warn
1478
	#     Use the system log to warn the user that a device in the RAID LV
1479
	#     has failed. It is left to the user to run lvconvert --repair
1480
	#     manually to remove or replace the failed device. As long as the
1481
	#     number of failed devices does not exceed the redundancy of the LV
1482
	#     (1 device for raid4/5, 2 for raid6), the LV will remain usable.
1483
	#   allocate
1484
	#     Attempt to use any extra physical volumes in the VG as spares and
1485
	#     replace faulty devices.
1486
	#
1487
	raid_fault_policy = "warn"
1488
 
1489
	# Configuration option activation/mirror_image_fault_policy.
1490
	# Defines how a device failure in a 'mirror' LV is handled.
1491
	# An LV with the 'mirror' segment type is composed of mirror images
1492
	# (copies) and a mirror log. A disk log ensures that a mirror LV does
1493
	# not need to be re-synced (all copies made the same) every time a
1494
	# machine reboots or crashes. If a device in the LV fails, this policy
1495
	# determines the steps perfomed by dmeventd automatically, and the steps
1496
	# performed by the manual command lvconvert --repair --use-policies.
1497
	# Automatic handling requires dmeventd to be monitoring the LV.
1498
	#
1499
	# Accepted values:
1500
	#   remove
1501
	#     Simply remove the faulty device and run without it. If the log
1502
	#     device fails, the mirror would convert to using an in-memory log.
1503
	#     This means the mirror will not remember its sync status across
1504
	#     crashes/reboots and the entire mirror will be re-synced. If a
1505
	#     mirror image fails, the mirror will convert to a non-mirrored
1506
	#     device if there is only one remaining good copy.
1507
	#   allocate
1508
	#     Remove the faulty device and try to allocate space on a new
1509
	#     device to be a replacement for the failed device. Using this
1510
	#     policy for the log is fast and maintains the ability to remember
1511
	#     sync state through crashes/reboots. Using this policy for a
1512
	#     mirror device is slow, as it requires the mirror to resynchronize
1513
	#     the devices, but it will preserve the mirror characteristic of
1514
	#     the device. This policy acts like 'remove' if no suitable device
1515
	#     and space can be allocated for the replacement.
1516
	#   allocate_anywhere
1517
	#     Not yet implemented. Useful to place the log device temporarily
1518
	#     on the same physical volume as one of the mirror images. This
1519
	#     policy is not recommended for mirror devices since it would break
1520
	#     the redundant nature of the mirror. This policy acts like
1521
	#     'remove' if no suitable device and space can be allocated for the
1522
	#     replacement.
1523
	#
1524
	mirror_image_fault_policy = "remove"
1525
 
1526
	# Configuration option activation/mirror_log_fault_policy.
1527
	# Defines how a device failure in a 'mirror' log LV is handled.
1528
	# The mirror_image_fault_policy description for mirrored LVs also
1529
	# applies to mirrored log LVs.
1530
	mirror_log_fault_policy = "allocate"
1531
 
1532
	# Configuration option activation/snapshot_autoextend_threshold.
1533
	# Auto-extend a snapshot when its usage exceeds this percent.
1534
	# Setting this to 100 disables automatic extension.
1535
	# The minimum value is 50 (a smaller value is treated as 50.)
1536
	# Also see snapshot_autoextend_percent.
1537
	# Automatic extension requires dmeventd to be monitoring the LV.
1538
	#
1539
	# Example
1540
	# Using 70% autoextend threshold and 20% autoextend size, when a 1G
1541
	# snapshot exceeds 700M, it is extended to 1.2G, and when it exceeds
1542
	# 840M, it is extended to 1.44G:
1543
	# snapshot_autoextend_threshold = 70
1544
	#
1545
	snapshot_autoextend_threshold = 100
1546
 
1547
	# Configuration option activation/snapshot_autoextend_percent.
1548
	# Auto-extending a snapshot adds this percent extra space.
1549
	# The amount of additional space added to a snapshot is this
1550
	# percent of its current size.
1551
	#
1552
	# Example
1553
	# Using 70% autoextend threshold and 20% autoextend size, when a 1G
1554
	# snapshot exceeds 700M, it is extended to 1.2G, and when it exceeds
1555
	# 840M, it is extended to 1.44G:
1556
	# snapshot_autoextend_percent = 20
1557
	#
1558
	snapshot_autoextend_percent = 20
1559
 
1560
	# Configuration option activation/thin_pool_autoextend_threshold.
1561
	# Auto-extend a thin pool when its usage exceeds this percent.
1562
	# Setting this to 100 disables automatic extension.
1563
	# The minimum value is 50 (a smaller value is treated as 50.)
1564
	# Also see thin_pool_autoextend_percent.
1565
	# Automatic extension requires dmeventd to be monitoring the LV.
1566
	#
1567
	# Example
1568
	# Using 70% autoextend threshold and 20% autoextend size, when a 1G
1569
	# thin pool exceeds 700M, it is extended to 1.2G, and when it exceeds
1570
	# 840M, it is extended to 1.44G:
1571
	# thin_pool_autoextend_threshold = 70
1572
	#
1573
	thin_pool_autoextend_threshold = 100
1574
 
1575
	# Configuration option activation/thin_pool_autoextend_percent.
1576
	# Auto-extending a thin pool adds this percent extra space.
1577
	# The amount of additional space added to a thin pool is this
1578
	# percent of its current size.
1579
	#
1580
	# Example
1581
	# Using 70% autoextend threshold and 20% autoextend size, when a 1G
1582
	# thin pool exceeds 700M, it is extended to 1.2G, and when it exceeds
1583
	# 840M, it is extended to 1.44G:
1584
	# thin_pool_autoextend_percent = 20
1585
	#
1586
	thin_pool_autoextend_percent = 20
1587
 
1588
	# Configuration option activation/vdo_pool_autoextend_threshold.
1589
	# Auto-extend a VDO pool when its usage exceeds this percent.
1590
	# Setting this to 100 disables automatic extension.
1591
	# The minimum value is 50 (a smaller value is treated as 50.)
1592
	# Also see vdo_pool_autoextend_percent.
1593
	# Automatic extension requires dmeventd to be monitoring the LV.
1594
	#
1595
	# Example
1596
	# Using 70% autoextend threshold and 20% autoextend size, when a 10G
1597
	# VDO pool exceeds 7G, it is extended to 12G, and when it exceeds
1598
	# 8.4G, it is extended to 14.4G:
1599
	# vdo_pool_autoextend_threshold = 70
1600
	#
1601
	# This configuration option has an automatic default value.
1602
	# vdo_pool_autoextend_threshold = 100
1603
 
1604
	# Configuration option activation/vdo_pool_autoextend_percent.
1605
	# Auto-extending a VDO pool adds this percent extra space.
1606
	# The amount of additional space added to a VDO pool is this
1607
	# percent of its current size.
1608
	#
1609
	# Example
1610
	# Using 70% autoextend threshold and 20% autoextend size, when a 10G
1611
	# VDO pool exceeds 7G, it is extended to 12G, and when it exceeds
1612
	# 8.4G, it is extended to 14.4G:
1613
	# This configuration option has an automatic default value.
1614
	# vdo_pool_autoextend_percent = 20
1615
 
1616
	# Configuration option activation/mlock_filter.
1617
	# Do not mlock these memory areas.
1618
	# While activating devices, I/O to devices being (re)configured is
1619
	# suspended. As a precaution against deadlocks, LVM pins memory it is
1620
	# using so it is not paged out, and will not require I/O to reread.
1621
	# Groups of pages that are known not to be accessed during activation
1622
	# do not need to be pinned into memory. Each string listed in this
1623
	# setting is compared against each line in /proc/self/maps, and the
1624
	# pages corresponding to lines that match are not pinned. On some
1625
	# systems, locale-archive was found to make up over 80% of the memory
1626
	# used by the process.
1627
	#
1628
	# Example
1629
	# mlock_filter = [ "locale/locale-archive", "gconv/gconv-modules.cache" ]
1630
	#
1631
	# This configuration option is advanced.
1632
	# This configuration option does not have a default value defined.
1633
 
1634
	# Configuration option activation/use_mlockall.
1635
	# Use the old behavior of mlockall to pin all memory.
1636
	# Prior to version 2.02.62, LVM used mlockall() to pin the whole
1637
	# process's memory while activating devices.
1638
	# This configuration option has an automatic default value.
1639
	# use_mlockall = 0
1640
 
1641
	# Configuration option activation/monitoring.
1642
	# Monitor LVs that are activated.
1643
	# The --ignoremonitoring option overrides this setting.
1644
	# When enabled, LVM will ask dmeventd to monitor activated LVs.
1645
	monitoring = 1
1646
 
1647
	# Configuration option activation/polling_interval.
1648
	# Check pvmove or lvconvert progress at this interval (seconds).
1649
	# When pvmove or lvconvert must wait for the kernel to finish
1650
	# synchronising or merging data, they check and report progress at
1651
	# intervals of this number of seconds. If this is set to 0 and there
1652
	# is only one thing to wait for, there are no progress reports, but
1653
	# the process is awoken immediately once the operation is complete.
1654
	# This configuration option has an automatic default value.
1655
	# polling_interval = 15
1656
 
1657
	# Configuration option activation/auto_set_activation_skip.
1658
	# Set the activation skip flag on new thin snapshot LVs.
1659
	# The --setactivationskip option overrides this setting.
1660
	# An LV can have a persistent 'activation skip' flag. The flag causes
1661
	# the LV to be skipped during normal activation. The lvchange/vgchange
1662
	# -K option is required to activate LVs that have the activation skip
1663
	# flag set. When this setting is enabled, the activation skip flag is
1664
	# set on new thin snapshot LVs.
1665
	# This configuration option has an automatic default value.
1666
	# auto_set_activation_skip = 1
1667
 
1668
	# Configuration option activation/activation_mode.
1669
	# How LVs with missing devices are activated.
1670
	# The --activationmode option overrides this setting.
1671
	#
1672
	# Accepted values:
1673
	#   complete
1674
	#     Only allow activation of an LV if all of the Physical Volumes it
1675
	#     uses are present. Other PVs in the Volume Group may be missing.
1676
	#   degraded
1677
	#     Like complete, but additionally RAID LVs of segment type raid1,
1678
	#     raid4, raid5, radid6 and raid10 will be activated if there is no
1679
	#     data loss, i.e. they have sufficient redundancy to present the
1680
	#     entire addressable range of the Logical Volume.
1681
	#   partial
1682
	#     Allows the activation of any LV even if a missing or failed PV
1683
	#     could cause data loss with a portion of the LV inaccessible.
1684
	#     This setting should not normally be used, but may sometimes
1685
	#     assist with data recovery.
1686
	#
1687
	activation_mode = "degraded"
1688
 
1689
	# Configuration option activation/lock_start_list.
1690
	# Locking is started only for VGs selected by this list.
1691
	# The rules are the same as those for volume_list.
1692
	# This configuration option does not have a default value defined.
1693
 
1694
	# Configuration option activation/auto_lock_start_list.
1695
	# Locking is auto-started only for VGs selected by this list.
1696
	# The rules are the same as those for auto_activation_volume_list.
1697
	# This configuration option does not have a default value defined.
1698
}
1699
 
1700
# Configuration section metadata.
1701
# This configuration section has an automatic default value.
1702
# metadata {
1703
 
1704
	# Configuration option metadata/check_pv_device_sizes.
1705
	# Check device sizes are not smaller than corresponding PV sizes.
1706
	# If device size is less than corresponding PV size found in metadata,
1707
	# there is always a risk of data loss. If this option is set, then LVM
1708
	# issues a warning message each time it finds that the device size is
1709
	# less than corresponding PV size. You should not disable this unless
1710
	# you are absolutely sure about what you are doing!
1711
	# This configuration option is advanced.
1712
	# This configuration option has an automatic default value.
1713
	# check_pv_device_sizes = 1
1714
 
1715
	# Configuration option metadata/record_lvs_history.
1716
	# When enabled, LVM keeps history records about removed LVs in
1717
	# metadata. The information that is recorded in metadata for
1718
	# historical LVs is reduced when compared to original
1719
	# information kept in metadata for live LVs. Currently, this
1720
	# feature is supported for thin and thin snapshot LVs only.
1721
	# This configuration option has an automatic default value.
1722
	# record_lvs_history = 0
1723
 
1724
	# Configuration option metadata/lvs_history_retention_time.
1725
	# Retention time in seconds after which a record about individual
1726
	# historical logical volume is automatically destroyed.
1727
	# A value of 0 disables this feature.
1728
	# This configuration option has an automatic default value.
1729
	# lvs_history_retention_time = 0
1730
 
1731
	# Configuration option metadata/pvmetadatacopies.
1732
	# Number of copies of metadata to store on each PV.
1733
	# The --pvmetadatacopies option overrides this setting.
1734
	#
1735
	# Accepted values:
1736
	#   2
1737
	#     Two copies of the VG metadata are stored on the PV, one at the
1738
	#     front of the PV, and one at the end.
1739
	#   1
1740
	#     One copy of VG metadata is stored at the front of the PV.
1741
	#   0
1742
	#     No copies of VG metadata are stored on the PV. This may be
1743
	#     useful for VGs containing large numbers of PVs.
1744
	#
1745
	# This configuration option is advanced.
1746
	# This configuration option has an automatic default value.
1747
	# pvmetadatacopies = 1
1748
 
1749
	# Configuration option metadata/vgmetadatacopies.
1750
	# Number of copies of metadata to maintain for each VG.
1751
	# The --vgmetadatacopies option overrides this setting.
1752
	# If set to a non-zero value, LVM automatically chooses which of the
1753
	# available metadata areas to use to achieve the requested number of
1754
	# copies of the VG metadata. If you set a value larger than the the
1755
	# total number of metadata areas available, then metadata is stored in
1756
	# them all. The value 0 (unmanaged) disables this automatic management
1757
	# and allows you to control which metadata areas are used at the
1758
	# individual PV level using pvchange --metadataignore y|n.
1759
	# This configuration option has an automatic default value.
1760
	# vgmetadatacopies = 0
1761
 
1762
	# Configuration option metadata/pvmetadatasize.
1763
	# The default size of the metadata area in units of 512 byte sectors.
1764
	# The metadata area begins at an offset of the page size from the start
1765
	# of the device. The first PE is by default at 1 MiB from the start of
1766
	# the device. The space between these is the default metadata area size.
1767
	# The actual size of the metadata area may be larger than what is set
1768
	# here due to default_data_alignment making the first PE a MiB multiple.
1769
	# The metadata area begins with a 512 byte header and is followed by a
1770
	# circular buffer used for VG metadata text. The maximum size of the VG
1771
	# metadata is about half the size of the metadata buffer. VGs with large
1772
	# numbers of PVs or LVs, or VGs containing complex LV structures, may need
1773
	# additional space for VG metadata. The --metadatasize option overrides
1774
	# this setting.
1775
	# This configuration option does not have a default value defined.
1776
 
1777
	# Configuration option metadata/pvmetadataignore.
1778
	# Ignore metadata areas on a new PV.
1779
	# The --metadataignore option overrides this setting.
1780
	# If metadata areas on a PV are ignored, LVM will not store metadata
1781
	# in them.
1782
	# This configuration option is advanced.
1783
	# This configuration option has an automatic default value.
1784
	# pvmetadataignore = 0
1785
 
1786
	# Configuration option metadata/stripesize.
1787
	# This configuration option is advanced.
1788
	# This configuration option has an automatic default value.
1789
	# stripesize = 64
1790
# }
1791
 
1792
# Configuration section report.
1793
# LVM report command output formatting.
1794
# This configuration section has an automatic default value.
1795
# report {
1796
 
1797
	# Configuration option report/output_format.
1798
	# Format of LVM command's report output.
1799
	# If there is more than one report per command, then the format
1800
	# is applied for all reports. You can also change output format
1801
	# directly on command line using --reportformat option which
1802
	# has precedence over log/output_format setting.
1803
	# Accepted values:
1804
	#   basic
1805
	#     Original format with columns and rows. If there is more than
1806
	#     one report per command, each report is prefixed with report's
1807
	#     name for identification.
1808
	#   json
1809
	#     JSON format.
1810
	# This configuration option has an automatic default value.
1811
	# output_format = "basic"
1812
 
1813
	# Configuration option report/compact_output.
1814
	# Do not print empty values for all report fields.
1815
	# If enabled, all fields that don't have a value set for any of the
1816
	# rows reported are skipped and not printed. Compact output is
1817
	# applicable only if report/buffered is enabled. If you need to
1818
	# compact only specified fields, use compact_output=0 and define
1819
	# report/compact_output_cols configuration setting instead.
1820
	# This configuration option has an automatic default value.
1821
	# compact_output = 0
1822
 
1823
	# Configuration option report/compact_output_cols.
1824
	# Do not print empty values for specified report fields.
1825
	# If defined, specified fields that don't have a value set for any
1826
	# of the rows reported are skipped and not printed. Compact output
1827
	# is applicable only if report/buffered is enabled. If you need to
1828
	# compact all fields, use compact_output=1 instead in which case
1829
	# the compact_output_cols setting is then ignored.
1830
	# This configuration option has an automatic default value.
1831
	# compact_output_cols = ""
1832
 
1833
	# Configuration option report/aligned.
1834
	# Align columns in report output.
1835
	# This configuration option has an automatic default value.
1836
	# aligned = 1
1837
 
1838
	# Configuration option report/buffered.
1839
	# Buffer report output.
1840
	# When buffered reporting is used, the report's content is appended
1841
	# incrementally to include each object being reported until the report
1842
	# is flushed to output which normally happens at the end of command
1843
	# execution. Otherwise, if buffering is not used, each object is
1844
	# reported as soon as its processing is finished.
1845
	# This configuration option has an automatic default value.
1846
	# buffered = 1
1847
 
1848
	# Configuration option report/headings.
1849
	# Show headings for columns on report.
1850
	# This configuration option has an automatic default value.
1851
	# headings = 1
1852
 
1853
	# Configuration option report/separator.
1854
	# A separator to use on report after each field.
1855
	# This configuration option has an automatic default value.
1856
	# separator = " "
1857
 
1858
	# Configuration option report/list_item_separator.
1859
	# A separator to use for list items when reported.
1860
	# This configuration option has an automatic default value.
1861
	# list_item_separator = ","
1862
 
1863
	# Configuration option report/prefixes.
1864
	# Use a field name prefix for each field reported.
1865
	# This configuration option has an automatic default value.
1866
	# prefixes = 0
1867
 
1868
	# Configuration option report/quoted.
1869
	# Quote field values when using field name prefixes.
1870
	# This configuration option has an automatic default value.
1871
	# quoted = 1
1872
 
1873
	# Configuration option report/columns_as_rows.
1874
	# Output each column as a row.
1875
	# If set, this also implies report/prefixes=1.
1876
	# This configuration option has an automatic default value.
1877
	# columns_as_rows = 0
1878
 
1879
	# Configuration option report/binary_values_as_numeric.
1880
	# Use binary values 0 or 1 instead of descriptive literal values.
1881
	# For columns that have exactly two valid values to report
1882
	# (not counting the 'unknown' value which denotes that the
1883
	# value could not be determined).
1884
	# This configuration option has an automatic default value.
1885
	# binary_values_as_numeric = 0
1886
 
1887
	# Configuration option report/time_format.
1888
	# Set time format for fields reporting time values.
1889
	# Format specification is a string which may contain special character
1890
	# sequences and ordinary character sequences. Ordinary character
1891
	# sequences are copied verbatim. Each special character sequence is
1892
	# introduced by the '%' character and such sequence is then
1893
	# substituted with a value as described below.
1894
	#
1895
	# Accepted values:
1896
	#   %a
1897
	#     The abbreviated name of the day of the week according to the
1898
	#     current locale.
1899
	#   %A
1900
	#     The full name of the day of the week according to the current
1901
	#     locale.
1902
	#   %b
1903
	#     The abbreviated month name according to the current locale.
1904
	#   %B
1905
	#     The full month name according to the current locale.
1906
	#   %c
1907
	#     The preferred date and time representation for the current
1908
	#     locale (alt E)
1909
	#   %C
1910
	#     The century number (year/100) as a 2-digit integer. (alt E)
1911
	#   %d
1912
	#     The day of the month as a decimal number (range 01 to 31).
1913
	#     (alt O)
1914
	#   %D
1915
	#     Equivalent to %m/%d/%y. (For Americans only. Americans should
1916
	#     note that in other countries%d/%m/%y is rather common. This
1917
	#     means that in international context this format is ambiguous and
1918
	#     should not be used.
1919
	#   %e
1920
	#     Like %d, the day of the month as a decimal number, but a leading
1921
	#     zero is replaced by a space. (alt O)
1922
	#   %E
1923
	#     Modifier: use alternative local-dependent representation if
1924
	#     available.
1925
	#   %F
1926
	#     Equivalent to %Y-%m-%d (the ISO 8601 date format).
1927
	#   %G
1928
	#     The ISO 8601 week-based year with century as adecimal number.
1929
	#     The 4-digit year corresponding to the ISO week number (see %V).
1930
	#     This has the same format and value as %Y, except that if the
1931
	#     ISO week number belongs to the previous or next year, that year
1932
	#     is used instead.
1933
	#   %g
1934
	#     Like %G, but without century, that is, with a 2-digit year
1935
	#     (00-99).
1936
	#   %h
1937
	#     Equivalent to %b.
1938
	#   %H
1939
	#     The hour as a decimal number using a 24-hour clock
1940
	#     (range 00 to 23). (alt O)
1941
	#   %I
1942
	#     The hour as a decimal number using a 12-hour clock
1943
	#     (range 01 to 12). (alt O)
1944
	#   %j
1945
	#     The day of the year as a decimal number (range 001 to 366).
1946
	#   %k
1947
	#     The hour (24-hour clock) as a decimal number (range 0 to 23);
1948
	#     single digits are preceded by a blank. (See also %H.)
1949
	#   %l
1950
	#     The hour (12-hour clock) as a decimal number (range 1 to 12);
1951
	#     single digits are preceded by a blank. (See also %I.)
1952
	#   %m
1953
	#     The month as a decimal number (range 01 to 12). (alt O)
1954
	#   %M
1955
	#     The minute as a decimal number (range 00 to 59). (alt O)
1956
	#   %O
1957
	#     Modifier: use alternative numeric symbols.
1958
	#   %p
1959
	#     Either "AM" or "PM" according to the given time value,
1960
	#     or the corresponding strings for the current locale. Noon is
1961
	#     treated as "PM" and midnight as "AM".
1962
	#   %P
1963
	#     Like %p but in lowercase: "am" or "pm" or a corresponding
1964
	#     string for the current locale.
1965
	#   %r
1966
	#     The time in a.m. or p.m. notation. In the POSIX locale this is
1967
	#     equivalent to %I:%M:%S %p.
1968
	#   %R
1969
	#     The time in 24-hour notation (%H:%M). For a version including
1970
	#     the seconds, see %T below.
1971
	#   %s
1972
	#     The number of seconds since the Epoch,
1973
	#     1970-01-01 00:00:00 +0000 (UTC)
1974
	#   %S
1975
	#     The second as a decimal number (range 00 to 60). (The range is
1976
	#     up to 60 to allow for occasional leap seconds.) (alt O)
1977
	#   %t
1978
	#     A tab character.
1979
	#   %T
1980
	#     The time in 24-hour notation (%H:%M:%S).
1981
	#   %u
1982
	#     The day of the week as a decimal, range 1 to 7, Monday being 1.
1983
	#     See also %w. (alt O)
1984
	#   %U
1985
	#     The week number of the current year as a decimal number,
1986
	#     range 00 to 53, starting with the first Sunday as the first
1987
	#     day of week 01. See also %V and %W. (alt O)
1988
	#   %V
1989
	#     The ISO 8601 week number of the current year as a decimal number,
1990
	#     range 01 to 53, where week 1 is the first week that has at least
1991
	#     4 days in the new year. See also %U and %W. (alt O)
1992
	#   %w
1993
	#     The day of the week as a decimal, range 0 to 6, Sunday being 0.
1994
	#     See also %u. (alt O)
1995
	#   %W
1996
	#     The week number of the current year as a decimal number,
1997
	#     range 00 to 53, starting with the first Monday as the first day
1998
	#     of week 01. (alt O)
1999
	#   %x
2000
	#     The preferred date representation for the current locale without
2001
	#     the time. (alt E)
2002
	#   %X
2003
	#     The preferred time representation for the current locale without
2004
	#     the date. (alt E)
2005
	#   %y
2006
	#     The year as a decimal number without a century (range 00 to 99).
2007
	#     (alt E, alt O)
2008
	#   %Y
2009
	#     The year as a decimal number including the century. (alt E)
2010
	#   %z
2011
	#     The +hhmm or -hhmm numeric timezone (that is, the hour and minute
2012
	#     offset from UTC).
2013
	#   %Z
2014
	#     The timezone name or abbreviation.
2015
	#   %%
2016
	#     A literal '%' character.
2017
	#
2018
	# This configuration option has an automatic default value.
2019
	# time_format = "%Y-%m-%d %T %z"
2020
 
2021
	# Configuration option report/devtypes_sort.
2022
	# List of columns to sort by when reporting 'lvm devtypes' command.
2023
	# See 'lvm devtypes -o help' for the list of possible fields.
2024
	# This configuration option has an automatic default value.
2025
	# devtypes_sort = "devtype_name"
2026
 
2027
	# Configuration option report/devtypes_cols.
2028
	# List of columns to report for 'lvm devtypes' command.
2029
	# See 'lvm devtypes -o help' for the list of possible fields.
2030
	# This configuration option has an automatic default value.
2031
	# devtypes_cols = "devtype_name,devtype_max_partitions,devtype_description"
2032
 
2033
	# Configuration option report/devtypes_cols_verbose.
2034
	# List of columns to report for 'lvm devtypes' command in verbose mode.
2035
	# See 'lvm devtypes -o help' for the list of possible fields.
2036
	# This configuration option has an automatic default value.
2037
	# devtypes_cols_verbose = "devtype_name,devtype_max_partitions,devtype_description"
2038
 
2039
	# Configuration option report/lvs_sort.
2040
	# List of columns to sort by when reporting 'lvs' command.
2041
	# See 'lvs -o help' for the list of possible fields.
2042
	# This configuration option has an automatic default value.
2043
	# lvs_sort = "vg_name,lv_name"
2044
 
2045
	# Configuration option report/lvs_cols.
2046
	# List of columns to report for 'lvs' command.
2047
	# See 'lvs -o help' for the list of possible fields.
2048
	# This configuration option has an automatic default value.
2049
	# 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"
2050
 
2051
	# Configuration option report/lvs_cols_verbose.
2052
	# List of columns to report for 'lvs' command in verbose mode.
2053
	# See 'lvs -o help' for the list of possible fields.
2054
	# This configuration option has an automatic default value.
2055
	# 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"
2056
 
2057
	# Configuration option report/vgs_sort.
2058
	# List of columns to sort by when reporting 'vgs' command.
2059
	# See 'vgs -o help' for the list of possible fields.
2060
	# This configuration option has an automatic default value.
2061
	# vgs_sort = "vg_name"
2062
 
2063
	# Configuration option report/vgs_cols.
2064
	# List of columns to report for 'vgs' command.
2065
	# See 'vgs -o help' for the list of possible fields.
2066
	# This configuration option has an automatic default value.
2067
	# vgs_cols = "vg_name,pv_count,lv_count,snap_count,vg_attr,vg_size,vg_free"
2068
 
2069
	# Configuration option report/vgs_cols_verbose.
2070
	# List of columns to report for 'vgs' command in verbose mode.
2071
	# See 'vgs -o help' for the list of possible fields.
2072
	# This configuration option has an automatic default value.
2073
	# vgs_cols_verbose = "vg_name,vg_attr,vg_extent_size,pv_count,lv_count,snap_count,vg_size,vg_free,vg_uuid,vg_profile"
2074
 
2075
	# Configuration option report/pvs_sort.
2076
	# List of columns to sort by when reporting 'pvs' command.
2077
	# See 'pvs -o help' for the list of possible fields.
2078
	# This configuration option has an automatic default value.
2079
	# pvs_sort = "pv_name"
2080
 
2081
	# Configuration option report/pvs_cols.
2082
	# List of columns to report for 'pvs' command.
2083
	# See 'pvs -o help' for the list of possible fields.
2084
	# This configuration option has an automatic default value.
2085
	# pvs_cols = "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free"
2086
 
2087
	# Configuration option report/pvs_cols_verbose.
2088
	# List of columns to report for 'pvs' command in verbose mode.
2089
	# See 'pvs -o help' for the list of possible fields.
2090
	# This configuration option has an automatic default value.
2091
	# pvs_cols_verbose = "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,dev_size,pv_uuid"
2092
 
2093
	# Configuration option report/segs_sort.
2094
	# List of columns to sort by when reporting 'lvs --segments' command.
2095
	# See 'lvs --segments -o help' for the list of possible fields.
2096
	# This configuration option has an automatic default value.
2097
	# segs_sort = "vg_name,lv_name,seg_start"
2098
 
2099
	# Configuration option report/segs_cols.
2100
	# List of columns to report for 'lvs --segments' command.
2101
	# See 'lvs --segments -o help' for the list of possible fields.
2102
	# This configuration option has an automatic default value.
2103
	# segs_cols = "lv_name,vg_name,lv_attr,stripes,segtype,seg_size"
2104
 
2105
	# Configuration option report/segs_cols_verbose.
2106
	# List of columns to report for 'lvs --segments' command in verbose mode.
2107
	# See 'lvs --segments -o help' for the list of possible fields.
2108
	# This configuration option has an automatic default value.
2109
	# segs_cols_verbose = "lv_name,vg_name,lv_attr,seg_start,seg_size,stripes,segtype,stripesize,chunksize"
2110
 
2111
	# Configuration option report/pvsegs_sort.
2112
	# List of columns to sort by when reporting 'pvs --segments' command.
2113
	# See 'pvs --segments -o help' for the list of possible fields.
2114
	# This configuration option has an automatic default value.
2115
	# pvsegs_sort = "pv_name,pvseg_start"
2116
 
2117
	# Configuration option report/pvsegs_cols.
2118
	# List of columns to sort by when reporting 'pvs --segments' command.
2119
	# See 'pvs --segments -o help' for the list of possible fields.
2120
	# This configuration option has an automatic default value.
2121
	# pvsegs_cols = "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size"
2122
 
2123
	# Configuration option report/pvsegs_cols_verbose.
2124
	# List of columns to sort by when reporting 'pvs --segments' command in verbose mode.
2125
	# See 'pvs --segments -o help' for the list of possible fields.
2126
	# This configuration option has an automatic default value.
2127
	# 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"
2128
 
2129
	# Configuration option report/vgs_cols_full.
2130
	# List of columns to report for lvm fullreport's 'vgs' subreport.
2131
	# See 'vgs -o help' for the list of possible fields.
2132
	# This configuration option has an automatic default value.
2133
	# vgs_cols_full = "vg_all"
2134
 
2135
	# Configuration option report/pvs_cols_full.
2136
	# List of columns to report for lvm fullreport's 'vgs' subreport.
2137
	# See 'pvs -o help' for the list of possible fields.
2138
	# This configuration option has an automatic default value.
2139
	# pvs_cols_full = "pv_all"
2140
 
2141
	# Configuration option report/lvs_cols_full.
2142
	# List of columns to report for lvm fullreport's 'lvs' subreport.
2143
	# See 'lvs -o help' for the list of possible fields.
2144
	# This configuration option has an automatic default value.
2145
	# lvs_cols_full = "lv_all"
2146
 
2147
	# Configuration option report/pvsegs_cols_full.
2148
	# List of columns to report for lvm fullreport's 'pvseg' subreport.
2149
	# See 'pvs --segments -o help' for the list of possible fields.
2150
	# This configuration option has an automatic default value.
2151
	# pvsegs_cols_full = "pvseg_all,pv_uuid,lv_uuid"
2152
 
2153
	# Configuration option report/segs_cols_full.
2154
	# List of columns to report for lvm fullreport's 'seg' subreport.
2155
	# See 'lvs --segments -o help' for the list of possible fields.
2156
	# This configuration option has an automatic default value.
2157
	# segs_cols_full = "seg_all,lv_uuid"
2158
 
2159
	# Configuration option report/vgs_sort_full.
2160
	# List of columns to sort by when reporting lvm fullreport's 'vgs' subreport.
2161
	# See 'vgs -o help' for the list of possible fields.
2162
	# This configuration option has an automatic default value.
2163
	# vgs_sort_full = "vg_name"
2164
 
2165
	# Configuration option report/pvs_sort_full.
2166
	# List of columns to sort by when reporting lvm fullreport's 'vgs' subreport.
2167
	# See 'pvs -o help' for the list of possible fields.
2168
	# This configuration option has an automatic default value.
2169
	# pvs_sort_full = "pv_name"
2170
 
2171
	# Configuration option report/lvs_sort_full.
2172
	# List of columns to sort by when reporting lvm fullreport's 'lvs' subreport.
2173
	# See 'lvs -o help' for the list of possible fields.
2174
	# This configuration option has an automatic default value.
2175
	# lvs_sort_full = "vg_name,lv_name"
2176
 
2177
	# Configuration option report/pvsegs_sort_full.
2178
	# List of columns to sort by when reporting for lvm fullreport's 'pvseg' subreport.
2179
	# See 'pvs --segments -o help' for the list of possible fields.
2180
	# This configuration option has an automatic default value.
2181
	# pvsegs_sort_full = "pv_uuid,pvseg_start"
2182
 
2183
	# Configuration option report/segs_sort_full.
2184
	# List of columns to sort by when reporting lvm fullreport's 'seg' subreport.
2185
	# See 'lvs --segments -o help' for the list of possible fields.
2186
	# This configuration option has an automatic default value.
2187
	# segs_sort_full = "lv_uuid,seg_start"
2188
 
2189
	# Configuration option report/mark_hidden_devices.
2190
	# Use brackets [] to mark hidden devices.
2191
	# This configuration option has an automatic default value.
2192
	# mark_hidden_devices = 1
2193
 
2194
	# Configuration option report/two_word_unknown_device.
2195
	# Use the two words 'unknown device' in place of '[unknown]'.
2196
	# This is displayed when the device for a PV is not known.
2197
	# This configuration option has an automatic default value.
2198
	# two_word_unknown_device = 0
2199
# }
2200
 
2201
# Configuration section dmeventd.
2202
# Settings for the LVM event daemon.
2203
dmeventd {
2204
 
2205
	# Configuration option dmeventd/mirror_library.
2206
	# The library dmeventd uses when monitoring a mirror device.
2207
	# libdevmapper-event-lvm2mirror.so attempts to recover from
2208
	# failures. It removes failed devices from a volume group and
2209
	# reconfigures a mirror as necessary. If no mirror library is
2210
	# provided, mirrors are not monitored through dmeventd.
2211
	# This configuration option has an automatic default value.
2212
	# mirror_library = "libdevmapper-event-lvm2mirror.so"
2213
 
2214
	# Configuration option dmeventd/raid_library.
2215
	# This configuration option has an automatic default value.
2216
	# raid_library = "libdevmapper-event-lvm2raid.so"
2217
 
2218
	# Configuration option dmeventd/snapshot_library.
2219
	# The library dmeventd uses when monitoring a snapshot device.
2220
	# libdevmapper-event-lvm2snapshot.so monitors the filling of snapshots
2221
	# and emits a warning through syslog when the usage exceeds 80%. The
2222
	# warning is repeated when 85%, 90% and 95% of the snapshot is filled.
2223
	# This configuration option has an automatic default value.
2224
	# snapshot_library = "libdevmapper-event-lvm2snapshot.so"
2225
 
2226
	# Configuration option dmeventd/thin_library.
2227
	# The library dmeventd uses when monitoring a thin device.
2228
	# libdevmapper-event-lvm2thin.so monitors the filling of a pool
2229
	# and emits a warning through syslog when the usage exceeds 80%. The
2230
	# warning is repeated when 85%, 90% and 95% of the pool is filled.
2231
	# This configuration option has an automatic default value.
2232
	# thin_library = "libdevmapper-event-lvm2thin.so"
2233
 
2234
	# Configuration option dmeventd/thin_command.
2235
	# The plugin runs command with each 5% increment when thin-pool data volume
2236
	# or metadata volume gets above 50%.
2237
	# Command which starts with 'lvm ' prefix is internal lvm command.
2238
	# You can write your own handler to customise behaviour in more details.
2239
	# User handler is specified with the full path starting with '/'.
2240
	# This configuration option has an automatic default value.
2241
	# thin_command = "lvm lvextend --use-policies"
2242
 
2243
	# Configuration option dmeventd/vdo_library.
2244
	# The library dmeventd uses when monitoring a VDO pool device.
2245
	# libdevmapper-event-lvm2vdo.so monitors the filling of a pool
2246
	# and emits a warning through syslog when the usage exceeds 80%. The
2247
	# warning is repeated when 85%, 90% and 95% of the pool is filled.
2248
	# This configuration option has an automatic default value.
2249
	# vdo_library = "libdevmapper-event-lvm2vdo.so"
2250
 
2251
	# Configuration option dmeventd/vdo_command.
2252
	# The plugin runs command with each 5% increment when VDO pool volume
2253
	# gets above 50%.
2254
	# Command which starts with 'lvm ' prefix is internal lvm command.
2255
	# You can write your own handler to customise behaviour in more details.
2256
	# User handler is specified with the full path starting with '/'.
2257
	# This configuration option has an automatic default value.
2258
	# vdo_command = "lvm lvextend --use-policies"
2259
 
2260
	# Configuration option dmeventd/executable.
2261
	# The full path to the dmeventd binary.
2262
	# This configuration option has an automatic default value.
2263
	# executable = "/usr/sbin/dmeventd"
2264
}
2265
 
2266
# Configuration section tags.
2267
# Host tag settings.
2268
# This configuration section has an automatic default value.
2269
# tags {
2270
 
2271
	# Configuration option tags/hosttags.
2272
	# Create a host tag using the machine name.
2273
	# The machine name is nodename returned by uname(2).
2274
	# This configuration option has an automatic default value.
2275
	# hosttags = 0
2276
 
2277
	# Configuration section tags/<tag>.
2278
	# Replace this subsection name with a custom tag name.
2279
	# Multiple subsections like this can be created. The '@' prefix for
2280
	# tags is optional. This subsection can contain host_list, which is a
2281
	# list of machine names. If the name of the local machine is found in
2282
	# host_list, then the name of this subsection is used as a tag and is
2283
	# applied to the local machine as a 'host tag'. If this subsection is
2284
	# empty (has no host_list), then the subsection name is always applied
2285
	# as a 'host tag'.
2286
	#
2287
	# Example
2288
	# The host tag foo is given to all hosts, and the host tag
2289
	# bar is given to the hosts named machine1 and machine2.
2290
	# tags { foo { } bar { host_list = [ "machine1", "machine2" ] } }
2291
	#
2292
	# This configuration section has variable name.
2293
	# This configuration section has an automatic default value.
2294
	# tag {
2295
 
2296
		# Configuration option tags/<tag>/host_list.
2297
		# A list of machine names.
2298
		# These machine names are compared to the nodename returned
2299
		# by uname(2). If the local machine name matches an entry in
2300
		# this list, the name of the subsection is applied to the
2301
		# machine as a 'host tag'.
2302
		# This configuration option does not have a default value defined.
2303
	# }
2304
# }