daily pastebin goal
21%
SHARE
TWEET

lvm.conf 20120314

wgseligman Mar 15th, 2012 158 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This is an example configuration file for the LVM2 system.
  2. # It contains the default settings that would be used if there was no
  3. # /etc/lvm/lvm.conf file.
  4. #
  5. # Refer to 'man lvm.conf' for further information including the file layout.
  6. #
  7. # To put this file in a different directory and override /etc/lvm set
  8. # the environment variable LVM_SYSTEM_DIR before running the tools.
  9.  
  10.  
  11. # This section allows you to configure which block devices should
  12. # be used by the LVM system.
  13. devices {
  14.  
  15.     # Where do you want your volume groups to appear ?
  16.     dir = "/dev"
  17.  
  18.     # An array of directories that contain the device nodes you wish
  19.     # to use with LVM2.
  20.     scan = [ "/dev" ]
  21.  
  22.     # If several entries in the scanned directories correspond to the
  23.     # same block device and the tools need to display a name for device,
  24.     # all the pathnames are matched against each item in the following
  25.     # list of regular expressions in turn and the first match is used.
  26.     # preferred_names = [ ]
  27.  
  28.     # Try to avoid using undescriptive /dev/dm-N names, if present.
  29.     preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
  30.  
  31.     # A filter that tells LVM2 to only use a restricted set of devices.
  32.     # The filter consists of an array of regular expressions.  These
  33.     # expressions can be delimited by a character of your choice, and
  34.     # prefixed with either an 'a' (for accept) or 'r' (for reject).
  35.     # The first expression found to match a device name determines if
  36.     # the device will be accepted or rejected (ignored).  Devices that
  37.     # don't match any patterns are accepted.
  38.  
  39.     # Be careful if there there are symbolic links or multiple filesystem
  40.     # entries for the same device as each name is checked separately against
  41.     # the list of patterns.  The effect is that if any name matches any 'a'
  42.     # pattern, the device is accepted; otherwise if any name matches any 'r'
  43.     # pattern it is rejected; otherwise it is accepted.
  44.  
  45.     # Don't have more than one filter line active at once: only one gets used.
  46.  
  47.     # Run vgscan after you change this parameter to ensure that
  48.     # the cache file gets regenerated (see below).
  49.     # If it doesn't do what you expect, check the output of 'vgscan -vvvv'.
  50.  
  51.  
  52.     # By default we accept every block device:
  53.     # filter = [ "a/.*/" ]
  54.  
  55.     # 28-Jun-2010 WGS: Allow DRBD devices to hold LVM volumes
  56.     # 16-Jul-2010 WGS: I hate to do this, but to get the configuration
  57.     # I want I have to restrict this filter to the specific devices on
  58.     # hypatia/orestes.
  59.     filter = [ "a|/dev/drbd.*|", "a|/dev/md0|", "a|/dev/md1|", "r|.*|" ]
  60.  
  61.     # Exclude the cdrom drive
  62.     # filter = [ "r|/dev/cdrom|" ]
  63.  
  64.     # When testing I like to work with just loopback devices:
  65.     # filter = [ "a/loop/", "r/.*/" ]
  66.  
  67.     # Or maybe all loops and ide drives except hdc:
  68.     # filter =[ "a|loop|", "r|/dev/hdc|", "a|/dev/ide|", "r|.*|" ]
  69.  
  70.     # Use anchors if you want to be really specific
  71.     # filter = [ "a|^/dev/hda8$|", "r/.*/" ]
  72.  
  73.     # The results of the filtering are cached on disk to avoid
  74.     # rescanning dud devices (which can take a very long time).
  75.     # By default this cache is stored in the /etc/lvm/cache directory
  76.     # in a file called '.cache'.
  77.     # It is safe to delete the contents: the tools regenerate it.
  78.     # (The old setting 'cache' is still respected if neither of
  79.     # these new ones is present.)
  80.     cache_dir = "/etc/lvm/cache"
  81.     cache_file_prefix = ""
  82.  
  83.     # You can turn off writing this cache file by setting this to 0.
  84.     # 30-Aug-2011 WGS: According to <http://www.drbd.org/users-guide/s-lvm-drbd-as-pv.html>,
  85.     # the write cache should be turned off.
  86.     write_cache_state = 0
  87.  
  88.     # Advanced settings.
  89.  
  90.     # List of pairs of additional acceptable block device types found
  91.     # in /proc/devices with maximum (non-zero) number of partitions.
  92.     # types = [ "fd", 16 ]
  93.  
  94.     # If sysfs is mounted (2.6 kernels) restrict device scanning to
  95.     # the block devices it believes are valid.
  96.     # 1 enables; 0 disables.
  97.     sysfs_scan = 1
  98.  
  99.     # By default, LVM2 will ignore devices used as components of
  100.     # software RAID (md) devices by looking for md superblocks.
  101.     # 1 enables; 0 disables.
  102.     md_component_detection = 1
  103.  
  104.     # By default, if a PV is placed directly upon an md device, LVM2
  105.     # will align its data blocks with the md device's stripe-width.
  106.     # 1 enables; 0 disables.
  107.     md_chunk_alignment = 1
  108.  
  109.     # Default alignment of the start of a data area in MB.  If set to 0,
  110.     # a value of 64KB will be used.  Set to 1 for 1MiB, 2 for 2MiB, etc.
  111.     # default_data_alignment = 1
  112.  
  113.     # By default, the start of a PV's data area will be a multiple of
  114.     # the 'minimum_io_size' or 'optimal_io_size' exposed in sysfs.
  115.     # - minimum_io_size - the smallest request the device can perform
  116.     #   w/o incurring a read-modify-write penalty (e.g. MD's chunk size)
  117.     # - optimal_io_size - the device's preferred unit of receiving I/O
  118.     #   (e.g. MD's stripe width)
  119.     # minimum_io_size is used if optimal_io_size is undefined (0).
  120.     # If md_chunk_alignment is enabled, that detects the optimal_io_size.
  121.     # This setting takes precedence over md_chunk_alignment.
  122.     # 1 enables; 0 disables.
  123.     data_alignment_detection = 1
  124.  
  125.     # Alignment (in KB) of start of data area when creating a new PV.
  126.     # md_chunk_alignment and data_alignment_detection are disabled if set.
  127.     # Set to 0 for the default alignment (see: data_alignment_default)
  128.     # or page size, if larger.
  129.     data_alignment = 0
  130.  
  131.     # By default, the start of the PV's aligned data area will be shifted by
  132.     # the 'alignment_offset' exposed in sysfs.  This offset is often 0 but
  133.     # may be non-zero; e.g.: certain 4KB sector drives that compensate for
  134.     # windows partitioning will have an alignment_offset of 3584 bytes
  135.     # (sector 7 is the lowest aligned logical block, the 4KB sectors start
  136.     # at LBA -1, and consequently sector 63 is aligned on a 4KB boundary).
  137.     # But note that pvcreate --dataalignmentoffset will skip this detection.
  138.     # 1 enables; 0 disables.
  139.     data_alignment_offset_detection = 1
  140.  
  141.     # If, while scanning the system for PVs, LVM2 encounters a device-mapper
  142.     # device that has its I/O suspended, it waits for it to become accessible.
  143.     # Set this to 1 to skip such devices.  This should only be needed
  144.     # in recovery situations.
  145.     ignore_suspended_devices = 0
  146.  
  147.     # During each LVM operation errors received from each device are counted.
  148.     # If the counter of a particular device exceeds the limit set here, no
  149.     # further I/O is sent to that device for the remainder of the respective
  150.     # operation. Setting the parameter to 0 disables the counters altogether.
  151.     disable_after_error_count = 0
  152.  
  153.     # Allow use of pvcreate --uuid without requiring --restorefile.
  154.     require_restorefile_with_uuid = 1
  155. }
  156.  
  157. # This section allows you to configure the way in which LVM selects
  158. # free space for its Logical Volumes.
  159. #allocation {
  160. #    When searching for free space to extend an LV, the "cling"
  161. #    allocation policy will choose space on the same PVs as the last
  162. #    segment of the existing LV.  If there is insufficient space and a
  163. #    list of tags is defined here, it will check whether any of them are
  164. #    attached to the PVs concerned and then seek to match those PV tags
  165. #    between existing extents and new extents.
  166. #    Use the special tag "@*" as a wildcard to match any PV tag.
  167. #    
  168. #    Example: LVs are mirrored between two sites within a single VG.
  169. #    PVs are tagged with either @site1 or @site2 to indicate where
  170. #    they are situated.
  171. #
  172. #    cling_tag_list = [ "@site1", "@site2" ]
  173. #    cling_tag_list = [ "@*" ]
  174. #}
  175.  
  176. # This section that allows you to configure the nature of the
  177. # information that LVM2 reports.
  178. log {
  179.  
  180.     # Controls the messages sent to stdout or stderr.
  181.     # There are three levels of verbosity, 3 being the most verbose.
  182.     verbose = 1
  183.  
  184.     # Should we send log messages through syslog?
  185.     # 1 is yes; 0 is no.
  186.     syslog = 1
  187.  
  188.     # Should we log error and debug messages to a file?
  189.     # By default there is no log file.
  190.     file = "/var/log/cluster/lvm2.log"
  191.  
  192.     # Should we overwrite the log file each time the program is run?
  193.     # By default we append.
  194.     overwrite = 0
  195.  
  196.     # What level of log messages should we send to the log file and/or syslog?
  197.     # There are 6 syslog-like log levels currently in use - 2 to 7 inclusive.
  198.     # 7 is the most verbose (LOG_DEBUG).
  199.     level = 0
  200.  
  201.     # Format of output messages
  202.     # Whether or not (1 or 0) to indent messages according to their severity
  203.     indent = 1
  204.  
  205.     # Whether or not (1 or 0) to display the command name on each line output
  206.     command_names = 0
  207.  
  208.     # A prefix to use before the message text (but after the command name,
  209.     # if selected).  Default is two spaces, so you can see/grep the severity
  210.     # of each message.
  211.     prefix = "  "
  212.  
  213.     # To make the messages look similar to the original LVM tools use:
  214.     #   indent = 0
  215.     #   command_names = 1
  216.     #   prefix = " -- "
  217.  
  218.     # Set this if you want log messages during activation.
  219.     # Don't use this in low memory situations (can deadlock).
  220.     # activation = 0
  221. }
  222.  
  223. # Configuration of metadata backups and archiving.  In LVM2 when we
  224. # talk about a 'backup' we mean making a copy of the metadata for the
  225. # *current* system.  The 'archive' contains old metadata configurations.
  226. # Backups are stored in a human readeable text format.
  227. backup {
  228.  
  229.     # Should we maintain a backup of the current metadata configuration ?
  230.     # Use 1 for Yes; 0 for No.
  231.     # Think very hard before turning this off!
  232.     backup = 1
  233.  
  234.     # Where shall we keep it ?
  235.     # Remember to back up this directory regularly!
  236.     backup_dir = "/etc/lvm/backup"
  237.  
  238.     # Should we maintain an archive of old metadata configurations.
  239.     # Use 1 for Yes; 0 for No.
  240.     # On by default.  Think very hard before turning this off.
  241.     archive = 1
  242.  
  243.     # Where should archived files go ?
  244.     # Remember to back up this directory regularly!
  245.     archive_dir = "/etc/lvm/archive"
  246.  
  247.     # What is the minimum number of archive files you wish to keep ?
  248.     retain_min = 10
  249.  
  250.     # What is the minimum time you wish to keep an archive file for ?
  251.     retain_days = 30
  252. }
  253.  
  254. # Settings for the running LVM2 in shell (readline) mode.
  255. shell {
  256.  
  257.     # Number of lines of history to store in ~/.lvm_history
  258.     history_size = 100
  259. }
  260.  
  261.  
  262. # Miscellaneous global LVM2 settings
  263. global {
  264.  
  265.     # The file creation mask for any files and directories created.
  266.     # Interpreted as octal if the first digit is zero.
  267.     umask = 077
  268.  
  269.     # Allow other users to read the files
  270.     #umask = 022
  271.  
  272.     # Enabling test mode means that no changes to the on disk metadata
  273.     # will be made.  Equivalent to having the -t option on every
  274.     # command.  Defaults to off.
  275.     test = 0
  276.  
  277.     # Default value for --units argument
  278.     units = "h"
  279.  
  280.     # Since version 2.02.54, the tools distinguish between powers of
  281.     # 1024 bytes (e.g. KiB, MiB, GiB) and powers of 1000 bytes (e.g.
  282.     # KB, MB, GB).
  283.     # If you have scripts that depend on the old behaviour, set this to 0
  284.     # temporarily until you update them.
  285.     si_unit_consistency = 1
  286.  
  287.     # Whether or not to communicate with the kernel device-mapper.
  288.     # Set to 0 if you want to use the tools to manipulate LVM metadata
  289.     # without activating any logical volumes.
  290.     # If the device-mapper kernel driver is not present in your kernel
  291.     # setting this to 0 should suppress the error messages.
  292.     activation = 1
  293.  
  294.     # If we can't communicate with device-mapper, should we try running
  295.     # the LVM1 tools?
  296.     # This option only applies to 2.4 kernels and is provided to help you
  297.     # switch between device-mapper kernels and LVM1 kernels.
  298.     # The LVM1 tools need to be installed with .lvm1 suffices
  299.     # e.g. vgscan.lvm1 and they will stop working after you start using
  300.     # the new lvm2 on-disk metadata format.
  301.     # The default value is set when the tools are built.
  302.     # fallback_to_lvm1 = 0
  303.  
  304.     # The default metadata format that commands should use - "lvm1" or "lvm2".
  305.     # The command line override is -M1 or -M2.
  306.     # Defaults to "lvm2".
  307.     # format = "lvm2"
  308.  
  309.     # Location of proc filesystem
  310.     proc = "/proc"
  311.  
  312.     # Type of locking to use. Defaults to local file-based locking (1).
  313.     # Turn locking off by setting to 0 (dangerous: risks metadata corruption
  314.     # if LVM2 commands get run concurrently).
  315.     # Type 2 uses the external shared library locking_library.
  316.     # Type 3 uses built-in clustered locking.
  317.     # Type 4 uses read-only locking which forbids any operations that might
  318.     # change metadata.
  319.     # 27-Jan-2012 WGS: Changed to 3 for cluster LVM
  320.     locking_type = 3
  321.  
  322.     # Set to 0 to fail when a lock request cannot be satisfied immediately.
  323.     wait_for_locks = 1
  324.  
  325.     # If using external locking (type 2) and initialisation fails,
  326.     # with this set to 1 an attempt will be made to use the built-in
  327.     # clustered locking.
  328.     # If you are using a customised locking_library you should set this to 0.
  329.     fallback_to_clustered_locking = 1
  330.  
  331.     # If an attempt to initialise type 2 or type 3 locking failed, perhaps
  332.     # because cluster components such as clvmd are not running, with this set
  333.     # to 1 an attempt will be made to use local file-based locking (type 1).
  334.     # If this succeeds, only commands against local volume groups will proceed.
  335.     # Volume Groups marked as clustered will be ignored.
  336.     # 27-Jan-2012 WGS: According to <https://alteeve.com/w/2-Node_Red_Hat_KVM_Cluster_Tutorial>
  337.     # this should be set to 0: only let DLM do our locking.
  338.     fallback_to_local_locking = 0
  339.  
  340.     # Local non-LV directory that holds file-based locks while commands are
  341.     # in progress.  A directory like /tmp that may get wiped on reboot is OK.
  342.     locking_dir = "/var/lock/lvm"
  343.  
  344.     # Whenever there are competing read-only and read-write access requests for
  345.     # a volume group's metadata, instead of always granting the read-only
  346.     # requests immediately, delay them to allow the read-write requests to be
  347.     # serviced.  Without this setting, write access may be stalled by a high
  348.     # volume of read-only requests.
  349.     # NB. This option only affects locking_type = 1 viz. local file-based
  350.     # locking.
  351.     prioritise_write_locks = 1
  352.  
  353.     # Other entries can go here to allow you to load shared libraries
  354.     # e.g. if support for LVM1 metadata was compiled as a shared library use
  355.     #   format_libraries = "liblvm2format1.so"
  356.     # Full pathnames can be given.
  357.  
  358.     # Search this directory first for shared libraries.
  359.     #   library_dir = "/lib"
  360.  
  361.     # The external locking library to load if locking_type is set to 2.
  362.     #   locking_library = "liblvm2clusterlock.so"
  363.  
  364.     # Treat any internal errors as fatal errors, aborting the process that
  365.     # encountered the internal error. Please only enable for debugging.
  366.     abort_on_internal_errors = 0
  367.  
  368.     # If set to 1, no operations that change on-disk metadata will be permitted.
  369.     # Additionally, read-only commands that encounter metadata in need of repair
  370.     # will still be allowed to proceed exactly as if the repair had been
  371.     # performed (except for the unchanged vg_seqno).
  372.     # Inappropriate use could mess up your system, so seek advice first!
  373.     metadata_read_only = 0
  374. }
  375.  
  376. activation {
  377.     # Set to 0 to disable udev synchronisation (if compiled into the binaries).
  378.     # Processes will not wait for notification from udev.
  379.     # They will continue irrespective of any possible udev processing
  380.     # in the background.  You should only use this if udev is not running
  381.     # or has rules that ignore the devices LVM2 creates.
  382.     # The command line argument --nodevsync takes precedence over this setting.
  383.     # If set to 1 when udev is not running, and there are LVM2 processes
  384.     # waiting for udev, run 'dmsetup udevcomplete_all' manually to wake them up.
  385.     udev_sync = 1
  386.  
  387.     # Set to 0 to disable the udev rules installed by LVM2 (if built with
  388.     # --enable-udev_rules). LVM2 will then manage the /dev nodes and symlinks
  389.     # for active logical volumes directly itself.
  390.     # N.B. Manual intervention may be required if this setting is changed
  391.     # while any logical volumes are active.
  392.     udev_rules = 1
  393.  
  394.     # How to fill in missing stripes if activating an incomplete volume.
  395.     # Using "error" will make inaccessible parts of the device return
  396.     # I/O errors on access.  You can instead use a device path, in which
  397.     # case, that device will be used to in place of missing stripes.
  398.     # But note that using anything other than "error" with mirrored
  399.     # or snapshotted volumes is likely to result in data corruption.
  400.     missing_stripe_filler = "error"
  401.  
  402.     # How much stack (in KB) to reserve for use while devices suspended
  403.     reserved_stack = 256
  404.  
  405.     # How much memory (in KB) to reserve for use while devices suspended
  406.     reserved_memory = 8192
  407.  
  408.     # Nice value used while devices suspended
  409.     process_priority = -18
  410.  
  411.     # If volume_list is defined, each LV is only activated if there is a
  412.     # match against the list.
  413.     #   "vgname" and "vgname/lvname" are matched exactly.
  414.     #   "@tag" matches any tag set in the LV or VG.
  415.     #   "@*" matches if any tag defined on the host is also set in the LV or VG
  416.     #
  417.     # volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]
  418.  
  419.     # Size (in KB) of each copy operation when mirroring
  420.     mirror_region_size = 512
  421.  
  422.     # Setting to use when there is no readahead value stored in the metadata.
  423.     #
  424.     # "none" - Disable readahead.
  425.     # "auto" - Use default value chosen by kernel.
  426.     readahead = "auto"
  427.  
  428.     # 'mirror_image_fault_policy' and 'mirror_log_fault_policy' define
  429.     # how a device failure affecting a mirror is handled.
  430.     # A mirror is composed of mirror images (copies) and a log.
  431.     # A disk log ensures that a mirror does not need to be re-synced
  432.     # (all copies made the same) every time a machine reboots or crashes.
  433.     #
  434.     # In the event of a failure, the specified policy will be used to determine
  435.     # what happens. This applies to automatic repairs (when the mirror is being
  436.     # monitored by dmeventd) and to manual lvconvert --repair when
  437.     # --use-policies is given.
  438.     #
  439.     # "remove" - Simply remove the faulty device and run without it.  If
  440.     #            the log device fails, the mirror would convert to using
  441.     #            an in-memory log.  This means the mirror will not
  442.     #            remember its sync status across crashes/reboots and
  443.     #            the entire mirror will be re-synced.  If a
  444.     #            mirror image fails, the mirror will convert to a
  445.     #            non-mirrored device if there is only one remaining good
  446.     #            copy.
  447.     #
  448.     # "allocate" - Remove the faulty device and try to allocate space on
  449.     #            a new device to be a replacement for the failed device.
  450.     #            Using this policy for the log is fast and maintains the
  451.     #            ability to remember sync state through crashes/reboots.
  452.     #            Using this policy for a mirror device is slow, as it
  453.     #            requires the mirror to resynchronize the devices, but it
  454.     #            will preserve the mirror characteristic of the device.
  455.     #            This policy acts like "remove" if no suitable device and
  456.     #            space can be allocated for the replacement.
  457.     #
  458.     # "allocate_anywhere" - Not yet implemented. Useful to place the log device
  459.     #            temporarily on same physical volume as one of the mirror
  460.     #            images. This policy is not recommended for mirror devices
  461.     #            since it would break the redundant nature of the mirror. This
  462.     #            policy acts like "remove" if no suitable device and space can
  463.     #            be allocated for the replacement.
  464.  
  465.     mirror_log_fault_policy = "allocate"
  466.     mirror_image_fault_policy = "remove"
  467.  
  468.     # 'snapshot_autoextend_threshold' and 'snapshot_autoextend_percent' define
  469.     # how to handle automatic snapshot extension. The former defines when the
  470.     # snapshot should be extended: when its space usage exceeds this many
  471.     # percent. The latter defines how much extra space should be allocated for
  472.     # the snapshot, in percent of its current size.
  473.     #
  474.     # For example, if you set snapshot_autoextend_threshold to 70 and
  475.     # snapshot_autoextend_percent to 20, whenever a snapshot exceeds 70% usage,
  476.     # it will be extended by another 20%. For a 1G snapshot, using up 700M will
  477.     # trigger a resize to 1.2G. When the usage exceeds 840M, the snapshot will
  478.     # be extended to 1.44G, and so on.
  479.     #
  480.     # Setting snapshot_autoextend_threshold to 100 disables automatic
  481.     # extensions. The minimum value is 50 (A setting below 50 will be treated
  482.     # as 50).
  483.  
  484.     snapshot_autoextend_threshold = 100
  485.     snapshot_autoextend_percent = 20
  486.  
  487.     # While activating devices, I/O to devices being (re)configured is
  488.     # suspended, and as a precaution against deadlocks, LVM2 needs to pin
  489.     # any memory it is using so it is not paged out.  Groups of pages that
  490.     # are known not to be accessed during activation need not be pinned
  491.     # into memory.  Each string listed in this setting is compared against
  492.     # each line in /proc/self/maps, and the pages corresponding to any
  493.     # lines that match are not pinned.  On some systems locale-archive was
  494.     # found to make up over 80% of the memory used by the process.
  495.     # mlock_filter = [ "locale/locale-archive", "gconv/gconv-modules.cache" ]
  496.  
  497.     # Set to 1 to revert to the default behaviour prior to version 2.02.62
  498.     # which used mlockall() to pin the whole process's memory while activating
  499.     # devices.
  500.     use_mlockall = 0
  501.  
  502.     # Monitoring is enabled by default when activating logical volumes.
  503.     # Set to 0 to disable monitoring or use the --ignoremonitoring option.
  504.     monitoring = 1
  505.  
  506.     # When pvmove or lvconvert must wait for the kernel to finish
  507.     # synchronising or merging data, they check and report progress
  508.     # at intervals of this number of seconds.  The default is 15 seconds.
  509.     # If this is set to 0 and there is only one thing to wait for, there
  510.     # are no progress reports, but the process is awoken immediately the
  511.     # operation is complete.
  512.     polling_interval = 15
  513. }
  514.  
  515.  
  516. ####################
  517. # Advanced section #
  518. ####################
  519.  
  520. # Metadata settings
  521. #
  522. # metadata {
  523.     # Default number of copies of metadata to hold on each PV.  0, 1 or 2.
  524.     # You might want to override it from the command line with 0
  525.     # when running pvcreate on new PVs which are to be added to large VGs.
  526.  
  527.     # pvmetadatacopies = 1
  528.  
  529.     # Default number of copies of metadata to maintain for each VG.
  530.     # If set to a non-zero value, LVM automatically chooses which of
  531.     # the available metadata areas to use to achieve the requested
  532.     # number of copies of the VG metadata.  If you set a value larger
  533.     # than the the total number of metadata areas available then
  534.     # metadata is stored in them all.
  535.     # The default value of 0 ("unmanaged") disables this automatic
  536.     # management and allows you to control which metadata areas
  537.     # are used at the individual PV level using 'pvchange
  538.     # --metadataignore y/n'.
  539.  
  540.     # vgmetadatacopies = 0
  541.  
  542.     # Approximate default size of on-disk metadata areas in sectors.
  543.     # You should increase this if you have large volume groups or
  544.     # you want to retain a large on-disk history of your metadata changes.
  545.  
  546.     # pvmetadatasize = 255
  547.  
  548.     # List of directories holding live copies of text format metadata.
  549.     # These directories must not be on logical volumes!
  550.     # It's possible to use LVM2 with a couple of directories here,
  551.     # preferably on different (non-LV) filesystems, and with no other
  552.     # on-disk metadata (pvmetadatacopies = 0). Or this can be in
  553.     # addition to on-disk metadata areas.
  554.     # The feature was originally added to simplify testing and is not
  555.     # supported under low memory situations - the machine could lock up.
  556.     #
  557.     # Never edit any files in these directories by hand unless you
  558.     # you are absolutely sure you know what you are doing! Use
  559.     # the supplied toolset to make changes (e.g. vgcfgrestore).
  560.  
  561.     # dirs = [ "/etc/lvm/metadata", "/mnt/disk2/lvm/metadata2" ]
  562. #}
  563.  
  564. # Event daemon
  565. #
  566. dmeventd {
  567.     # mirror_library is the library used when monitoring a mirror device.
  568.     #
  569.     # "libdevmapper-event-lvm2mirror.so" attempts to recover from
  570.     # failures.  It removes failed devices from a volume group and
  571.     # reconfigures a mirror as necessary. If no mirror library is
  572.     # provided, mirrors are not monitored through dmeventd.
  573.  
  574.     mirror_library = "libdevmapper-event-lvm2mirror.so"
  575.  
  576.     # snapshot_library is the library used when monitoring a snapshot device.
  577.     #
  578.     # "libdevmapper-event-lvm2snapshot.so" monitors the filling of
  579.     # snapshots and emits a warning through syslog when the use of
  580.     # the snapshot exceeds 80%. The warning is repeated when 85%, 90% and
  581.     # 95% of the snapshot is filled.
  582.  
  583.     snapshot_library = "libdevmapper-event-lvm2snapshot.so"
  584.  
  585.     # Full path of the dmeventd binary.
  586.     #
  587.     # executable = "/sbin/dmeventd"
  588. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand