Subversion Repositories configs

Rev

Rev 34 | Details | Compare with Previous | Last modification | View Log | RSS feed

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