1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

config: Remove newly-exposed default settings.

Reinstate config settings matching the last release until every
case where the generator produces different output has been reviewed
and fresh decisions made about which defaults to expose as protection
against changes in newer releases. We should be trying to reduce, not
increase, this number.
This commit is contained in:
Alasdair G Kergon 2015-05-02 00:07:12 +01:00
parent 3542fce0fb
commit 796dc9c91c
3 changed files with 199 additions and 248 deletions

View File

@ -1,12 +1,13 @@
Version 2.02.119 -
==================================
Also display deprecation info for deprecated config in lvmconfig --withcomments.
Generate complete config files with lvmconfig or 'make generate'.
Also display info on deprecated config with lvmconfig --withcomments.
Display version since which config is deprecated in lvmconfig --withversions.
Add --showdeprecated to lvmconfig to also display deprecated settings.
Hide deprecated settings in lvmconfig output for all types except current,diff.
Hide deprecated settings in lvmconfig output for all types but current,diff.
Introduce support for exit on idle feature in libdaemon
Add --showunsupported to lvmconfig to also display unsupported settings.
Display unsupported settings for lvmconfig --type current,diff only by default.
Display unsupported settings for lvmconfig --type current,diff only by default
Honour lvmconfig --ignoreunsupported and --ignoreadvanced for all --type.
Make python bindings usable with python3 (and compatible with 2.6 & 2.7).
Add lvmconfig -l|--list as shortcut for lvmconfig --type list --withsummary.

View File

@ -40,15 +40,13 @@ devices {
# Configuration option devices/dir.
# Directory in which to create volume group device nodes.
# Commands also accept this as a prefix on volume group names.
# This configuration option is advanced.
dir = "/dev"
# Configuration option devices/scan.
# Directories containing device nodes to use with LVM.
scan="/dev"
# Configuration option devices/loopfiles.
# This configuration option does not have a default value defined.
# loopfiles=[]
# This configuration option is advanced.
scan = [ "/dev" ]
# Configuration option devices/obtain_device_list_from_udev.
# Obtain the list of available devices from udev.
@ -143,10 +141,6 @@ devices {
# This configuration option does not have a default value defined.
# global_filter = []
# Configuration option devices/cache.
# The path can be set using the devices/cache_dir setting.
cache="/etc/lvm/cache/.cache"
# Configuration option devices/cache_dir.
# Directory in which to store the device cache file.
# The results of filtering are cached on disk to avoid
@ -171,6 +165,7 @@ devices {
# followed by the maximum number of partitions.
# Example:
# types = [ "fd", 16 ]
# This configuration option is advanced.
# This configuration option does not have a default value defined.
# types = []
@ -204,7 +199,7 @@ devices {
# Default alignment of the start of a PV data area in MB.
# If set to 0, a value of 64KB will be used.
# Set to 1 for 1MiB, 2 for 2MiB, etc.
default_data_alignment=1
# default_data_alignment = 1
# Configuration option devices/data_alignment_detection.
# Detect PV data alignment based on sysfs device information.
@ -380,7 +375,7 @@ allocation {
# the cache to disk.
# writeback - Data blocks are written from the cache back
# to disk after some delay to improve performance.
cache_pool_cachemode="writethrough"
# cache_pool_cachemode = "writethrough"
# Configuration option allocation/cache_pool_chunk_size.
# The minimal chunk size (in kiB) for cache pool volumes.
@ -403,12 +398,12 @@ allocation {
# Configuration option allocation/thin_pool_zero.
# Thin pool data chunks are zeroed before they are first used.
# Zeroing with a larger thin pool chunk size reduces performance.
thin_pool_zero=1
# thin_pool_zero = 1
# Configuration option allocation/thin_pool_discards.
# The discards behaviour of thin pool volumes.
# Possible options are: ignore, nopassdown, passdown.
thin_pool_discards="passdown"
# thin_pool_discards = "passdown"
# Configuration option allocation/thin_pool_chunk_size_policy.
# The chunk size calculation policy for thin pool volumes.
@ -421,7 +416,7 @@ allocation {
# Otherwise, calculate the chunk size for performance based on
# device hints exposed in sysfs - the optimal_io_size.
# The chunk size is always at least 512KiB.
thin_pool_chunk_size_policy="generic"
# thin_pool_chunk_size_policy = "generic"
# Configuration option allocation/thin_pool_chunk_size.
# The minimal chunk size (in KB) for thin pool volumes.
@ -436,7 +431,7 @@ allocation {
# Configuration option allocation/physical_extent_size.
# Default physical extent size to use for new VGs (in KB).
physical_extent_size=4096
# physical_extent_size = 4096
}
# Configuration section log.
@ -497,11 +492,7 @@ log {
# Configuration option log/activation.
# Log messages during activation.
# Don't use this in low memory situations (can deadlock).
activation=0
# Configuration option log/activate_file.
# This configuration option does not have a default value defined.
# activate_file=""
# activation = 0
# Configuration option log/debug_classes.
# Select log messages by class.
@ -511,7 +502,8 @@ log {
# memory, devices, activation, allocation,
# lvmetad, metadata, cache, locking.
# Use "all" to see everything.
debug_classes=["memory", "devices", "activation", "allocation", "lvmetad", "metadata", "cache", "locking"]
debug_classes = ["memory", "devices", "activation", "allocation",
"lvmetad", "metadata", "cache", "locking"]
}
# Configuration section backup.
@ -567,7 +559,7 @@ global {
# Configuration option global/umask.
# The file creation mask for any files and directories created.
# Interpreted as octal if the first digit is zero.
umask=63
umask = 077
# Configuration option global/test.
# No on-disk metadata changes will be made in test mode.
@ -608,13 +600,13 @@ global {
# The LVM1 tools need to be installed with .lvm1 suffices,
# e.g. vgscan.lvm1. They will stop working once the lvm2
# on-disk metadata format is used.
fallback_to_lvm1=1
# fallback_to_lvm1 = 0
# Configuration option global/format.
# The default metadata format that commands should use.
# "lvm1" or "lvm2".
# The command line override is -M1 or -M2.
format="lvm2"
# format = "lvm2"
# Configuration option global/format_libraries.
# Shared libraries that process different metadata formats.
@ -629,6 +621,7 @@ global {
# Configuration option global/proc.
# Location of proc filesystem.
# This configuration option is advanced.
proc = "/proc"
# Configuration option global/etc.
@ -705,7 +698,7 @@ global {
# Configuration option global/locking_library.
# The external locking library to use for locking_type 2.
locking_library="liblvm2clusterlock.so"
# locking_library = "liblvm2clusterlock.so"
# Configuration option global/abort_on_internal_errors.
# Abort a command that encounters an internal error.
@ -792,7 +785,7 @@ global {
# Previously this was always shown as /dev/vgname/lvname even when that
# was never a valid path in the /dev filesystem.
# Enable this option to reinstate the previous format.
lvdisplay_shows_full_device_path=0
# lvdisplay_shows_full_device_path = 0
# Configuration option global/use_lvmetad.
# Use lvmetad to cache metadata and reduce disk scanning.
@ -840,13 +833,13 @@ global {
# Also see thin_check_options.
# The thin tools are available from the package
# device-mapper-persistent-data.
thin_check_executable="@THIN_CHECK_CMD@"
# thin_check_executable = "@THIN_CHECK_CMD@"
# Configuration option global/thin_dump_executable.
# The full path to the thin_dump command.
# LVM uses this command to dump thin pool metadata.
# (For thin tools, see thin_check_executable.)
thin_dump_executable="@THIN_DUMP_CMD@"
# thin_dump_executable = "@THIN_DUMP_CMD@"
# Configuration option global/thin_repair_executable.
# The full path to the thin_repair command.
@ -854,19 +847,19 @@ global {
# if it is in an unusable state.
# Also see thin_repair_options.
# (For thin tools, see thin_check_executable.)
thin_repair_executable="@THIN_REPAIR_CMD@"
# thin_repair_executable = "@THIN_REPAIR_CMD@"
# Configuration option global/thin_check_options.
# String of options passed to the thin_check command.
# List of options passed to the thin_check command.
# With thin_check version 2.1 or newer you can add
# --ignore-non-fatal-errors to let it pass through
# ignorable errors and fix them later.
# With thin_check version 3.2 or newer you should add
# --clear-needs-check-flag.
thin_check_options=["-q", "--clear-needs-check-flag"]
# thin_check_options = ["-q", "--clear-needs-check-flag"]
# Configuration option global/thin_repair_options.
# String of options passed to the thin_repair command.
# List of options passed to the thin_repair command.
# This configuration option does not have a default value defined.
# thin_repair_options = ""
@ -893,13 +886,13 @@ global {
# Also see cache_check_options.
# The cache tools are available from the package
# device-mapper-persistent-data.
cache_check_executable="@CACHE_CHECK_CMD@"
# cache_check_executable = "@CACHE_CHECK_CMD@"
# Configuration option global/cache_dump_executable.
# The full path to the cache_dump command.
# LVM uses this command to dump cache pool metadata.
# (For cache tools, see cache_check_executable.)
cache_dump_executable="@CACHE_DUMP_CMD@"
# cache_dump_executable = "@CACHE_DUMP_CMD@"
# Configuration option global/cache_repair_executable.
# The full path to the cache_repair command.
@ -907,14 +900,14 @@ global {
# if it is in an unusable state.
# Also see cache_repair_options.
# (For cache tools, see cache_check_executable.)
cache_repair_executable="@CACHE_REPAIR_CMD@"
# cache_repair_executable = "@CACHE_REPAIR_CMD@"
# Configuration option global/cache_check_options.
# String of options passed to the cache_check command.
cache_check_options="-q"
# List of options passed to the cache_check command.
# cache_check_options = "-q"
# Configuration option global/cache_repair_options.
# String of options passed to the cache_repair command.
# List of options passed to the cache_repair command.
# This configuration option does not have a default value defined.
# cache_repair_options = ""
@ -937,7 +930,7 @@ global {
# See 'man machine-id'.
# file - Use the contents of another file (system_id_file) to set
# the system ID.
system_id_source="none"
# system_id_source = "none"
# Configuration option global/system_id_file.
# The full path to the file containing a system ID.
@ -1000,6 +993,7 @@ activation {
# case, that device will be used in place of missing stripes.
# Using anything other than 'error' with mirrored or snapshotted
# volumes is likely to result in data corruption.
# This configuration option is advanced.
missing_stripe_filler = "error"
# Configuration option activation/use_linear_target.
@ -1088,10 +1082,6 @@ activation {
# This configuration option does not have a default value defined.
# read_only_volume_list = []
# Configuration option activation/mirror_region_size.
# This has been replaced by the activation/raid_region_size setting.
mirror_region_size=512
# Configuration option activation/raid_region_size.
# Size in KiB of each raid or mirror synchronization region.
# For raid or mirror segment types, this is the amount of
@ -1108,7 +1098,7 @@ activation {
# thin pool data space is extended.
# New thin pools are assigned the behavior defined here.
# The '--errorwhenfull y|n' option overrides this setting.
error_when_full=0
# error_when_full = 0
# Configuration option activation/readahead.
# Setting to use when there is no readahead setting in metadata.
@ -1178,10 +1168,6 @@ activation {
# also applies to mirrored log LVs.
mirror_log_fault_policy = "allocate"
# Configuration option activation/mirror_device_fault_policy.
# This has been replaced by the mirror_image_fault_policy setting.
mirror_device_fault_policy="remove"
# Configuration option activation/snapshot_autoextend_threshold.
# Auto-extend a snapshot when its usage exceeds this percent.
# Setting this to 100 disables automatic extension.
@ -1240,6 +1226,7 @@ activation {
# used by the process.
# Example:
# mlock_filter = [ "locale/locale-archive", "gconv/gconv-modules.cache" ]
# This configuration option is advanced.
# This configuration option does not have a default value defined.
# mlock_filter = []
@ -1275,7 +1262,7 @@ activation {
# When this setting is enabled, the activation skip flag is
# set on new thin snapshot LVs.
# The '--setactivationskip y|n' option overrides this setting.
auto_set_activation_skip=1
# auto_set_activation_skip = 1
# Configuration option activation/activation_mode.
# How LVs with missing devices are activated.
@ -1298,8 +1285,7 @@ activation {
}
# Configuration section metadata.
# This configuration section is advanced.
metadata {
# metadata {
# Configuration option metadata/pvmetadatacopies.
# Number of copies of metadata to store on each PV.
@ -1311,7 +1297,7 @@ metadata {
# be useful with VGs containing large numbers of PVs.
# The '--pvmetadatacopies' option overrides this setting.
# This configuration option is advanced.
pvmetadatacopies=1
# pvmetadatacopies = 1
# Configuration option metadata/vgmetadatacopies.
# Number of copies of metadata to maintain for each VG.
@ -1324,8 +1310,7 @@ metadata {
# and allows you to control which metadata areas are used at
# the individual PV level using 'pvchange --metadataignore y|n'.
# The '--vgmetadatacopies' option overrides this setting.
# This configuration option is advanced.
vgmetadatacopies=0
# vgmetadatacopies = 0
# Configuration option metadata/pvmetadatasize.
# Approximate number of sectors to use for each metadata copy.
@ -1334,8 +1319,7 @@ metadata {
# metadata. The metadata areas are treated as circular buffers,
# so unused space becomes filled with an archive of the most
# recent previous versions of the metadata.
# This configuration option is advanced.
pvmetadatasize=255
# pvmetadatasize = 255
# Configuration option metadata/pvmetadataignore.
# Ignore metadata areas on a new PV.
@ -1343,11 +1327,11 @@ metadata {
# metadata in them.
# The '--metadataignore' option overrides this setting.
# This configuration option is advanced.
pvmetadataignore=0
# pvmetadataignore = 0
# Configuration option metadata/stripesize.
# This configuration option is advanced.
stripesize=64
# stripesize = 64
# Configuration option metadata/dirs.
# Directories holding live copies of text format metadata.
@ -1366,56 +1350,22 @@ metadata {
# This configuration option is advanced.
# This configuration option does not have a default value defined.
# dirs = []
# Configuration section metadata/disk_areas.
# This configuration section is advanced.
# This configuration section is not officially supported.
# This configuration section does not have a default value defined.
# disk_areas {
# Configuration section metadata/disk_areas/<disk_area>.
# This configuration section is advanced.
# This configuration section is not officially supported.
# This configuration section has variable name.
# This configuration section does not have a default value defined.
# disk_area {
# Configuration option metadata/disk_areas/<disk_area>/start_sector.
# This configuration option is advanced.
# This configuration option is not officially supported.
# This configuration option does not have a default value defined.
# start_sector=0
# Configuration option metadata/disk_areas/<disk_area>/size.
# This configuration option is advanced.
# This configuration option is not officially supported.
# This configuration option does not have a default value defined.
# size=0
# Configuration option metadata/disk_areas/<disk_area>/id.
# This configuration option is advanced.
# This configuration option is not officially supported.
# This configuration option does not have a default value defined.
# id=""
# }
# }
}
# Configuration section report.
# LVM report command output formatting.
# This configuration section is advanced.
report {
# report {
# Configuration option report/compact_output.
# Do not print empty report fields.
# Fields that don't have a value set for any of the rows
# reported are skipped and not printed. Compact output is
# applicable only if report/buffered is enabled.
compact_output=0
# compact_output = 0
# Configuration option report/aligned.
# Align columns in report output.
aligned=1
# aligned = 1
# Configuration option report/buffered.
# Buffer report output.
@ -1424,130 +1374,130 @@ report {
# is flushed to output which normally happens at the end of command
# execution. Otherwise, if buffering is not used, each object is
# reported as soon as its processing is finished.
buffered=1
# buffered = 1
# Configuration option report/headings.
# Show headings for columns on report.
headings=1
# headings = 1
# Configuration option report/separator.
# A separator to use on report after each field.
separator=" "
# separator = " "
# Configuration option report/list_item_separator.
# A separator to use for list items when reported.
list_item_separator=","
# list_item_separator = ","
# Configuration option report/prefixes.
# Use a field name prefix for each field reported.
prefixes=0
# prefixes = 0
# Configuration option report/quoted.
# Quote field values when using field name prefixes.
quoted=1
# quoted = 1
# Configuration option report/colums_as_rows.
# Output each column as a row.
# If set, this also implies report/prefixes = 1.
colums_as_rows=0
# colums_as_rows = 0
# Configuration option report/binary_values_as_numeric.
# Use binary values 0 or 1 instead of descriptive literal values.
# For columns that have exactly two valid values to report
# (not counting the 'unknown' value which denotes that the
# value could not be determined).
binary_values_as_numeric=0
# binary_values_as_numeric = 0
# Configuration option report/devtypes_sort.
# List of columns to sort by when reporting 'lvm devtypes' command.
# See 'lvm devtypes -o help' for the list of possible fields.
devtypes_sort="devtype_name"
# devtypes_sort = "devtype_name"
# Configuration option report/devtypes_cols.
# List of columns to report for 'lvm devtypes' command.
# See 'lvm devtypes -o help' for the list of possible fields.
devtypes_cols="devtype_name,devtype_max_partitions,devtype_description"
# devtypes_cols = "devtype_name,devtype_max_partitions,devtype_description"
# Configuration option report/devtypes_cols_verbose.
# List of columns to report for 'lvm devtypes' command in verbose mode.
# See 'lvm devtypes -o help' for the list of possible fields.
devtypes_cols_verbose="devtype_name,devtype_max_partitions,devtype_description"
# devtypes_cols_verbose = "devtype_name,devtype_max_partitions,devtype_description"
# Configuration option report/lvs_sort.
# List of columns to sort by when reporting 'lvs' command.
# See 'lvs -o help' for the list of possible fields.
lvs_sort="vg_name,lv_name"
# lvs_sort = "vg_name,lv_name"
# Configuration option report/lvs_cols.
# List of columns to report for 'lvs' command.
# See 'lvs -o help' for the list of possible fields.
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"
# 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"
# Configuration option report/lvs_cols_verbose.
# List of columns to report for 'lvs' command in verbose mode.
# See 'lvs -o help' for the list of possible fields.
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"
# 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"
# Configuration option report/vgs_sort.
# List of columns to sort by when reporting 'vgs' command.
# See 'vgs -o help' for the list of possible fields.
vgs_sort="vg_name"
# vgs_sort = "vg_name"
# Configuration option report/vgs_cols.
# List of columns to report for 'vgs' command.
# See 'vgs -o help' for the list of possible fields.
vgs_cols="vg_name,pv_count,lv_count,snap_count,vg_attr,vg_size,vg_free"
# vgs_cols = "vg_name,pv_count,lv_count,snap_count,vg_attr,vg_size,vg_free"
# Configuration option report/vgs_cols_verbose.
# List of columns to report for 'vgs' command in verbose mode.
# See 'vgs -o help' for the list of possible fields.
vgs_cols_verbose="vg_name,vg_attr,vg_extent_size,pv_count,lv_count,snap_count,vg_size,vg_free,vg_uuid,vg_profile"
# vgs_cols_verbose = "vg_name,vg_attr,vg_extent_size,pv_count,lv_count,snap_count,vg_size,vg_free,vg_uuid,vg_profile"
# Configuration option report/pvs_sort.
# List of columns to sort by when reporting 'pvs' command.
# See 'pvs -o help' for the list of possible fields.
pvs_sort="pv_name"
# pvs_sort = "pv_name"
# Configuration option report/pvs_cols.
# List of columns to report for 'pvs' command.
# See 'pvs -o help' for the list of possible fields.
pvs_cols="pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free"
# pvs_cols = "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free"
# Configuration option report/pvs_cols_verbose.
# List of columns to report for 'pvs' command in verbose mode.
# See 'pvs -o help' for the list of possible fields.
pvs_cols_verbose="pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,dev_size,pv_uuid"
# pvs_cols_verbose = "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,dev_size,pv_uuid"
# Configuration option report/segs_sort.
# List of columns to sort by when reporting 'lvs --segments' command.
# See 'lvs --segments -o help' for the list of possible fields.
segs_sort="vg_name,lv_name,seg_start"
# segs_sort = "vg_name,lv_name,seg_start"
# Configuration option report/segs_cols.
# List of columns to report for 'lvs --segments' command.
# See 'lvs --segments -o help' for the list of possible fields.
segs_cols="lv_name,vg_name,lv_attr,stripes,segtype,seg_size"
# segs_cols = "lv_name,vg_name,lv_attr,stripes,segtype,seg_size"
# Configuration option report/segs_cols_verbose.
# List of columns to report for 'lvs --segments' command in verbose mode.
# See 'lvs --segments -o help' for the list of possible fields.
segs_cols_verbose="lv_name,vg_name,lv_attr,seg_start,seg_size,stripes,segtype,stripesize,chunksize"
# segs_cols_verbose = "lv_name,vg_name,lv_attr,seg_start,seg_size,stripes,segtype,stripesize,chunksize"
# Configuration option report/pvsegs_sort.
# List of columns to sort by when reporting 'pvs --segments' command.
# See 'pvs --segments -o help' for the list of possible fields.
pvsegs_sort="pv_name,pvseg_start"
# pvsegs_sort = "pv_name,pvseg_start"
# Configuration option report/pvsegs_cols.
# List of columns to sort by when reporting 'pvs --segments' command.
# See 'pvs --segments -o help' for the list of possible fields.
pvsegs_cols="pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size"
# pvsegs_cols = "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size"
# Configuration option report/pvsegs_cols_verbose.
# List of columns to sort by when reporting 'pvs --segments' command in verbose mode.
# See 'pvs --segments -o help' for the list of possible fields.
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"
}
# 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"
# }
# Configuration section dmeventd.
# Settings for the LVM event daemon.
@ -1562,7 +1512,7 @@ dmeventd {
mirror_library = "libdevmapper-event-lvm2mirror.so"
# Configuration option dmeventd/raid_library.
raid_library="libdevmapper-event-lvm2raid.so"
# raid_library = "libdevmapper-event-lvm2raid.so"
# Configuration option dmeventd/snapshot_library.
# The library dmeventd uses when monitoring a snapshot device.
@ -1582,17 +1532,17 @@ dmeventd {
# Configuration option dmeventd/executable.
# The full path to the dmeventd binary.
executable="@DMEVENTD_PATH@"
# executable = "@DMEVENTD_PATH@"
}
# Configuration section tags.
# Host tag settings.
tags {
# tags {
# Configuration option tags/hosttags.
# Create a host tag using the machine name.
# The machine name is nodename returned by uname(2).
hosttags=0
# hosttags = 0
# Configuration section tags/<tag>.
# Replace this subsection name with a custom tag name.
@ -1622,4 +1572,4 @@ tags {
# This configuration option does not have a default value defined.
# host_list = ""
# }
}
# }