~ubuntu-branches/debian/stretch/lvm2/stretch

« back to all changes in this revision

Viewing changes to conf/example.conf.in

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2014-08-19 15:37:06 UTC
  • mfrom: (30.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20140819153706-0p2sc6a53ef7xnvl
Tags: 2.02.109-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
56
 
    preferred_names = [ ]
 
56
 
 
57
    # By default no preferred names are defined.
 
58
    # preferred_names = [ ]
57
59
 
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" ]
60
62
 
 
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.
 
65
    #
 
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
 
69
    #
 
70
    # If the ordering above cannot be applied, the path with fewer slashes
 
71
    # gets preference then.
 
72
    #
 
73
    # If the number of slashes is the same, a symlink gets preference.
 
74
    #
 
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.
 
78
 
 
79
 
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
84
103
    # lvmetad is used" comment that is attached to global/use_lvmetad setting.
85
104
 
86
105
    # By default we accept every block device:
87
 
    filter = [ "a/.*/" ]
 
106
    # filter = [ "a/.*/" ]
88
107
 
89
108
    # Exclude the cdrom drive
90
109
    # filter = [ "r|/dev/cdrom|" ]
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.  
 
550
    #
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".
687
717
    #
688
 
    # thin_check_options = [ "-q" ]
 
718
    # thin_check_options = [ "-q", "--clear-needs-check-flag" ]
689
719
 
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
715
745
    #
716
746
    # thin_disabled_features = [ "discards", "block_size" ]
 
747
 
 
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.
 
756
    #
 
757
    # cache_check_executable = "@CACHE_CHECK_CMD@"
 
758
 
 
759
    # Array of string options passed with cache_check command. By default,
 
760
    # option "-q" is for quiet output.
 
761
    #
 
762
    # cache_check_options = [ "-q" ]
 
763
 
 
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.
 
767
    #
 
768
    # cache_repair_executable = "@CACHE_REPAIR_CMD@"
 
769
 
 
770
    # Array of extra string options passed with cache_repair command.
 
771
    # cache_repair_options = [ "" ]
 
772
 
 
773
    # Full path of the utility called to dump cache metadata content.
 
774
    # See cache_check_executable how to obtain binaries.
 
775
    #
 
776
    # cache_dump_executable = "@CACHE_DUMP_CMD@"
717
777
}
718
778
 
719
779
activation {
981
1041
    # are no progress reports, but the process is awoken immediately the
982
1042
    # operation is complete.
983
1043
    polling_interval = 15
 
1044
 
 
1045
    # 'activation_mode' determines how Logical Volumes are activated if
 
1046
    # any devices are missing.  Possible settings are:
 
1047
    #
 
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.
 
1051
    #
 
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.
 
1057
    #
 
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.
 
1063
    #
 
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"
984
1067
}
985
1068
 
986
1069
# Report settings.
1002
1085
    # A separator to use on report after each field.
1003
1086
    # separator=" "
1004
1087
 
 
1088
    # A separator to use for list items when reported.
 
1089
    # list_item_separator=","
 
1090
 
1005
1091
    # Use a field name prefix for each field reported.
1006
1092
    # prefixes=0
1007
1093
 
1011
1097
    # Output each column as a row. If set, this also implies report/prefixes=1.
1012
1098
    # colums_as_rows=0
1013
1099
 
 
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).
 
1103
    #
 
1104
    # binary_values_as_numeric = 0
 
1105
 
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"
1029
1121
 
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"
1033
1125
 
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.