lvm.conf 57 KB

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