rename modules/lvm to modules/dsa_lvm
[mirror/dsa-puppet.git] / modules / dsa_lvm / files / lvm-prokofiev.conf
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 # To put this file in a different directory and override /etc/lvm set
8 # the environment variable LVM_SYSTEM_DIR before running the tools.
9 #
10 # N.B. Take care that each setting only appears once if uncommenting
11 # example settings in this file.
12
13 # This section allows you to set the way the configuration settings are handled.
14 config {
15
16     # If enabled, any LVM2 configuration mismatch is reported.
17     # This implies checking that the configuration key is understood
18     # by LVM2 and that the value of the key is of a proper type.
19     # If disabled, any configuration mismatch is ignored and default
20     # value is used instead without any warning (a message about the
21     # configuration key not being found is issued in verbose mode only).
22     checks = 1
23
24     # If enabled, any configuration mismatch aborts the LVM2 process.
25     abort_on_errors = 0
26
27     # Directory where LVM looks for configuration profiles.
28     profile_dir = "/etc/lvm/profile"
29 }
30
31 # This section allows you to configure which block devices should
32 # be used by the LVM system.
33 devices {
34
35     # Where do you want your volume groups to appear ?
36     dir = "/dev"
37
38     # An array of directories that contain the device nodes you wish
39     # to use with LVM2.
40     scan = [ "/dev" ]
41
42     # If set, the cache of block device nodes with all associated symlinks
43     # will be constructed out of the existing udev database content.
44     # This avoids using and opening any inapplicable non-block devices or
45     # subdirectories found in the device directory. This setting is applied
46     # to udev-managed device directory only, other directories will be scanned
47     # fully. LVM2 needs to be compiled with udev support for this setting to
48     # take effect. N.B. Any device node or symlink not managed by udev in
49     # udev directory will be ignored with this setting on.
50     obtain_device_list_from_udev = 1
51
52     # If several entries in the scanned directories correspond to the
53     # same block device and the tools need to display a name for device,
54     # all the pathnames are matched against each item in the following
55     # list of regular expressions in turn and the first match is used.
56
57     # By default no preferred names are defined.
58     # preferred_names = [ ]
59
60     # Try to avoid using undescriptive /dev/dm-N names, if present.
61     # preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
62
63     # In case no prefererred name matches or if preferred_names are not
64     # defined at all, builtin rules are used to determine the preference.
65     #
66     # The first builtin rule checks path prefixes and it gives preference
67     # based on this ordering (where "dev" depends on devices/dev setting):
68     #   /dev/mapper > /dev/disk > /dev/dm-* > /dev/block
69     #
70     # If the ordering above cannot be applied, the path with fewer slashes
71     # gets preference then.
72     #
73     # If the number of slashes is the same, a symlink gets preference.
74     #
75     # Finally, if all the rules mentioned above are not applicable,
76     # lexicographical order is used over paths and the smallest one
77     # of all gets preference.
78
79
80     # A filter that tells LVM2 to only use a restricted set of devices.
81     # The filter consists of an array of regular expressions.  These
82     # expressions can be delimited by a character of your choice, and
83     # prefixed with either an 'a' (for accept) or 'r' (for reject).
84     # The first expression found to match a device name determines if
85     # the device will be accepted or rejected (ignored).  Devices that
86     # don't match any patterns are accepted.
87
88     # Be careful if there there are symbolic links or multiple filesystem 
89     # entries for the same device as each name is checked separately against
90     # the list of patterns.  The effect is that if the first pattern in the 
91     # list to match a name is an 'a' pattern for any of the names, the device
92     # is accepted; otherwise if the first pattern in the list to match a name
93     # is an 'r' pattern for any of the names it is rejected; otherwise it is
94     # accepted.
95
96     # Don't have more than one filter line active at once: only one gets used.
97
98     # Run vgscan after you change this parameter to ensure that
99     # the cache file gets regenerated (see below).
100     # If it doesn't do what you expect, check the output of 'vgscan -vvvv'.
101
102     # If lvmetad is used, then see "A note about device filtering while
103     # lvmetad is used" comment that is attached to global/use_lvmetad setting.
104
105     # By default we accept every block device:
106     # filter = [ "a/.*/" ]
107
108     # Exclude the cdrom drive
109     # filter = [ "r|/dev/cdrom|" ]
110
111     # When testing I like to work with just loopback devices:
112     # filter = [ "a/loop/", "r/.*/" ]
113
114     # Or maybe all loops and ide drives except hdc:
115     # filter =[ "a|loop|", "r|/dev/hdc|", "a|/dev/ide|", "r|.*|" ]
116
117     # Use anchors if you want to be really specific
118     # filter = [ "a|^/dev/hda8$|", "r/.*/" ]
119     filter = [ "a|^/dev/sd[ab][0-9]*$|", "r/.*/" ]
120
121     # Since "filter" is often overridden from command line, it is not suitable
122     # for system-wide device filtering (udev rules, lvmetad). To hide devices
123     # from LVM-specific udev processing and/or from lvmetad, you need to set
124     # global_filter. The syntax is the same as for normal "filter"
125     # above. Devices that fail the global_filter are not even opened by LVM.
126
127     # global_filter = []
128
129     # The results of the filtering are cached on disk to avoid
130     # rescanning dud devices (which can take a very long time).
131     # By default this cache is stored in the /etc/lvm/cache directory
132     # in a file called '.cache'.
133     # It is safe to delete the contents: the tools regenerate it.
134     # (The old setting 'cache' is still respected if neither of
135     # these new ones is present.)
136     # N.B. If obtain_device_list_from_udev is set to 1 the list of
137     # devices is instead obtained from udev and any existing .cache
138     # file is removed.
139     cache_dir = "/run/lvm"
140     cache_file_prefix = ""
141
142     # You can turn off writing this cache file by setting this to 0.
143     write_cache_state = 1
144
145     # Advanced settings.
146
147     # List of pairs of additional acceptable block device types found 
148     # in /proc/devices with maximum (non-zero) number of partitions.
149     # types = [ "fd", 16 ]
150
151     # If sysfs is mounted (2.6 kernels) restrict device scanning to 
152     # the block devices it believes are valid.
153     # 1 enables; 0 disables.
154     sysfs_scan = 1
155
156     # By default, LVM2 will ignore devices used as component paths
157     # of device-mapper multipath devices.
158     # 1 enables; 0 disables.
159     multipath_component_detection = 1
160
161     # By default, LVM2 will ignore devices used as components of
162     # software RAID (md) devices by looking for md superblocks.
163     # 1 enables; 0 disables.
164     md_component_detection = 1
165
166     # By default, if a PV is placed directly upon an md device, LVM2
167     # will align its data blocks with the md device's stripe-width.
168     # 1 enables; 0 disables.
169     md_chunk_alignment = 1
170
171     # Default alignment of the start of a data area in MB.  If set to 0,
172     # a value of 64KB will be used.  Set to 1 for 1MiB, 2 for 2MiB, etc.
173     # default_data_alignment = 1
174
175     # By default, the start of a PV's data area will be a multiple of
176     # the 'minimum_io_size' or 'optimal_io_size' exposed in sysfs.
177     # - minimum_io_size - the smallest request the device can perform
178     #   w/o incurring a read-modify-write penalty (e.g. MD's chunk size)
179     # - optimal_io_size - the device's preferred unit of receiving I/O
180     #   (e.g. MD's stripe width)
181     # minimum_io_size is used if optimal_io_size is undefined (0).
182     # If md_chunk_alignment is enabled, that detects the optimal_io_size.
183     # This setting takes precedence over md_chunk_alignment.
184     # 1 enables; 0 disables.
185     data_alignment_detection = 1
186
187     # Alignment (in KB) of start of data area when creating a new PV.
188     # md_chunk_alignment and data_alignment_detection are disabled if set.
189     # Set to 0 for the default alignment (see: data_alignment_default)
190     # or page size, if larger.
191     data_alignment = 0
192
193     # By default, the start of the PV's aligned data area will be shifted by
194     # the 'alignment_offset' exposed in sysfs.  This offset is often 0 but
195     # may be non-zero; e.g.: certain 4KB sector drives that compensate for
196     # windows partitioning will have an alignment_offset of 3584 bytes
197     # (sector 7 is the lowest aligned logical block, the 4KB sectors start
198     # at LBA -1, and consequently sector 63 is aligned on a 4KB boundary).
199     # But note that pvcreate --dataalignmentoffset will skip this detection.
200     # 1 enables; 0 disables.
201     data_alignment_offset_detection = 1
202
203     # If, while scanning the system for PVs, LVM2 encounters a device-mapper
204     # device that has its I/O suspended, it waits for it to become accessible.
205     # Set this to 1 to skip such devices.  This should only be needed
206     # in recovery situations.
207     ignore_suspended_devices = 0
208
209     # ignore_lvm_mirrors:  Introduced in version 2.02.104
210     # This setting determines whether logical volumes of "mirror" segment
211     # type are scanned for LVM labels.  This affects the ability of
212     # mirrors to be used as physical volumes.  If 'ignore_lvm_mirrors'
213     # is set to '1', it becomes impossible to create volume groups on top
214     # of mirror logical volumes - i.e. to stack volume groups on mirrors.
215     #
216     # Allowing mirror logical volumes to be scanned (setting the value to '0')
217     # can potentially cause LVM processes and I/O to the mirror to become
218     # blocked.  This is due to the way that the "mirror" segment type handles
219     # failures.  In order for the hang to manifest itself, an LVM command must
220     # be run just after a failure and before the automatic LVM repair process
221     # takes place OR there must be failures in multiple mirrors in the same
222     # volume group at the same time with write failures occurring moments
223     # before a scan of the mirror's labels.
224     #
225     # Note that these scanning limitations do not apply to the LVM RAID
226     # types, like "raid1".  The RAID segment types handle failures in a
227     # different way and are not subject to possible process or I/O blocking.
228     #
229     # It is encouraged that users set 'ignore_lvm_mirrors' to 1 if they
230     # are using the "mirror" segment type.  Users that require volume group
231     # stacking on mirrored logical volumes should consider using the "raid1"
232     # segment type.  The "raid1" segment type is not available for
233     # active/active clustered volume groups.
234     #
235     # Set to 1 to disallow stacking and thereby avoid a possible deadlock.
236     ignore_lvm_mirrors = 1
237
238     # During each LVM operation errors received from each device are counted.
239     # If the counter of a particular device exceeds the limit set here, no
240     # further I/O is sent to that device for the remainder of the respective
241     # operation. Setting the parameter to 0 disables the counters altogether.
242     disable_after_error_count = 0
243
244     # Allow use of pvcreate --uuid without requiring --restorefile.
245     require_restorefile_with_uuid = 1
246
247     # Minimum size (in KB) of block devices which can be used as PVs.
248     # In a clustered environment all nodes must use the same value.
249     # Any value smaller than 512KB is ignored.
250
251     # Ignore devices smaller than 2MB such as floppy drives.
252     pv_min_size = 2048
253
254     # The original built-in setting was 512 up to and including version 2.02.84.
255     # pv_min_size = 512
256
257     # Issue discards to a logical volumes's underlying physical volume(s) when
258     # the logical volume is no longer using the physical volumes' space (e.g.
259     # lvremove, lvreduce, etc).  Discards inform the storage that a region is
260     # no longer in use.  Storage that supports discards advertise the protocol
261     # specific way discards should be issued by the kernel (TRIM, UNMAP, or
262     # WRITE SAME with UNMAP bit set).  Not all storage will support or benefit
263     # from discards but SSDs and thinly provisioned LUNs generally do.  If set
264     # to 1, discards will only be issued if both the storage and kernel provide
265     # support.
266     # 1 enables; 0 disables.
267     issue_discards = 0
268 }
269
270 # This section allows you to configure the way in which LVM selects
271 # free space for its Logical Volumes.
272 allocation {
273
274     # When searching for free space to extend an LV, the "cling"
275     # allocation policy will choose space on the same PVs as the last
276     # segment of the existing LV.  If there is insufficient space and a
277     # list of tags is defined here, it will check whether any of them are
278     # attached to the PVs concerned and then seek to match those PV tags
279     # between existing extents and new extents.
280     # Use the special tag "@*" as a wildcard to match any PV tag.
281  
282     # Example: LVs are mirrored between two sites within a single VG.
283     # PVs are tagged with either @site1 or @site2 to indicate where
284     # they are situated.
285
286     # cling_tag_list = [ "@site1", "@site2" ]
287     # cling_tag_list = [ "@*" ]
288
289     # Changes made in version 2.02.85 extended the reach of the 'cling'
290     # policies to detect more situations where data can be grouped
291     # onto the same disks.  Set this to 0 to revert to the previous
292     # algorithm.
293     maximise_cling = 1
294
295     # Whether to use blkid library instead of native LVM2 code to detect
296     # any existing signatures while creating new Physical Volumes and
297     # Logical Volumes. LVM2 needs to be compiled with blkid wiping support
298     # for this setting to take effect.
299     #
300     # LVM2 native detection code is currently able to recognize these signatures:
301     #   - MD device signature
302     #   - swap signature
303     #   - LUKS signature
304     # To see the list of signatures recognized by blkid, check the output
305     # of 'blkid -k' command. The blkid can recognize more signatures than
306     # LVM2 native detection code, but due to this higher number of signatures
307     # to be recognized, it can take more time to complete the signature scan.
308     use_blkid_wiping = 1
309
310     # Set to 1 to wipe any signatures found on newly-created Logical Volumes
311     # automatically in addition to zeroing of the first KB on the LV
312     # (controlled by the -Z/--zero y option).
313     # The command line option -W/--wipesignatures takes precedence over this
314     # setting.
315     # The default is to wipe signatures when zeroing.
316     #
317     wipe_signatures_when_zeroing_new_lvs = 1
318
319     # Set to 1 to guarantee that mirror logs will always be placed on 
320     # different PVs from the mirror images.  This was the default
321     # until version 2.02.85.
322     mirror_logs_require_separate_pvs = 0
323
324     # Set to 1 to guarantee that cache_pool metadata will always be
325     # placed on  different PVs from the cache_pool data.
326     cache_pool_metadata_require_separate_pvs = 0
327
328     # Specify the minimal chunk size (in kiB) for cache pool volumes.
329     # Using a chunk_size that is too large can result in wasteful use of
330     # the cache, where small reads and writes can cause large sections of
331     # an LV to be mapped into the cache.  However, choosing a chunk_size
332     # that is too small can result in more overhead trying to manage the
333     # numerous chunks that become mapped into the cache.  The former is
334     # more of a problem than the latter in most cases, so we default to
335     # a value that is on the smaller end of the spectrum.  Supported values
336     # range from 32(kiB) to 1048576 in multiples of 32.
337     # cache_pool_chunk_size = 64
338
339     # Set to 1 to guarantee that thin pool metadata will always
340     # be placed on different PVs from the pool data.
341     thin_pool_metadata_require_separate_pvs = 0
342
343     # Specify chunk size calculation policy for thin pool volumes.
344     # Possible options are:
345     # "generic"        - if thin_pool_chunk_size is defined, use it.
346     #                    Otherwise, calculate the chunk size based on
347     #                    estimation and device hints exposed in sysfs:
348     #                    the minimum_io_size. The chunk size is always
349     #                    at least 64KiB.
350     #
351     # "performance"    - if thin_pool_chunk_size is defined, use it.
352     #                    Otherwise, calculate the chunk size for
353     #                    performance based on device hints exposed in
354     #                    sysfs: the optimal_io_size. The chunk size is
355     #                    always at least 512KiB.
356     # thin_pool_chunk_size_policy = "generic"
357
358     # Specify the minimal chunk size (in KB) for thin pool volumes.
359     # Use of the larger chunk size may improve performance for plain
360     # thin volumes, however using them for snapshot volumes is less efficient,
361     # as it consumes more space and takes extra time for copying.
362     # When unset, lvm tries to estimate chunk size starting from 64KB
363     # Supported values are in range from 64 to 1048576.
364     # thin_pool_chunk_size = 64
365
366     # Specify discards behaviour of the thin pool volume.
367     # Select one of  "ignore", "nopassdown", "passdown"
368     # thin_pool_discards = "passdown"
369
370     # Set to 0, to disable zeroing of thin pool data chunks before their
371     # first use.
372     # N.B. zeroing larger thin pool chunk size degrades performance.
373     # thin_pool_zero = 1
374 }
375
376 # This section that allows you to configure the nature of the
377 # information that LVM2 reports.
378 log {
379
380     # Controls the messages sent to stdout or stderr.
381     # There are three levels of verbosity, 3 being the most verbose.
382     verbose = 0
383
384     # Set to 1 to suppress all non-essential messages from stdout.
385     # This has the same effect as -qq.
386     # When this is set, the following commands still produce output:
387     # dumpconfig, lvdisplay, lvmdiskscan, lvs, pvck, pvdisplay, 
388     # pvs, version, vgcfgrestore -l, vgdisplay, vgs.
389     # Non-essential messages are shifted from log level 4 to log level 5
390     # for syslog and lvm2_log_fn purposes.
391     # Any 'yes' or 'no' questions not overridden by other arguments
392     # are suppressed and default to 'no'.
393     silent = 0
394
395     # Should we send log messages through syslog?
396     # 1 is yes; 0 is no.
397     syslog = 1
398
399     # Should we log error and debug messages to a file?
400     # By default there is no log file.
401     #file = "/var/log/lvm2.log"
402
403     # Should we overwrite the log file each time the program is run?
404     # By default we append.
405     overwrite = 0
406
407     # What level of log messages should we send to the log file and/or syslog?
408     # There are 6 syslog-like log levels currently in use - 2 to 7 inclusive.
409     # 7 is the most verbose (LOG_DEBUG).
410     level = 0
411
412     # Format of output messages
413     # Whether or not (1 or 0) to indent messages according to their severity
414     indent = 1
415
416     # Whether or not (1 or 0) to display the command name on each line output
417     command_names = 0
418
419     # A prefix to use before the message text (but after the command name,
420     # if selected).  Default is two spaces, so you can see/grep the severity
421     # of each message.
422     prefix = "  "
423
424     # To make the messages look similar to the original LVM tools use:
425     #   indent = 0
426     #   command_names = 1
427     #   prefix = " -- "
428
429     # Set this if you want log messages during activation.
430     # Don't use this in low memory situations (can deadlock).
431     # activation = 0
432
433     # Some debugging messages are assigned to a class and only appear
434     # in debug output if the class is listed here.
435     # Classes currently available:
436     #   memory, devices, activation, allocation, lvmetad, metadata, cache,
437     #   locking
438     # Use "all" to see everything.
439     debug_classes = [ "memory", "devices", "activation", "allocation",
440                       "lvmetad", "metadata", "cache", "locking" ]
441 }
442
443 # Configuration of metadata backups and archiving.  In LVM2 when we
444 # talk about a 'backup' we mean making a copy of the metadata for the
445 # *current* system.  The 'archive' contains old metadata configurations.
446 # Backups are stored in a human readable text format.
447 backup {
448
449     # Should we maintain a backup of the current metadata configuration ?
450     # Use 1 for Yes; 0 for No.
451     # Think very hard before turning this off!
452     backup = 1
453
454     # Where shall we keep it ?
455     # Remember to back up this directory regularly!
456     backup_dir = "/etc/lvm/backup"
457
458     # Should we maintain an archive of old metadata configurations.
459     # Use 1 for Yes; 0 for No.
460     # On by default.  Think very hard before turning this off.
461     archive = 1
462
463     # Where should archived files go ?
464     # Remember to back up this directory regularly!
465     archive_dir = "/etc/lvm/archive"
466
467     # What is the minimum number of archive files you wish to keep ?
468     retain_min = 10
469
470     # What is the minimum time you wish to keep an archive file for ?
471     retain_days = 30
472 }
473
474 # Settings for the running LVM2 in shell (readline) mode.
475 shell {
476
477     # Number of lines of history to store in ~/.lvm_history
478     history_size = 100
479 }
480
481
482 # Miscellaneous global LVM2 settings
483 global {
484     # The file creation mask for any files and directories created.
485     # Interpreted as octal if the first digit is zero.
486     umask = 077
487
488     # Allow other users to read the files
489     #umask = 022
490
491     # Enabling test mode means that no changes to the on disk metadata
492     # will be made.  Equivalent to having the -t option on every
493     # command.  Defaults to off.
494     test = 0
495
496     # Default value for --units argument
497     units = "h"
498
499     # Since version 2.02.54, the tools distinguish between powers of
500     # 1024 bytes (e.g. KiB, MiB, GiB) and powers of 1000 bytes (e.g.
501     # KB, MB, GB).
502     # If you have scripts that depend on the old behaviour, set this to 0
503     # temporarily until you update them.
504     si_unit_consistency = 1
505
506     # Whether or not to display unit suffix for sizes. This setting has
507     # no effect if the units are in human-readable form (global/units="h")
508     # in which case the suffix is always displayed.
509     suffix = 1
510
511     # Whether or not to communicate with the kernel device-mapper.
512     # Set to 0 if you want to use the tools to manipulate LVM metadata 
513     # without activating any logical volumes.
514     # If the device-mapper kernel driver is not present in your kernel
515     # setting this to 0 should suppress the error messages.
516     activation = 1
517
518     # If we can't communicate with device-mapper, should we try running 
519     # the LVM1 tools?
520     # This option only applies to 2.4 kernels and is provided to help you
521     # switch between device-mapper kernels and LVM1 kernels.
522     # The LVM1 tools need to be installed with .lvm1 suffices
523     # e.g. vgscan.lvm1 and they will stop working after you start using
524     # the new lvm2 on-disk metadata format.
525     # The default value is set when the tools are built.
526     # fallback_to_lvm1 = 0
527
528     # The default metadata format that commands should use - "lvm1" or "lvm2".
529     # The command line override is -M1 or -M2.
530     # Defaults to "lvm2".
531     # format = "lvm2"
532
533     # Location of proc filesystem
534     proc = "/proc"
535
536     # Type of locking to use. Defaults to local file-based locking (1).
537     # Turn locking off by setting to 0 (dangerous: risks metadata corruption
538     # if LVM2 commands get run concurrently).
539     # Type 2 uses the external shared library locking_library.
540     # Type 3 uses built-in clustered locking.
541     # Type 4 uses read-only locking which forbids any operations that might 
542     # change metadata.
543     # Type 5 offers dummy locking for tools that do not need any locks.
544     # You should not need to set this directly: the tools will select when
545     # to use it instead of the configured locking_type.  Do not use lvmetad or
546     # the kernel device-mapper driver with this locking type.
547     # It is used by the --readonly option that offers read-only access to
548     # Volume Group metadata that cannot be locked safely because it belongs to
549     # an inaccessible domain and might be in use, for example a virtual machine
550     # image or a disk that is shared by a clustered machine.  
551     #
552     # N.B. Don't use lvmetad with locking type 3 as lvmetad is not yet
553     # supported in clustered environment. If use_lvmetad=1 and locking_type=3
554     # is set at the same time, LVM always issues a warning message about this
555     # and then it automatically disables lvmetad use.
556     locking_type = 1
557
558     # Set to 0 to fail when a lock request cannot be satisfied immediately.
559     wait_for_locks = 1
560
561     # If using external locking (type 2) and initialisation fails,
562     # with this set to 1 an attempt will be made to use the built-in
563     # clustered locking.
564     # If you are using a customised locking_library you should set this to 0.
565     fallback_to_clustered_locking = 1
566
567     # If an attempt to initialise type 2 or type 3 locking failed, perhaps
568     # because cluster components such as clvmd are not running, with this set
569     # to 1 an attempt will be made to use local file-based locking (type 1).
570     # If this succeeds, only commands against local volume groups will proceed.
571     # Volume Groups marked as clustered will be ignored.
572     fallback_to_local_locking = 1
573
574     # Local non-LV directory that holds file-based locks while commands are
575     # in progress.  A directory like /tmp that may get wiped on reboot is OK.
576     locking_dir = "/run/lock/lvm"
577
578     # Whenever there are competing read-only and read-write access requests for
579     # a volume group's metadata, instead of always granting the read-only
580     # requests immediately, delay them to allow the read-write requests to be
581     # serviced.  Without this setting, write access may be stalled by a high
582     # volume of read-only requests.
583     # NB. This option only affects locking_type = 1 viz. local file-based
584     # locking.
585     prioritise_write_locks = 1
586
587     # Other entries can go here to allow you to load shared libraries
588     # e.g. if support for LVM1 metadata was compiled as a shared library use
589     #   format_libraries = "liblvm2format1.so" 
590     # Full pathnames can be given.
591
592     # Search this directory first for shared libraries.
593     #   library_dir = "/lib/lvm2"
594
595     # The external locking library to load if locking_type is set to 2.
596     #   locking_library = "liblvm2clusterlock.so"
597
598     # Treat any internal errors as fatal errors, aborting the process that
599     # encountered the internal error. Please only enable for debugging.
600     abort_on_internal_errors = 0
601
602     # Check whether CRC is matching when parsed VG is used multiple times.
603     # This is useful to catch unexpected internal cached volume group
604     # structure modification. Please only enable for debugging.
605     detect_internal_vg_cache_corruption = 0
606
607     # If set to 1, no operations that change on-disk metadata will be permitted.
608     # Additionally, read-only commands that encounter metadata in need of repair
609     # will still be allowed to proceed exactly as if the repair had been 
610     # performed (except for the unchanged vg_seqno).
611     # Inappropriate use could mess up your system, so seek advice first!
612     metadata_read_only = 0
613
614     # 'mirror_segtype_default' defines which segtype will be used when the
615     # shorthand '-m' option is used for mirroring.  The possible options are:
616     #
617     # "mirror" - The original RAID1 implementation provided by LVM2/DM.  It is
618     #            characterized by a flexible log solution (core, disk, mirrored)
619     #            and by the necessity to block I/O while reconfiguring in the
620     #            event of a failure.
621     #
622     #            There is an inherent race in the dmeventd failure handling
623     #            logic with snapshots of devices using this type of RAID1 that
624     #            in the worst case could cause a deadlock.
625     #              Ref: https://bugzilla.redhat.com/show_bug.cgi?id=817130#c10
626     #
627     # "raid1"  - This implementation leverages MD's RAID1 personality through
628     #            device-mapper.  It is characterized by a lack of log options.
629     #            (A log is always allocated for every device and they are placed
630     #            on the same device as the image - no separate devices are
631     #            required.)  This mirror implementation does not require I/O
632     #            to be blocked in the kernel in the event of a failure.
633     #            This mirror implementation is not cluster-aware and cannot be
634     #            used in a shared (active/active) fashion in a cluster.
635     #
636     # Specify the '--type <mirror|raid1>' option to override this default
637     # setting.
638     mirror_segtype_default = "raid1"
639
640     # 'raid10_segtype_default' determines the segment types used by default
641     # when the '--stripes/-i' and '--mirrors/-m' arguments are both specified
642     # during the creation of a logical volume.
643     # Possible settings include:
644     #
645     # "raid10" - This implementation leverages MD's RAID10 personality through
646     #            device-mapper.
647     #
648     # "mirror" - LVM will layer the 'mirror' and 'stripe' segment types.  It
649     #            will do this by creating a mirror on top of striped sub-LVs;
650     #            effectively creating a RAID 0+1 array.  This is suboptimal
651     #            in terms of providing redundancy and performance. Changing to
652     #            this setting is not advised.
653     # Specify the '--type <raid10|mirror>' option to override this default
654     # setting.
655     raid10_segtype_default = "raid10"
656
657     # The default format for displaying LV names in lvdisplay was changed 
658     # in version 2.02.89 to show the LV name and path separately.
659     # Previously this was always shown as /dev/vgname/lvname even when that
660     # was never a valid path in the /dev filesystem.
661     # Set to 1 to reinstate the previous format.
662     #
663     # lvdisplay_shows_full_device_path = 0
664
665     # Whether to use (trust) a running instance of lvmetad. If this is set to
666     # 0, all commands fall back to the usual scanning mechanisms. When set to 1
667     # *and* when lvmetad is running (automatically instantiated by making use of
668     # systemd's socket-based service activation or run as an initscripts service
669     # or run manually), the volume group metadata and PV state flags are obtained
670     # from the lvmetad instance and no scanning is done by the individual
671     # commands. In a setup with lvmetad, lvmetad udev rules *must* be set up for
672     # LVM to work correctly. Without proper udev rules, all changes in block
673     # device configuration will be *ignored* until a manual 'pvscan --cache'
674     # is performed. These rules are installed by default.
675     #
676     # If lvmetad has been running while use_lvmetad was 0, it MUST be stopped
677     # before changing use_lvmetad to 1 and started again afterwards.
678     #
679     # If using lvmetad, the volume activation is also switched to automatic
680     # event-based mode. In this mode, the volumes are activated based on
681     # incoming udev events that automatically inform lvmetad about new PVs
682     # that appear in the system. Once the VG is complete (all the PVs are
683     # present), it is auto-activated. The activation/auto_activation_volume_list
684     # setting controls which volumes are auto-activated (all by default).
685     #
686     # A note about device filtering while lvmetad is used:
687     # When lvmetad is updated (either automatically based on udev events
688     # or directly by pvscan --cache <device> call), the devices/filter
689     # is ignored and all devices are scanned by default. The lvmetad always
690     # keeps unfiltered information which is then provided to LVM commands
691     # and then each LVM command does the filtering based on devices/filter
692     # setting itself.
693     # To prevent scanning devices completely, even when using lvmetad,
694     # the devices/global_filter must be used.
695     # N.B. Don't use lvmetad with locking type 3 as lvmetad is not yet
696     # supported in clustered environment. If use_lvmetad=1 and locking_type=3
697     # is set at the same time, LVM always issues a warning message about this
698     # and then it automatically disables lvmetad use.
699     use_lvmetad = 0
700
701     # Full path of the utility called to check that a thin metadata device
702     # is in a state that allows it to be used.
703     # Each time a thin pool needs to be activated or after it is deactivated
704     # this utility is executed. The activation will only proceed if the utility
705     # has an exit status of 0.
706     # Set to "" to skip this check.  (Not recommended.)
707     # The thin tools are available as part of the device-mapper-persistent-data
708     # package from https://github.com/jthornber/thin-provisioning-tools.
709     #
710     # thin_check_executable = "/usr/sbin/thin_check"
711
712     # Array of string options passed with thin_check command. By default,
713     # option "-q" is for quiet output.
714     # With thin_check version 2.1 or newer you can add "--ignore-non-fatal-errors"
715     # to let it pass through ignorable errors and fix them later.
716     # With thin_check version 3.2 or newer you should add
717     # "--clear-needs-check-flag".
718     #
719     # thin_check_options = [ "-q", "--clear-needs-check-flag" ]
720
721     # Full path of the utility called to repair a thin metadata device
722     # is in a state that allows it to be used.
723     # Each time a thin pool needs repair this utility is executed.
724     # See thin_check_executable how to obtain binaries.
725     #
726     # thin_repair_executable = "/usr/sbin/thin_repair"
727
728     # Array of extra string options passed with thin_repair command.
729     # thin_repair_options = [ "" ]
730
731     # Full path of the utility called to dump thin metadata content.
732     # See thin_check_executable how to obtain binaries.
733     #
734     # thin_dump_executable = "/usr/sbin/thin_dump"
735
736     # If set, given features are not used by thin driver.
737     # This can be helpful not just for testing, but i.e. allows to avoid
738     # using problematic implementation of some thin feature.
739     # Features:
740     #   block_size
741     #   discards
742     #   discards_non_power_2
743     #   external_origin
744     #   metadata_resize
745     #   external_origin_extend
746     #
747     # thin_disabled_features = [ "discards", "block_size" ]
748
749     # Full path of the utility called to check that a cache metadata device
750     # is in a state that allows it to be used.
751     # Each time a cached LV needs to be used or after it is deactivated
752     # this utility is executed. The activation will only proceed if the utility
753     # has an exit status of 0.
754     # Set to "" to skip this check.  (Not recommended.)
755     # The cache tools are available as part of the device-mapper-persistent-data
756     # package from https://github.com/jthornber/thin-provisioning-tools.
757     #
758     # cache_check_executable = "/usr/sbin/cache_check"
759
760     # Array of string options passed with cache_check command. By default,
761     # option "-q" is for quiet output.
762     #
763     # cache_check_options = [ "-q" ]
764
765     # Full path of the utility called to repair a cache metadata device.
766     # Each time a cache metadata needs repair this utility is executed.
767     # See cache_check_executable how to obtain binaries.
768     #
769     # cache_repair_executable = "/usr/sbin/cache_repair"
770
771     # Array of extra string options passed with cache_repair command.
772     # cache_repair_options = [ "" ]
773
774     # Full path of the utility called to dump cache metadata content.
775     # See cache_check_executable how to obtain binaries.
776     #
777     # cache_dump_executable = "/usr/sbin/cache_dump"
778 }
779
780 activation {
781     # Set to 1 to perform internal checks on the operations issued to
782     # libdevmapper.  Useful for debugging problems with activation.
783     # Some of the checks may be expensive, so it's best to use this
784     # only when there seems to be a problem.
785     checks = 0
786
787     # Set to 0 to disable udev synchronisation (if compiled into the binaries).
788     # Processes will not wait for notification from udev.
789     # They will continue irrespective of any possible udev processing
790     # in the background.  You should only use this if udev is not running
791     # or has rules that ignore the devices LVM2 creates.
792     # The command line argument --nodevsync takes precedence over this setting.
793     # If set to 1 when udev is not running, and there are LVM2 processes
794     # waiting for udev, run 'dmsetup udevcomplete_all' manually to wake them up.
795     udev_sync = 1
796
797     # Set to 0 to disable the udev rules installed by LVM2 (if built with
798     # --enable-udev_rules). LVM2 will then manage the /dev nodes and symlinks
799     # for active logical volumes directly itself.
800     # N.B. Manual intervention may be required if this setting is changed
801     # while any logical volumes are active.
802     udev_rules = 1
803
804     # Set to 1 for LVM2 to verify operations performed by udev. This turns on
805     # additional checks (and if necessary, repairs) on entries in the device
806     # directory after udev has completed processing its events. 
807     # Useful for diagnosing problems with LVM2/udev interactions.
808     verify_udev_operations = 0
809
810     # If set to 1 and if deactivation of an LV fails, perhaps because
811     # a process run from a quick udev rule temporarily opened the device,
812     # retry the operation for a few seconds before failing.
813     retry_deactivation = 1
814
815     # How to fill in missing stripes if activating an incomplete volume.
816     # Using "error" will make inaccessible parts of the device return
817     # I/O errors on access.  You can instead use a device path, in which 
818     # case, that device will be used to in place of missing stripes.
819     # But note that using anything other than "error" with mirrored 
820     # or snapshotted volumes is likely to result in data corruption.
821     missing_stripe_filler = "error"
822
823     # The linear target is an optimised version of the striped target
824     # that only handles a single stripe.  Set this to 0 to disable this
825     # optimisation and always use the striped target.
826     use_linear_target = 1
827
828     # How much stack (in KB) to reserve for use while devices suspended
829     # Prior to version 2.02.89 this used to be set to 256KB
830     reserved_stack = 64
831
832     # How much memory (in KB) to reserve for use while devices suspended
833     reserved_memory = 8192
834
835     # Nice value used while devices suspended
836     process_priority = -18
837
838     # If volume_list is defined, each LV is only activated if there is a
839     # match against the list.
840     #
841     #   "vgname" and "vgname/lvname" are matched exactly.
842     #   "@tag" matches any tag set in the LV or VG.
843     #   "@*" matches if any tag defined on the host is also set in the LV or VG
844     #
845     # If any host tags exist but volume_list is not defined, a default
846     # single-entry list containing "@*" is assumed.
847     #
848     # volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
849
850     # If auto_activation_volume_list is defined, each LV that is to be
851     # activated with the autoactivation option (--activate ay/-a ay) is
852     # first checked against the list. There are two scenarios in which
853     # the autoactivation option is used:
854     #
855     #   - automatic activation of volumes based on incoming PVs. If all the
856     #     PVs making up a VG are present in the system, the autoactivation
857     #     is triggered. This requires lvmetad (global/use_lvmetad=1) and udev
858     #     to be running. In this case, "pvscan --cache -aay" is called
859     #     automatically without any user intervention while processing
860     #     udev events. Please, make sure you define auto_activation_volume_list
861     #     properly so only the volumes you want and expect are autoactivated.
862     #
863     #   - direct activation on command line with the autoactivation option.
864     #     In this case, the user calls "vgchange --activate ay/-a ay" or
865     #     "lvchange --activate ay/-a ay" directly.
866     #
867     # By default, the auto_activation_volume_list is not defined and all
868     # volumes will be activated either automatically or by using --activate ay/-a ay.
869     #
870     # N.B. The "activation/volume_list" is still honoured in all cases so even
871     # if the VG/LV passes the auto_activation_volume_list, it still needs to
872     # pass the volume_list for it to be activated in the end.
873
874     # If auto_activation_volume_list is defined but empty, no volumes will be
875     # activated automatically and --activate ay/-a ay will do nothing.
876     #
877     # auto_activation_volume_list = []
878
879     # If auto_activation_volume_list is defined and it's not empty, only matching
880     # volumes will be activated either automatically or by using --activate ay/-a ay.
881     #
882     #   "vgname" and "vgname/lvname" are matched exactly.
883     #   "@tag" matches any tag set in the LV or VG.
884     #   "@*" matches if any tag defined on the host is also set in the LV or VG
885     #
886     # auto_activation_volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
887
888     # If read_only_volume_list is defined, each LV that is to be activated 
889     # is checked against the list, and if it matches, it as activated
890     # in read-only mode.  (This overrides '--permission rw' stored in the
891     # metadata.)
892     #
893     #   "vgname" and "vgname/lvname" are matched exactly.
894     #   "@tag" matches any tag set in the LV or VG.
895     #   "@*" matches if any tag defined on the host is also set in the LV or VG
896     #
897     # read_only_volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
898
899     # Each LV can have an 'activation skip' flag stored persistently against it.
900     # During activation, this flag is used to decide whether such an LV is skipped.
901     # The 'activation skip' flag can be set during LV creation and by default it
902     # is automatically set for thin snapshot LVs. The 'auto_set_activation_skip'
903     # enables or disables this automatic setting of the flag while LVs are created.
904     # auto_set_activation_skip = 1
905
906     # For RAID or 'mirror' segment types, 'raid_region_size' is the
907     # size (in KiB) of each:
908     # - synchronization operation when initializing
909     # - each copy operation when performing a 'pvmove' (using 'mirror' segtype)
910     # This setting has replaced 'mirror_region_size' since version 2.02.99
911     raid_region_size = 512
912
913     # Setting to use when there is no readahead value stored in the metadata.
914     #
915     # "none" - Disable readahead.
916     # "auto" - Use default value chosen by kernel.
917     readahead = "auto"
918
919     # 'raid_fault_policy' defines how a device failure in a RAID logical
920     # volume is handled.  This includes logical volumes that have the following
921     # segment types: raid1, raid4, raid5*, and raid6*.
922     #
923     # In the event of a failure, the following policies will determine what
924     # actions are performed during the automated response to failures (when
925     # dmeventd is monitoring the RAID logical volume) and when 'lvconvert' is
926     # called manually with the options '--repair' and '--use-policies'.
927     #
928     # "warn"    - Use the system log to warn the user that a device in the RAID
929     #             logical volume has failed.  It is left to the user to run
930     #             'lvconvert --repair' manually to remove or replace the failed
931     #             device.  As long as the number of failed devices does not
932     #             exceed the redundancy of the logical volume (1 device for
933     #             raid4/5, 2 for raid6, etc) the logical volume will remain
934     #             usable.
935     #
936     # "allocate" - Attempt to use any extra physical volumes in the volume
937     #             group as spares and replace faulty devices.
938     #
939     raid_fault_policy = "warn"
940
941     # 'mirror_image_fault_policy' and 'mirror_log_fault_policy' define
942     # how a device failure affecting a mirror (of "mirror" segment type) is
943     # handled.  A mirror is composed of mirror images (copies) and a log.
944     # A disk log ensures that a mirror does not need to be re-synced
945     # (all copies made the same) every time a machine reboots or crashes.
946     #
947     # In the event of a failure, the specified policy will be used to determine
948     # what happens. This applies to automatic repairs (when the mirror is being
949     # monitored by dmeventd) and to manual lvconvert --repair when
950     # --use-policies is given.
951     #
952     # "remove" - Simply remove the faulty device and run without it.  If
953     #            the log device fails, the mirror would convert to using
954     #            an in-memory log.  This means the mirror will not
955     #            remember its sync status across crashes/reboots and
956     #            the entire mirror will be re-synced.  If a
957     #            mirror image fails, the mirror will convert to a
958     #            non-mirrored device if there is only one remaining good
959     #            copy.
960     #
961     # "allocate" - Remove the faulty device and try to allocate space on
962     #            a new device to be a replacement for the failed device.
963     #            Using this policy for the log is fast and maintains the
964     #            ability to remember sync state through crashes/reboots.
965     #            Using this policy for a mirror device is slow, as it
966     #            requires the mirror to resynchronize the devices, but it
967     #            will preserve the mirror characteristic of the device.
968     #            This policy acts like "remove" if no suitable device and
969     #            space can be allocated for the replacement.
970     #
971     # "allocate_anywhere" - Not yet implemented. Useful to place the log device
972     #            temporarily on same physical volume as one of the mirror
973     #            images. This policy is not recommended for mirror devices
974     #            since it would break the redundant nature of the mirror. This
975     #            policy acts like "remove" if no suitable device and space can
976     #            be allocated for the replacement.
977
978     mirror_log_fault_policy = "allocate"
979     mirror_image_fault_policy = "remove"
980
981     # 'snapshot_autoextend_threshold' and 'snapshot_autoextend_percent' define
982     # how to handle automatic snapshot extension. The former defines when the
983     # snapshot should be extended: when its space usage exceeds this many
984     # percent. The latter defines how much extra space should be allocated for
985     # the snapshot, in percent of its current size.
986     #
987     # For example, if you set snapshot_autoextend_threshold to 70 and
988     # snapshot_autoextend_percent to 20, whenever a snapshot exceeds 70% usage,
989     # it will be extended by another 20%. For a 1G snapshot, using up 700M will
990     # trigger a resize to 1.2G. When the usage exceeds 840M, the snapshot will
991     # be extended to 1.44G, and so on.
992     #
993     # Setting snapshot_autoextend_threshold to 100 disables automatic
994     # extensions. The minimum value is 50 (A setting below 50 will be treated
995     # as 50).
996
997     snapshot_autoextend_threshold = 100
998     snapshot_autoextend_percent = 20
999
1000     # 'thin_pool_autoextend_threshold' and 'thin_pool_autoextend_percent' define
1001     # how to handle automatic pool extension. The former defines when the
1002     # pool should be extended: when its space usage exceeds this many
1003     # percent. The latter defines how much extra space should be allocated for
1004     # the pool, in percent of its current size.
1005     #
1006     # For example, if you set thin_pool_autoextend_threshold to 70 and
1007     # thin_pool_autoextend_percent to 20, whenever a pool exceeds 70% usage,
1008     # it will be extended by another 20%. For a 1G pool, using up 700M will
1009     # trigger a resize to 1.2G. When the usage exceeds 840M, the pool will
1010     # be extended to 1.44G, and so on.
1011     #
1012     # Setting thin_pool_autoextend_threshold to 100 disables automatic
1013     # extensions. The minimum value is 50 (A setting below 50 will be treated
1014     # as 50).
1015
1016     thin_pool_autoextend_threshold = 100
1017     thin_pool_autoextend_percent = 20
1018
1019     # While activating devices, I/O to devices being (re)configured is
1020     # suspended, and as a precaution against deadlocks, LVM2 needs to pin
1021     # any memory it is using so it is not paged out.  Groups of pages that
1022     # are known not to be accessed during activation need not be pinned
1023     # into memory.  Each string listed in this setting is compared against
1024     # each line in /proc/self/maps, and the pages corresponding to any
1025     # lines that match are not pinned.  On some systems locale-archive was
1026     # found to make up over 80% of the memory used by the process.
1027     # mlock_filter = [ "locale/locale-archive", "gconv/gconv-modules.cache" ]
1028
1029     # Set to 1 to revert to the default behaviour prior to version 2.02.62
1030     # which used mlockall() to pin the whole process's memory while activating
1031     # devices.
1032     use_mlockall = 0
1033
1034     # Monitoring is enabled by default when activating logical volumes.
1035     # Set to 0 to disable monitoring or use the --ignoremonitoring option.
1036     monitoring = 1
1037
1038     # When pvmove or lvconvert must wait for the kernel to finish
1039     # synchronising or merging data, they check and report progress
1040     # at intervals of this number of seconds.  The default is 15 seconds.
1041     # If this is set to 0 and there is only one thing to wait for, there
1042     # are no progress reports, but the process is awoken immediately the
1043     # operation is complete.
1044     polling_interval = 15
1045
1046     # 'activation_mode' determines how Logical Volumes are activated if
1047     # any devices are missing.  Possible settings are:
1048     #
1049     #   "complete" -  Only allow activation of an LV if all of the Physical
1050     #                 Volumes it uses are present.  Other PVs in the Volume
1051     #                 Group may be missing.
1052     #
1053     #   "degraded" -  Like "complete", but additionally RAID Logical Volumes of
1054     #                 segment type raid1, raid4, raid5, radid6 and raid10 will
1055     #                 be activated if there is no data loss, i.e. they have
1056     #                 sufficient redundancy to present the entire addressable
1057     #                 range of the Logical Volume.
1058     #
1059     #   "partial"  -  Allows the activation of any Logical Volume even if
1060     #                 a missing or failed PV could cause data loss with a
1061     #                 portion of the Logical Volume inaccessible.
1062     #                 This setting should not normally be used, but may
1063     #                 sometimes assist with data recovery.
1064     #
1065     # This setting was introduced in LVM version 2.02.108.  It corresponds
1066     # with the '--activationmode' option for lvchange and vgchange.
1067     activation_mode = "degraded"
1068 }
1069
1070 # Report settings.
1071 #
1072 # report {
1073     # Align columns on report output.
1074     # aligned=1
1075
1076     # When buffered reporting is used, the report's content is appended
1077     # incrementally to include each object being reported until the report
1078     # is flushed to output which normally happens at the end of command
1079     # execution. Otherwise, if buffering is not used, each object is
1080     # reported as soon as its processing is finished.
1081     # buffered=1
1082
1083     # Show headings for columns on report.
1084     # headings=1
1085
1086     # A separator to use on report after each field.
1087     # separator=" "
1088
1089     # A separator to use for list items when reported.
1090     # list_item_separator=","
1091
1092     # Use a field name prefix for each field reported.
1093     # prefixes=0
1094
1095     # Quote field values when using field name prefixes.
1096     # quoted=1
1097
1098     # Output each column as a row. If set, this also implies report/prefixes=1.
1099     # colums_as_rows=0
1100
1101     # Use binary values "0" or "1" instead of descriptive literal values for
1102     # columns that have exactly two valid values to report (not counting the
1103     # "unknown" value which denotes that the value could not be determined).
1104     #
1105     # binary_values_as_numeric = 0
1106
1107     # Comma separated list of columns to sort by when reporting 'lvm devtypes' command.
1108     # See 'lvm devtypes -o help' for the list of possible fields.
1109     # devtypes_sort="devtype_name"
1110
1111     # Comma separated list of columns to report for 'lvm devtypes' command.
1112     # See 'lvm devtypes -o help' for the list of possible fields.
1113     # devtypes_cols="devtype_name,devtype_max_partitions,devtype_description"
1114
1115     # Comma separated list of columns to report for 'lvm devtypes' command in verbose mode.
1116     # See 'lvm devtypes -o help' for the list of possible fields.
1117     # devtypes_cols_verbose="devtype_name,devtype_max_partitions,devtype_description"
1118
1119     # Comma separated list of columns to sort by when reporting 'lvs' command.
1120     # See 'lvs -o help' for the list of possible fields.
1121     # lvs_sort="vg_name,lv_name"
1122
1123     # Comma separated list of columns to report for 'lvs' command.
1124     # See 'lvs -o help' for the list of possible fields.
1125     # 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"
1126
1127     # Comma separated list of columns to report for 'lvs' command in verbose mode.
1128     # See 'lvs -o help' for the list of possible fields.
1129     # 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
1130
1131     # Comma separated list of columns to sort by when reporting 'vgs' command.
1132     # See 'vgs -o help' for the list of possible fields.
1133     # vgs_sort="vg_name"
1134
1135     # Comma separated list of columns to report for 'vgs' command.
1136     # See 'vgs -o help' for the list of possible fields.
1137     # vgs_cols="vg_name,pv_count,lv_count,snap_count,vg_attr,vg_size,vg_free"
1138
1139     # Comma separated list of columns to report for 'vgs' command in verbose mode.
1140     # See 'vgs -o help' for the list of possible fields.
1141     # vgs_cols_verbose="vg_name,vg_attr,vg_extent_size,pv_count,lv_count,snap_count,vg_size,vg_free,vg_uuid,vg_profile"
1142
1143     # Comma separated list of columns to sort by when reporting 'pvs' command.
1144     # See 'pvs -o help' for the list of possible fields.
1145     # pvs_sort="pv_name"
1146
1147     # Comma separated list of columns to report for 'pvs' command.
1148     # See 'pvs -o help' for the list of possible fields.
1149     # pvs_cols="pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free"
1150
1151     # Comma separated list of columns to report for 'pvs' command in verbose mode.
1152     # See 'pvs -o help' for the list of possible fields.
1153     # pvs_cols_verbose="pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,dev_size,pv_uuid"
1154
1155     # Comma separated list of columns to sort by when reporting 'lvs --segments' command.
1156     # See 'lvs --segments -o help' for the list of possible fields.
1157     # segs_sort="vg_name,lv_name,seg_start"
1158
1159     # Comma separated list of columns to report for 'lvs --segments' command.
1160     # See 'lvs --segments  -o help' for the list of possible fields.
1161     # segs_cols="lv_name,vg_name,lv_attr,stripes,segtype,seg_size"
1162
1163     # Comma separated list of columns to report for 'lvs --segments' command in verbose mode.
1164     # See 'lvs --segments -o help' for the list of possible fields.
1165     # segs_cols_verbose="lv_name,vg_name,lv_attr,seg_start,seg_size,stripes,segtype,stripesize,chunksize"
1166
1167     # Comma separated list of columns to sort by when reporting 'pvs --segments' command.
1168     # See 'pvs --segments -o help' for the list of possible fields.
1169     # pvsegs_sort="pv_name,pvseg_start"
1170
1171     # Comma separated list of columns to sort by when reporting 'pvs --segments' command.
1172     # See 'pvs --segments -o help' for the list of possible fields.
1173     # pvsegs_cols="pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size"
1174
1175     # Comma separated list of columns to sort by when reporting 'pvs --segments' command in verbose mode.
1176     # See 'pvs --segments -o help' for the list of possible fields.
1177     # 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"
1178 #}
1179
1180 ####################
1181 # Advanced section #
1182 ####################
1183
1184 # Metadata settings
1185 #
1186 # metadata {
1187     # Default number of copies of metadata to hold on each PV.  0, 1 or 2.
1188     # You might want to override it from the command line with 0 
1189     # when running pvcreate on new PVs which are to be added to large VGs.
1190
1191     # pvmetadatacopies = 1
1192
1193     # Default number of copies of metadata to maintain for each VG.
1194     # If set to a non-zero value, LVM automatically chooses which of
1195     # the available metadata areas to use to achieve the requested
1196     # number of copies of the VG metadata.  If you set a value larger
1197     # than the the total number of metadata areas available then
1198     # metadata is stored in them all.
1199     # The default value of 0 ("unmanaged") disables this automatic
1200     # management and allows you to control which metadata areas
1201     # are used at the individual PV level using 'pvchange
1202     # --metadataignore y/n'.
1203
1204     # vgmetadatacopies = 0
1205
1206     # Approximate default size of on-disk metadata areas in sectors.
1207     # You should increase this if you have large volume groups or
1208     # you want to retain a large on-disk history of your metadata changes.
1209
1210     # pvmetadatasize = 255
1211
1212     # List of directories holding live copies of text format metadata.
1213     # These directories must not be on logical volumes!
1214     # It's possible to use LVM2 with a couple of directories here,
1215     # preferably on different (non-LV) filesystems, and with no other 
1216     # on-disk metadata (pvmetadatacopies = 0). Or this can be in
1217     # addition to on-disk metadata areas.
1218     # The feature was originally added to simplify testing and is not
1219     # supported under low memory situations - the machine could lock up.
1220     #
1221     # Never edit any files in these directories by hand unless you
1222     # you are absolutely sure you know what you are doing! Use
1223     # the supplied toolset to make changes (e.g. vgcfgrestore).
1224
1225     # dirs = [ "/etc/lvm/metadata", "/mnt/disk2/lvm/metadata2" ]
1226 #}
1227
1228 # Event daemon
1229 #
1230 dmeventd {
1231     # mirror_library is the library used when monitoring a mirror device.
1232     #
1233     # "libdevmapper-event-lvm2mirror.so" attempts to recover from
1234     # failures.  It removes failed devices from a volume group and
1235     # reconfigures a mirror as necessary. If no mirror library is
1236     # provided, mirrors are not monitored through dmeventd.
1237
1238     mirror_library = "libdevmapper-event-lvm2mirror.so"
1239
1240     # snapshot_library is the library used when monitoring a snapshot device.
1241     #
1242     # "libdevmapper-event-lvm2snapshot.so" monitors the filling of
1243     # snapshots and emits a warning through syslog when the use of
1244     # the snapshot exceeds 80%. The warning is repeated when 85%, 90% and
1245     # 95% of the snapshot is filled.
1246
1247     snapshot_library = "libdevmapper-event-lvm2snapshot.so"
1248
1249     # thin_library is the library used when monitoring a thin device.
1250     #
1251     # "libdevmapper-event-lvm2thin.so" monitors the filling of
1252     # pool and emits a warning through syslog when the use of
1253     # the pool exceeds 80%. The warning is repeated when 85%, 90% and
1254     # 95% of the pool is filled.
1255
1256     thin_library = "libdevmapper-event-lvm2thin.so"
1257
1258     # Full path of the dmeventd binary.
1259     #
1260     # executable = "/sbin/dmeventd"
1261 }