Subversion Repositories configs

Rev

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

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