53
53
# same block device and the tools need to display a name for device,
54
54
# all the pathnames are matched against each item in the following
55
55
# list of regular expressions in turn and the first match is used.
57
# By default no preferred names are defined.
58
# preferred_names = [ ]
58
60
# Try to avoid using undescriptive /dev/dm-N names, if present.
59
61
# preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
63
# In case no prefererred name matches or if preferred_names are not
64
# defined at all, builtin rules are used to determine the preference.
66
# The first builtin rule checks path prefixes and it gives preference
67
# based on this ordering (where "dev" depends on devices/dev setting):
68
# /dev/mapper > /dev/disk > /dev/dm-* > /dev/block
70
# If the ordering above cannot be applied, the path with fewer slashes
71
# gets preference then.
73
# If the number of slashes is the same, a symlink gets preference.
75
# Finally, if all the rules mentioned above are not applicable,
76
# lexicographical order is used over paths and the smallest one
77
# of all gets preference.
61
80
# A filter that tells LVM2 to only use a restricted set of devices.
62
81
# The filter consists of an array of regular expressions. These
63
82
# expressions can be delimited by a character of your choice, and
520
539
# Type 3 uses built-in clustered locking.
521
540
# Type 4 uses read-only locking which forbids any operations that might
522
541
# change metadata.
542
# Type 5 offers dummy locking for tools that do not need any locks.
543
# You should not need to set this directly: the tools will select when
544
# to use it instead of the configured locking_type. Do not use lvmetad or
545
# the kernel device-mapper driver with this locking type.
546
# It is used by the --readonly option that offers read-only access to
547
# Volume Group metadata that cannot be locked safely because it belongs to
548
# an inaccessible domain and might be in use, for example a virtual machine
549
# image or a disk that is shared by a clustered machine.
523
551
# N.B. Don't use lvmetad with locking type 3 as lvmetad is not yet
524
552
# supported in clustered environment. If use_lvmetad=1 and locking_type=3
525
553
# is set at the same time, LVM always issues a warning message about this
684
712
# option "-q" is for quiet output.
685
713
# With thin_check version 2.1 or newer you can add "--ignore-non-fatal-errors"
686
714
# to let it pass through ignorable errors and fix them later.
715
# With thin_check version 3.2 or newer you should add
716
# "--clear-needs-check-flag".
688
# thin_check_options = [ "-q" ]
718
# thin_check_options = [ "-q", "--clear-needs-check-flag" ]
690
720
# Full path of the utility called to repair a thin metadata device
691
721
# is in a state that allows it to be used.
714
744
# external_origin_extend
716
746
# thin_disabled_features = [ "discards", "block_size" ]
748
# Full path of the utility called to check that a cache metadata device
749
# is in a state that allows it to be used.
750
# Each time a cached LV needs to be used or after it is deactivated
751
# this utility is executed. The activation will only proceed if the utility
752
# has an exit status of 0.
753
# Set to "" to skip this check. (Not recommended.)
754
# The cache tools are available as part of the device-mapper-persistent-data
755
# package from https://github.com/jthornber/thin-provisioning-tools.
757
# cache_check_executable = "@CACHE_CHECK_CMD@"
759
# Array of string options passed with cache_check command. By default,
760
# option "-q" is for quiet output.
762
# cache_check_options = [ "-q" ]
764
# Full path of the utility called to repair a cache metadata device.
765
# Each time a cache metadata needs repair this utility is executed.
766
# See cache_check_executable how to obtain binaries.
768
# cache_repair_executable = "@CACHE_REPAIR_CMD@"
770
# Array of extra string options passed with cache_repair command.
771
# cache_repair_options = [ "" ]
773
# Full path of the utility called to dump cache metadata content.
774
# See cache_check_executable how to obtain binaries.
776
# cache_dump_executable = "@CACHE_DUMP_CMD@"
981
1041
# are no progress reports, but the process is awoken immediately the
982
1042
# operation is complete.
983
1043
polling_interval = 15
1045
# 'activation_mode' determines how Logical Volumes are activated if
1046
# any devices are missing. Possible settings are:
1048
# "complete" - Only allow activation of an LV if all of the Physical
1049
# Volumes it uses are present. Other PVs in the Volume
1050
# Group may be missing.
1052
# "degraded" - Like "complete", but additionally RAID Logical Volumes of
1053
# segment type raid1, raid4, raid5, radid6 and raid10 will
1054
# be activated if there is no data loss, i.e. they have
1055
# sufficient redundancy to present the entire addressable
1056
# range of the Logical Volume.
1058
# "partial" - Allows the activation of any Logical Volume even if
1059
# a missing or failed PV could cause data loss with a
1060
# portion of the Logical Volume inaccessible.
1061
# This setting should not normally be used, but may
1062
# sometimes assist with data recovery.
1064
# This setting was introduced in LVM version 2.02.108. It corresponds
1065
# with the '--activationmode' option for lvchange and vgchange.
1066
activation_mode = "degraded"
986
1069
# Report settings.
1002
1085
# A separator to use on report after each field.
1003
1086
# separator=" "
1088
# A separator to use for list items when reported.
1089
# list_item_separator=","
1005
1091
# Use a field name prefix for each field reported.
1011
1097
# Output each column as a row. If set, this also implies report/prefixes=1.
1012
1098
# colums_as_rows=0
1100
# Use binary values "0" or "1" instead of descriptive literal values for
1101
# columns that have exactly two valid values to report (not counting the
1102
# "unknown" value which denotes that the value could not be determined).
1104
# binary_values_as_numeric = 0
1014
1106
# Comma separated list of columns to sort by when reporting 'lvm devtypes' command.
1015
1107
# See 'lvm devtypes -o help' for the list of possible fields.
1016
1108
# devtypes_sort="devtype_name"
1030
1122
# Comma separated list of columns to report for 'lvs' command.
1031
1123
# See 'lvs -o help' for the list of possible fields.
1032
# lvs_cols="lv_name,vg_name,lv_attr,lv_size,pool_lv,origin,data_percent,move_pv,mirror_log,copy_percent,convert_lv"
1124
# 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"
1034
1126
# Comma separated list of columns to report for 'lvs' command in verbose mode.
1035
1127
# See 'lvs -o help' for the list of possible fields.