{"id":4573,"date":"2022-12-20T18:09:08","date_gmt":"2022-12-20T21:09:08","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/lvm-conf-man5\/"},"modified":"2022-12-20T18:09:08","modified_gmt":"2022-12-20T21:09:08","slug":"lvm-conf-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/lvm-conf-man5\/","title":{"rendered":"LVM.CONF (man5)"},"content":{"rendered":"<h1 align=\"center\">LVM.CONF<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SYNTAX\">SYNTAX<\/a><br \/> <a href=\"#SETTINGS\">SETTINGS<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">lvm.conf \u2014 Configuration file for LVM2<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\/etc\/lvm\/lvm.conf<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lvm.conf<\/b> is loaded during the initialisation phase of <b>lvm<\/b>(8). This file can in turn lead to other files being loaded \u2212 settings read in later override earlier settings. File timestamps are checked between commands and if any have changed, all the files are reloaded.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For a description of each lvm.conf setting, run:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lvmconfig \u2212\u2212typeconfig default \u2212\u2212withcomments \u2212\u2212withspaces<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The settings defined in lvm.conf can be overridden by any of these extended configuration methods: <b><br \/> direct config override on command line<\/b><\/p>\n<p style=\"margin-left:22%;\">The <b>\u2212\u2212config ConfigurationString<\/b> command line option takes the ConfigurationString as direct string representation of the configuration to override the existing configuration. The ConfigurationString is of exactly the same format as used in any LVM configuration file.<\/p>\n<p style=\"margin-left:11%;\"><b>profile config<\/b><\/p>\n<p style=\"margin-left:22%;\">A profile is a set of selected customizable configuration settings that are aimed to achieve a certain characteristics in various environments or uses. It\u2019s used to override existing configuration. Normally, the name of the profile should reflect that environment or use.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">There are two groups of profiles recognised: <b>command profiles<\/b> and <b>metadata profiles<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The <b>command profile<\/b> is used to override selected configuration settings at global LVM command level \u2212 it is applied at the very beginning of LVM command execution and it is used throughout the whole time of LVM command execution. The command profile is applied by using the <b>\u2212\u2212commandprofile ProfileName<\/b> command line option that is recognised by all LVM2 commands.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The <b>metadata profile<\/b> is used to override selected configuration settings at Volume Group\/Logical Volume level \u2212 it is applied independently for each Volume Group\/Logical Volume that is being processed. As such, each Volume Group\/Logical Volume can store the profile name used in its metadata so next time the Volume Group\/Logical Volume is processed, the profile is applied automatically. If Volume Group and any of its Logical Volumes have different profiles defined, the profile defined for the Logical Volume is preferred. The metadata profile can be attached\/detached by using the <b>lvchange<\/b> and <b>vgchange<\/b> commands and their <b>\u2212\u2212metadataprofile ProfileName<\/b> and <b>\u2212\u2212detachprofile<\/b> options or the <b>\u2212\u2212metadataprofile<\/b> option during creation when using <b>vgcreate<\/b> or <b>lvcreate<\/b> command. The <b>vgs<\/b> and <b>lvs<\/b> reporting commands provide <b>\u2212o vg_profile<\/b> and <b>\u2212o lv_profile<\/b> output options to show the metadata profile currently attached to a Volume Group or a Logical Volume.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The set of options allowed for command profiles is mutually exclusive when compared to the set of options allowed for metadata profiles. The settings that belong to either of these two sets can\u2019t be mixed together and LVM tools will reject such profiles.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">LVM itself provides a few predefined configuration profiles. Users are allowed to add more profiles with different values if needed. For this purpose, there\u2019s the <b>command_profile_template.profile<\/b> (for command profiles) and <b>metadata_profile_template.profile<\/b> (for metadata profiles) which contain all settings that are customizable by profiles of certain type. Users are encouraged to copy these template profiles and edit them as needed. Alternatively, the <b>lvmconfig \u2212\u2212file <ProfileName.profile> \u2212\u2212type profilable-command <\/p>\n<section><\/b> or <b>lvmconfig \u2212\u2212file <ProfileName.profile> \u2212\u2212type profilable-metadata <\/p>\n<section><\/b> can be used to generate a configuration with profilable settings in either of the type for given section and save it to new ProfileName.profile (if the section is not specified, all profilable settings are reported).<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The profiles are stored in \/etc\/lvm\/profile directory by default. This location can be changed by using the <b>config\/profile_dir<\/b> setting. Each profile configuration is stored in <b>ProfileName.profile<\/b> file in the profile directory. When referencing the profile, the <b>.profile<\/b> suffix is left out.<\/p>\n<p style=\"margin-left:11%;\"><b>tag config<\/b><\/p>\n<p style=\"margin-left:22%;\">See <b>tags<\/b> configuration setting description below.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When several configuration methods are used at the same time and when LVM looks for the value of a particular setting, it traverses this <b>config cascade<\/b> from left to right:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>direct config override on command line<\/b>\u2212> <b>command profile config<\/b>\u2212> <b>metadata profile config<\/b>\u2212> <b>tag config<\/b>\u2212> <b>lvmlocal.conf\u2212> lvm.conf<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>No part of this cascade is compulsory. If there\u2019s no setting value found at the end of the cascade, a default value is used for that setting. Use lvmconfig to check what settings are in use and what the default values are.<\/b><\/p>\n<h2>SYNTAX <a name=\"SYNTAX\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This section describes the configuration file syntax.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Whitespace is not significant unless it is within quotes. This provides a wide choice of acceptable indentation styles. Comments begin with # and continue to the end of the line. They are treated as whitespace.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Here is an informal grammar: <b><br \/> file<\/b> = <b>value<\/b>*<\/p>\n<p style=\"margin-left:22%;\">A configuration file consists of a set of values.<\/p>\n<p style=\"margin-left:11%;\"><b>value<\/b> = <b>section<\/b> | <b>assignment<\/b><\/p>\n<p style=\"margin-left:22%;\">A value can either be a new section, or an assignment.<\/p>\n<p style=\"margin-left:11%;\"><b>section<\/b> = <b>identifier<\/b> \u2019<b>{<\/b>\u2019 <b>value<\/b>* \u2019<b>}<\/b>\u2019<\/p>\n<p style=\"margin-left:22%;\">A section groups associated values together. If the same section is encountered multiple times, the contents of all instances are concatenated together in the order of appearance. <br \/> It is denoted by a name and delimited by curly brackets.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"-14%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\">\n<p>e.g.<\/p>\n<\/td>\n<td width=\"77%\">\n<p>backup {<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"-14%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"> <\/td>\n<td width=\"77%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"-14%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"77%\">\n<p>&#8230;<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"-14%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"77%\">\n<p>}<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>assignment<\/b> = <b>identifier<\/b> \u2019<b>=<\/b>\u2019 ( <b>array<\/b> | <b>type<\/b> )<\/p>\n<p style=\"margin-left:22%;\">An assignment associates a type with an identifier. If the identifier contains forward slashes, those are interpreted as path delimiters. The statement <b>section\/key = value<\/b> is equivalent to <b>section { key = value }<\/b>. If multiple instances of the same key are encountered, only the last value is used (and a warning is issued).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"-14%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"85%\">\n<p>e.g.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"-14%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"85%\">\n<p><b>level = 7<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>array<\/b> = \u2019<b>[<\/b>\u2019 ( <b>type<\/b> \u2019<b>,<\/b>\u2019)* <b>type<\/b> \u2019<b>]<\/b>\u2019 | \u2019<b>[<\/b>\u2019 \u2019<b>]<\/b>\u2019<\/p>\n<p style=\"margin-left:22%;\">Inhomogeneous arrays are supported. <br \/> Elements must be separated by commas. <br \/> An empty array is acceptable.<\/p>\n<p style=\"margin-left:11%;\"><b>type<\/b> = <b>integer<\/b> | <b>float<\/b> | <b>string<\/b><\/p>\n<p style=\"margin-left:22%;\"><b>integer<\/b> = manpages.csv script_extrae_body.sh script.sh usr <b><br \/> float<\/b> = [0\u22129]*\u2019<b>.<\/b>\u2019[0\u22129]* <b><br \/> string<\/b> = \u2019<b>&#8220;<\/b>\u2019.*\u2019<b>&#8220;<\/b>\u2019<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Strings with spaces must be enclosed in double quotes, single words that start with a letter can be left unquoted.<\/p>\n<h2>SETTINGS <a name=\"SETTINGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>lvmconfig<\/b> command prints the LVM configuration settings in various ways. See the man page <b>lvmconfig<\/b>(8).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command to print a list of all possible config settings, with their default values: <b><br \/> lvmconfig \u2212\u2212type default<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command to print a list of all possible config settings, with their default values, and a full description of each as a comment: <b><br \/> lvmconfig \u2212\u2212type default \u2212\u2212withcomments<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command to print a list of all possible config settings, with their current values (configured, non-default values are shown): <b><br \/> lvmconfig \u2212\u2212type current<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command to print all config settings that have been configured with a different value than the default (configured, non-default values are shown): <b><br \/> lvmconfig \u2212\u2212type diff<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command to print a single config setting, with its default value, and a full description, where &#8220;Section&#8221; refers to the config section, e.g. global, and &#8220;Setting&#8221; refers to the name of the specific setting, e.g. umask: <b><br \/> lvmconfig \u2212\u2212type default \u2212\u2212withcomments Section\/Setting<\/b><\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><i>\/etc\/lvm\/lvm.conf <br \/> \/etc\/lvm\/lvmlocal.conf <br \/> \/etc\/lvm\/archive <br \/> \/etc\/lvm\/backup <br \/> \/etc\/lvm\/cache\/.cache <br \/> \/run\/lock\/lvm <br \/> \/etc\/lvm\/profile<\/i><\/b><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><i>lvm<\/i><\/b>(8) <b>lvmconfig<\/b>(8)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  lvm.conf \u2014 Configuration file for LVM2 <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,437,1291],"class_list":["post-4573","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-lvm","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4573"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4573\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}