Saltstack Official Linux Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

1892 Zeilen
92KB

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