unps

lvm.conf

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