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