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