{"id":3952,"date":"2022-12-20T17:28:29","date_gmt":"2022-12-20T20:28:29","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/lvmreport-man7\/"},"modified":"2022-12-20T17:28:29","modified_gmt":"2022-12-20T20:28:29","slug":"lvmreport-man7","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/lvmreport-man7\/","title":{"rendered":"LVMREPORT (man7)"},"content":{"rendered":"<h1 align=\"center\">LVMREPORT<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#Categorization based on reporting facility\">Categorization based on reporting facility<\/a><br \/> <a href=\"#Terms\">Terms<\/a><br \/> <a href=\"#Common report configuration settings and command line options\">Common report configuration settings and command line options<\/a><br \/> <a href=\"#Main report specifics\">Main report specifics<\/a><br \/> <a href=\"#Log report specifics\">Log report specifics<\/a><br \/> <a href=\"#Selection\">Selection<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/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\">lvmreport \u2014 LVM reporting and related features<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">LVM uses single reporting infrastructure that sets standard on LVM command\u2019s output and it provides wide range of configuration settings and command line options to customize report and filter the report\u2019s output.<\/p>\n<h2>Categorization based on reporting facility <a name=\"Categorization based on reporting facility\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Based on functionality, commands which make use of the reporting infrastructure are divided in two groups: <b><br \/> Report-oriented<\/b><\/p>\n<p style=\"margin-left:22%;\">These commands inform about current LVM state and their primary role is to display this information in compendious way. To make a distinction, we will name this report as <b>main report<\/b>. The set of report-only commands include: pvs, vgs, lvs, pvdisplay, vgdisplay, lvdisplay, lvm devtypes, lvm fullreport. For further information about main report, see <b>main report specifics<\/b>.<\/p>\n<p style=\"margin-left:11%;\"><b>Processing-oriented<\/b><\/p>\n<p style=\"margin-left:22%;\">These commands are responsible for changing LVM state and they do not contain any main report as identified for report-oriented commands, they only perform some kind of processing. The set of processing-oriented commands includes: pvcreate, vgcreate, lvcreate, pvchange, vgchange, lvchange, pvremove, vgremove, lvremove, pvresize, vgextend, vgreduce, lvextend, lvreduce, lvresize, lvrename, pvscan, vgscan, lvscan, pvmove, vgcfgbackup, vgck, vgconvert, vgexport, vgimport, vgmknodes.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If enabled, so called <b>log report<\/b> is either displayed solely (for processing-oriented commands) or in addition to main report (for report-oriented commands). The log report contains a log of operations, messages and per-object status with complete object identification collected during LVM command execution. See <b>log report specifics<\/b> for more information about this report type.<\/p>\n<h2>Terms <a name=\"Terms\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">When describing reporting functionality and features in this text, we will use terms <b>row<\/b> and <b>column<\/b>. By row we mean series of values reported for single entity (for example single PV, VG or LV). Each value from the row then belongs to a column of certain type. The columns have <b>column headings<\/b> which are short descriptions for the columns. The columns are referenced by <b>column names<\/b>. Please note that this text is also using term <b>field<\/b> interchangeably with the term <b>column<\/b>. Most of the time the term columns is abbreviated as <b>col<\/b> in configuration.<\/p>\n<h2>Common report configuration settings and command line options <a name=\"Common report configuration settings and command line options\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">There are common configuration settings and command line options which apply to both <b>main report<\/b> and <b>log report<\/b>. Following lists contain all of them, separated into groups based on their use.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>Common configuration settings:<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"2%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"63%\">\n<p>Changing report output format, composition and other output modifiers:<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\"><\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p style=\"margin-top: 1em\">global\/units<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>global\/suffix<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/output_format<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/compact_output<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/compact_output_cols<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/aligned<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/headings<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/separator<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/list_item_separator<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/prefixes<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/quoted<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/columns_as_rows<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/binary_values_as_numeric<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/time_format<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/mark_hidden_devices<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\">\n<p>report\/two_word_unknown_device<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"6%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"47%\"><\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%; margin-top: 1em\">Special settings<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">report\/buffered<\/p>\n<\/td>\n<td width=\"35%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">This document does not describe these settings in more detail \u2212 if you need detailed information, including values which are accepted for the settings, please run <b>lvmconfig \u2212\u2212type default \u2212\u2212withcomments <setting><\/b>. There are more configuration settings in addition to the common set listed above, but they are specific to either <b>main report<\/b> or <b>log report<\/b>, see <b>main report specifics<\/b> and <b>log report specifics<\/b> for these settings. Besides configuring reports globally by using configuration settings, there are also command line options you can use to extend, override or further specify the report configuration.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>Common command line options:<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"63%\">\n<p style=\"margin-top: 1em\">Definition of the set set of fields to use<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"42%\"><\/td>\n<td width=\"32%\">\n<p style=\"margin-top: 1em\">-\u2212options|\u2212o FieldSet<\/p>\n<\/td>\n<td width=\"26%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Field set to use. See <b>main report specifics<\/b> and <b>log report specifics<\/b> for information about field sets configured with global configuratin settings that this option overrides.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"33%\">\n<p style=\"margin-top: 1em\">-\u2212options|\u2212o+ FieldSet<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Fields to include to current field set. See <b>main report specifics\u00a0<\/b>and <b>log report specifics<\/b> for information about field sets configured with global configuration settings that this option extends.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"33%\">\n<p style=\"margin-top: 1em\">-\u2212options|\u2212o- FieldSet<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Fields to exclude from current field set. See <b>main report specifics<\/b> and <b>log report specifics<\/b> for information about field sets configured with global configuration settings that this option reduces.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"33%\">\n<p style=\"margin-top: 1em\">-\u2212options|\u2212o# FieldSet<\/p>\n<\/td>\n<td width=\"25%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Compaction of unused fields. Overrides report\/compact_output_cols configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"11%\">\n<p style=\"margin-top: 1em\">Sorting<\/p>\n<\/td>\n<td width=\"52%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"42%\"><\/td>\n<td width=\"29%\">\n<p style=\"margin-top: 1em\">-\u2212sort|\u2212O+ FieldSet<\/p>\n<\/td>\n<td width=\"29%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Fields to sort by in ascending order. See <b>main report specifics<\/b> and <b>log report specifics<\/b> for information about field sets configured with global configuration settings that this option overrides.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"29%\">\n<p style=\"margin-top: 1em\">-\u2212sort|\u2212O- FieldSet<\/p>\n<\/td>\n<td width=\"29%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Fields to sort by in descending order. See <b>main report specifics<\/b> and <b>log report specifics<\/b> for information about fields sets configured with global configuration settings that this options overrides.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"14%\">\n<p style=\"margin-top: 1em\">Selection<\/p>\n<\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"42%\"><\/td>\n<td width=\"32%\">\n<p style=\"margin-top: 1em\">-\u2212select|\u2212S Selection<\/p>\n<\/td>\n<td width=\"26%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Define selection criteria for report output. For <b>log report<\/b>, this also overrides log\/command_log_selection configuration setting, see also <b>log report specifics<\/b>.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"58%\">\n<p style=\"margin-top: 1em\">Changing output format and composition<\/p>\n<\/td>\n<td width=\"5%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"42%\"><\/td>\n<td width=\"21%\">\n<p style=\"margin-top: 1em\">-\u2212reportformat<\/p>\n<\/td>\n<td width=\"37%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides report\/output_format configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"13%\">\n<p style=\"margin-top: 1em\">-\u2212aligned<\/p>\n<\/td>\n<td width=\"45%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides report\/aligned configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\">-\u2212binary<\/p>\n<\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides report\/binary_values_as_numeric configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"21%\">\n<p style=\"margin-top: 1em\">-\u2212nameprefixes<\/p>\n<\/td>\n<td width=\"37%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides report\/prefixes configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">-\u2212noheadings<\/p>\n<\/td>\n<td width=\"40%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides report\/noheadings configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"15%\">\n<p style=\"margin-top: 1em\">-\u2212nosuffix<\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides global\/suffix configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\">-\u2212rows<\/p>\n<\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides report\/columns_as_rows configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"16%\">\n<p style=\"margin-top: 1em\">-\u2212separator<\/p>\n<\/td>\n<td width=\"42%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides report\/separator configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"10%\">\n<p style=\"margin-top: 1em\">-\u2212units<\/p>\n<\/td>\n<td width=\"48%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides global\/units configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"15%\">\n<p style=\"margin-top: 1em\">-\u2212unquoted<\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides report\/quoted configuration setting.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">Special options<\/p>\n<\/td>\n<td width=\"40%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"42%\"><\/td>\n<td width=\"38%\">\n<p style=\"margin-top: 1em\">-\u2212configreport <b>ReportName<\/b><\/p>\n<\/td>\n<td width=\"20%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">This defines the <b>ReportName<\/b> for which any subsequent \u2212o\u2212\u2212columns, -O\u2212\u2212sort or \u2212S\u2212\u2212select applies to. See also <b>main report specifics<\/b> and <b>log report specifics<\/b> for possible <b>ReportName<\/b> values.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"13%\">\n<p style=\"margin-top: 1em\">-\u2212logonly<\/p>\n<\/td>\n<td width=\"45%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">When an LVM command contains both <b>main report<\/b> and <b>log report<\/b>, this option suppresses the <b>main report<\/b> output and it causes the <b>log report<\/b> output to be displayed only.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"37%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">-\u2212unbuffered<\/p>\n<\/td>\n<td width=\"40%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%;\">Overrides report\/bufffered configuration setting.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>FieldSet<\/b> mentioned in the lists above is a set of field names where each field name is delimited by &#8220;,&#8221; character. Field set definition, sorting and selection may be repeated on command line (\u2212o+\/\u2212o- includes\/excludes fields to\/from current list, for all the other repeatable options, the last value typed for the option on the command line is used). The <b>Selection<\/b> is a string with <b>selection criteria<\/b>, see also <b>Selection<\/b> paragraph below for more information about constructing these criteria.<\/p>\n<h2>Main report specifics <a name=\"Main report specifics\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>main report<\/b> currently encompasses these distinct subtypes, referenced by their name &#8211; <b>ReportName<\/b> as listed below. The command in parenthesis is representative command that uses the main report subtype by default. Each subtype has its own configuration setting for global field set definition as well as sort field definition (listed below each individual <b>ReportName<\/b>):<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p style=\"margin-top: 1em\"><b>pv<\/b> representing report about Physical Volumes (<b>pvs<\/b>)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%;\">\u2212<\/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=\"6%\"><\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">report\/pvs_cols<\/p>\n<\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\">\n<p>report\/pvs_sort<\/p>\n<\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\"><\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%; margin-top: 1em\"><b>pvseg<\/b> representing report about Physical Volume Segments (<b>pvs \u2212\u2212segments<\/b>)<\/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=\"6%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"26%\">\n<p style=\"margin-top: 1em\">report\/pvseg_cols<\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"26%\">\n<p>report\/pvseg_sort<\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"26%\"><\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%; margin-top: 1em\"><b>vg<\/b> representing report about Volume Groups (<b>vgs<\/b>)<\/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=\"6%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">report\/vgs_cols<\/p>\n<\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\">\n<p>report\/vgs_sort<\/p>\n<\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\"><\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%; margin-top: 1em\"><b>lv<\/b> representing report about Logical Volumes (<b>lvs<\/b>)<\/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=\"6%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">report\/lvs_cols<\/p>\n<\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\">\n<p>report\/lvs_sort<\/p>\n<\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\"><\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%; margin-top: 1em\"><b>seg<\/b> representing report about Logical Volume Segments (<b>lvs \u2212\u2212segments<\/b>)<\/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=\"6%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"24%\">\n<p style=\"margin-top: 1em\">report\/segs_cols<\/p>\n<\/td>\n<td width=\"45%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"24%\">\n<p>report\/segs_sort<\/p>\n<\/td>\n<td width=\"45%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"24%\"><\/td>\n<td width=\"45%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%; margin-top: 1em\"><b>full<\/b> representing report combining all of the above as a whole (<b>lvm fullreport<\/b>)<\/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=\"6%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\">\n<p style=\"margin-top: 1em\">report\/pvs_cols_full<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\">\n<p>report\/pvs_sort_full<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\">\n<p>report\/pvsegs_cols_full<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\">\n<p>report\/pvseg_sort_full<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\">\n<p>report\/vgs_cols_full<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\">\n<p>report\/vgs_sort_full<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\">\n<p>report\/lvs_cols_full<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\">\n<p>report\/lvs_sort_full<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\">\n<p>report\/segs_cols_full<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\">\n<p>report\/segs_sort_full<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"35%\"><\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%; margin-top: 1em\"><b>devtype<\/b> representing report about device types (<b>lvm devtypes<\/b>)<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"31%\">\n<p style=\"margin-top: 1em\">report\/devtypes_cols<\/p>\n<\/td>\n<td width=\"38%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"31%\">\n<p>report\/devtypes_sort<\/p>\n<\/td>\n<td width=\"38%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">Use <b>pvs, vgs, lvs \u2212o help<\/b> or <b>lvm devtypes \u2212o help<\/b> to get complete list of fields that you can use for main report. The list of fields in the help output is separated in groups based on which report type they belong to. Note that LVM can change final report type used if fields from different groups are combined together. Some of these combinations are not allowed in which case LVM will issue an error.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For all main report subtypes except <b>full<\/b>, it\u2019s not necessary to use <b>\u2212\u2212configreport ReportName<\/b> to denote which report any subsequent <b>\u2212o, \u2212O or \u2212S<\/b> option applies to as they always apply to the single main report type. Currently, <b>lvm fullreport<\/b> is the only command that includes more than one <b>main report<\/b> subtype. Therefore, the \u2212\u2212configreport is particularly suitable for the full report if you need to configure each of its subreports in a different way.<\/p>\n<h2>Log report specifics <a name=\"Log report specifics\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">You can enable log report with <b>log\/report_command_log<\/b> configuration setting \u2212 this functionality is disabled by default. The <b>log report<\/b> contains a log collected during LVM command execution and then the log is displayed just like any other report known from main report. There is only one log report subtype as shown below together with related configuration settings for fields, sorting and selection:<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"42%\">\n<p style=\"margin-top: 1em\"><b>log<\/b> representing log report<\/p>\n<\/td>\n<td width=\"32%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\"><\/td>\n<td width=\"3%\"><\/td>\n<td width=\"38%\">\n<p style=\"margin-top: 1em\">log\/command_log_cols<\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"38%\">\n<p>log\/command_log_sort<\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"38%\">\n<p>log\/command_log_selection<\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">You always need to use <b>\u2212\u2212configreport log<\/b> together with <b>\u2212o\u2212\u2212options, -O\u2212\u2212sort or \u2212S\u2212\u2212selection<\/b> to override configuration settings directly on command line for <b>log report<\/b>. When compared to <b>main report<\/b>, in addition to usual configuration settings for report fields and sorting, the <b>log report<\/b> has also configuration option for selection &#8211; <b>report\/command_log_selection<\/b>. This configuration setting is provided for convenience so it\u2019s not necessary to use <b>\u2212S\u2212\u2212select<\/b> on command line each time an LVM command is executed and we need the same selection criteria to be applied for <b>log report<\/b>. Default selection criteria used for <b>log report<\/b> are <b>log\/command_log_selection=&#8221;!(log_type=status &#038;&#038; message=success)&#8221;<\/b>. This means that, by default, <b>log report<\/b> doesn\u2019t display status messages about successful operation and it displays only rows with error, warning, print-type messages and messages about failure states (for more information, see <b>log report content<\/b> below).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Log report coverage<\/b> <br \/> Currently, when running LVM commands directly (not in LVM shell), the log report covers command\u2019s <b>processing stage<\/b> which is the moment when LVM entities are iterated and processed one by one. It does not cover any command initialization nor command finalization stage. If there is any message issued out of log report\u2019s coverage range, such message goes directly to output, bypassing the <b>log report<\/b>. By default, that is <b>standard error output<\/b> for error and warning messages and <b>standard output<\/b> for common print-like messages.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When running LVM commands in <b>LVM shell<\/b>, the log report covers the whole LVM command\u2019s execution, including command\u2019s <b>processing<\/b> as well as <b>initialization<\/b> and <b>finalization stage<\/b>. So from this point of view, the log report coverage is complete for executed LVM commands. Note that there are still a few moments when LVM shell needs to initialize itself before it even enters the main loop in which it executes LVM commands. Also, there is a moment when <b>LVM shell<\/b> needs to prepare <b>log report<\/b> properly for next command executed in the shell and then, after the command\u2019s run, the shell needs to display the log report for that recently executed command. If there is a failure or any other message issued during this time, the LVM will bypass <b>log report<\/b> and display messages on output directly.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For these reasons and for completeness, it\u2019s not possible to rely fully on <b>log report<\/b> as the only indicator of LVM command\u2019s status and the only place where all messages issued during LVM command execution are collected. You always need to check whether the command has not failed out of log report\u2019s range by checking the non-report output too.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To help with this, LVM can separate output which you can then redirect to any <b>custom file descriptor<\/b> that you prepare before running an LVM command or LVM shell and then you make LVM to use these file descriptors for different kinds of output by defining environment variables with file descriptor numbers. See also <b>LVM_OUT_FD<\/b>, <b>LVM_ERR_FD<\/b> and <b>LVM_REPORT_FD<\/b> environment variable description in <b>lvm<\/b>(8) man page.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Also note that, by default, reports use the same file descriptor as common print-like messages, which is <b>standard output<\/b>. If you plan to use <b>log report<\/b> in your scripts or any external tool, you should use <b>LVM_OUT_FD<\/b>, <b>LVM_ERR_FD<\/b> and <b>LVM_REPORT_FD<\/b> to separate all output types to different file descriptors. For example, with bash, that would be:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">LVM_OUT_FD=3 LVM_ERR_FD=4 LVM_REPORT_FD=5 <lvm command> 3>out_file 4>err_file 5>report_file<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Where the <lvm_command> is either direct LVM command or LVM shell. You can collect all three types of output in particular files then.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Log report content<\/b> <br \/> Each item in the log report consists of these set of fields providing various information:<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"46%\">\n<p style=\"margin-top: 1em\">Basic information (mandatory):<\/p>\n<\/td>\n<td width=\"28%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"17%\">\n<p style=\"margin-top: 1em\">log_seq_num<\/p>\n<\/td>\n<td width=\"52%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">Item sequence number. The sequence number is unique for each log item and it increases in the order of the log items as they appeared during LVM command execution.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\">log_type<\/p>\n<\/td>\n<td width=\"57%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">Type of log for the item. Currently, these types are used:<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>status<\/b> for any status information that is logged<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>print<\/b> for any common message printed while the log is collected<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>error<\/b> for any error message printed while the log is collected<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>warn<\/b> for any warning message printed while the log is collected<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"17%\">\n<p style=\"margin-top: 1em\">log_context<\/p>\n<\/td>\n<td width=\"52%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">Context of the log for the item. Currently, two contexts are identified:<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>shell<\/b> for the log collected in the outermost code before and after executing concrete LVM commands<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>processing<\/b> for the log collected while processing LVM entities during LVM command execution<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"31%\">\n<p style=\"margin-top: 1em\">Message (mandatory):<\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"17%\">\n<p style=\"margin-top: 1em\">log_message<\/p>\n<\/td>\n<td width=\"52%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">Any message associated with current item. For <b>status<\/b> log type, the message contains either <b>success<\/b> or <b>failure<\/b> denoting current state. For <b>print<\/b>, <b>error<\/b> and <b>warn<\/b> log types, the message contains the exact message of that type that got 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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"69%\">\n<p style=\"margin-top: 1em\">Object information (used only if applicable):<\/p>\n<\/td>\n<td width=\"5%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"32%\">\n<p style=\"margin-top: 1em\">log_object_type field<\/p>\n<\/td>\n<td width=\"37%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">Type of the object processed. Currently, these object types are recognized:<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>cmd<\/b> for command as a whole<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>orphan<\/b> for processing group of PVs not in any VG yet<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>pv<\/b> for PV processing<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>label<\/b> for direct PV label processing (without VG metadata)<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>vg<\/b> for VG processing<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\"><b>lv<\/b> for LV processing<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\">log_object_name<\/p>\n<\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">Name of the object processed.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"20%\">\n<p style=\"margin-top: 1em\">log_object_id<\/p>\n<\/td>\n<td width=\"49%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">ID of the object processed.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"24%\">\n<p style=\"margin-top: 1em\">log_object_group<\/p>\n<\/td>\n<td width=\"45%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">A group where the processed object belongs to.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"29%\">\n<p style=\"margin-top: 1em\">log_object_group_id<\/p>\n<\/td>\n<td width=\"40%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">An ID of a group where the processed object belongs to.<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"62%\">\n<p style=\"margin-top: 1em\">Numeric status (used only if applicable)<\/p>\n<\/td>\n<td width=\"12%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"14%\">\n<p style=\"margin-top: 1em\">log_errno<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">Error number associated with current item.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">log_ret_code<\/p>\n<\/td>\n<td width=\"51%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:31%;\">Rreturn code associated with current item.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can also run <b><lvm_command> \u2212\u2212configreport log \u2212o help<\/b> to to display complete list of fields that you may use for the <b>log report<\/b>.<\/p>\n<h2>Selection <a name=\"Selection\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Selection is used for a report to display only rows that match <b>selection criteria<\/b>. All rows are displayed with the additional <b>selected<\/b> field (<b>\u2212o selected<\/b>) displaying 1 if the row matches the <i>Selection<\/i> and 0 otherwise. The <b>selection criteria<\/b> are a set of <b>statements<\/b> combined by <b>logical and grouping operators<\/b>. The <b>statement<\/b> consists of a <b>field<\/b> name for which a set of valid <b>values<\/b> is defined using <b>comparison operators<\/b>. For complete list of fields names that you can use in selection, see the output of <b><lvm_command> \u2212S help<\/b>. The help output also contains type of values that each field displays enclosed in brackets.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>List of operators recognized in selection criteria<\/b><\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"45%\">\n<p style=\"margin-top: 1em\">Comparison operators (cmp_op)<\/p>\n<\/td>\n<td width=\"29%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>=~<\/b> matching regular expression.<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>!~<\/b> not matching regular expression.<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>=<\/b> equal to.<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>!=<\/b> not equal to.<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>>=<\/b> greater than or equal to.<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>><\/b> greater than<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b><=<\/b> less than or equal to.<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b><<\/b> less than.<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"52%\">\n<p style=\"margin-top: 1em\">Binary logical operators (cmp_log)<\/p>\n<\/td>\n<td width=\"22%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>&#038;&#038;<\/b> all fields must match<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>,<\/b> all fields must match<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>||<\/b> at least one field must match<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>#<\/b> at least one field must match<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"36%\">\n<p style=\"margin-top: 1em\">Unary logical operators<\/p>\n<\/td>\n<td width=\"38%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>!<\/b> logical negation<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"28%\">\n<p style=\"margin-top: 1em\">Grouping operators<\/p>\n<\/td>\n<td width=\"46%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>(<\/b> left parenthesis<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>)<\/b> right parenthesis<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>[<\/b> list start<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>]<\/b> list end<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>{<\/b> list subset start<\/p>\n<p style=\"margin-left:37%; margin-top: 1em\"><b>}<\/b> list subset end<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Field types and selection operands<\/b> <br \/> Field type restricts the set of operators and values that you may use with the field when defining selection criteria. You can see field type for each field if you run <b><lvm command> \u2212S help<\/b> where you can find the type name enclosed in square brackets. Currently, LVM recognizes these field types in reports:<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p style=\"margin-top: 1em\"><b>string<\/b> for set of characters (for each string field type, you can use either string or regular expression \u2212 regex for the value used in selection criteria)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p><b>string list<\/b> for set of strings<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p><b>number<\/b> for integer value<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p><b>size<\/b> for integer or floating point number with size unit suffix (see also <b>lvcreate<\/b>(8) man page and description for &#8220;\u2212L\u2212\u2212size&#8221; option for the list of recognized suffixes)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p><b>percent<\/b> for floating point number with or without &#8220;%&#8221; suffix (e.g. 50 or 50%)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p><b>time<\/b> for time values<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">When using <b>string list<\/b> in selection criteria, there are several ways how LVM can match string list fields from report, depending on what list grouping operator is used and what item separator is used within that set of items. Also, note that order of items does not matter here.<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p style=\"margin-top: 1em\"><b>matching the set strictly<\/b> where all items must match \u2212 use [ ], e.g. [&#8220;a&#8221;,&#8221;b&#8221;,&#8221;c&#8221;]<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p><b>matching a subset of the set<\/b> \u2212 use { } with &#8220;,&#8221; or &#8220;&#038;&#038;&#8221; as item delimiter, e.g. {&#8220;a&#8221;,&#8221;b&#8221;,&#8221;c&#8221;}<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"74%\">\n<p><b>matching an intersection with the set<\/b> \u2212 use { } with &#8220;#&#8221; or &#8220;||&#8221; as item delimiter, e.g. {&#8220;a&#8221; || &#8220;b&#8221; || &#8220;c&#8221;}<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">When using <b>time<\/b> in your selection criteria, LVM can recognize various time formats using standard, absolute or freeform expressions. For examples demonstrating time expressions in selection criteria, see <b>EXAMPLES<\/b> section.<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"31%\">\n<p style=\"margin-top: 1em\"><b>Standard time format<\/b><\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%;\">\u2212<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"6%\">\n<p style=\"margin-top: 1em\">date<\/p>\n<\/td>\n<td width=\"63%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%; margin-top: 1em\">YYYY-MM\u2212DD<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\">YYYY-MM, auto DD=1<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\">YYYY, auto MM=01 and DD=01<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"6%\">\n<p style=\"margin-top: 1em\">time<\/p>\n<\/td>\n<td width=\"63%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%; margin-top: 1em\">hh:mm:ss<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\">hh:mm, auto ss=0<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\">hh, auto mm=0, auto ss=0<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\">timezone<\/p>\n<\/td>\n<td width=\"57%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%; margin-top: 1em\">+hh:mm or \u2212hh:mm<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\">+hh or \u2212hh<\/p>\n<p style=\"margin-left:26%; margin-top: 1em\">The full date\/time specification is YYYY-MM\u2212DD hh:mm:ss. Users are able to leave date\/time parts from right to left. Whenever these parts are left out, a range is assumed automatically with second granularity. For example:<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\">&#8220;2015-07-07 9:51&#8221; means range of &#8220;2015-07-07 9:51:00&#8221; &#8211; &#8220;2015-07-07 9:51:59&#8221;.<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\">&#8220;2015\u221207&#8221; means range of &#8220;2015-07-01 0:00:00&#8221; &#8211; &#8220;2015-07-31 23:59:59&#8221;<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\">&#8220;2015&#8221; means range of &#8220;2015-01-01 0:00:00&#8221; &#8211; &#8220;2015-12-31 23:59:59&#8221;<\/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=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"31%\">\n<p style=\"margin-top: 1em\"><b>Absolute time format<\/b><\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%; margin-top: 1em\">Absolute time is defined as number of seconds since the Epoch (1970:01:01 00:00 +00:00).<\/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=\"6%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\">@seconds<\/p>\n<\/td>\n<td width=\"57%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"6%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"12%\"><\/td>\n<td width=\"57%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:26%; margin-top: 1em\"><b>Freeform time format<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"69%\">\n<p style=\"margin-top: 1em\">weekday names (&#8220;Sunday&#8221; &#8211; &#8220;Saturday&#8221; or abbreviated as &#8220;Sun&#8221; &#8211; &#8220;Sat&#8221;)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"69%\">\n<p>labels for points in time (&#8220;noon&#8221;, &#8220;midnight&#8221;)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"69%\">\n<p>labels for a day relative to current day (&#8220;today&#8221;, &#8220;yesterday&#8221;)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"69%\">\n<p>points back in time with relative offset from today (N is a number)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:42%; margin-top: 1em\">&#8220;N&#8221; &#8220;seconds&#8221; \/ &#8220;minutes&#8221; \/ &#8220;hours&#8221; \/ &#8220;days&#8221; \/ &#8220;weeks&#8221; \/ &#8220;years&#8221; &#8220;ago&#8221;<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\">&#8220;N&#8221; &#8220;secs&#8221; \/ &#8220;mins&#8221; \/ &#8220;hrs&#8221; &#8230; &#8220;ago&#8221;<\/p>\n<p style=\"margin-left:42%; margin-top: 1em\">&#8220;N&#8221; &#8220;s&#8221; \/ &#8220;m&#8221; \/ &#8220;h&#8221; &#8230; &#8220;ago&#8221;<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p style=\"margin-top: 1em\">\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"69%\">\n<p style=\"margin-top: 1em\">time specification either in hh:mm:ss format or with AM\/PM suffixes<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"26%\"><\/td>\n<td width=\"2%\">\n<p>\u2212<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"69%\">\n<p>month names (&#8220;January&#8221; &#8211; &#8220;December&#8221; or abbreviated as &#8220;Jan&#8221; &#8211; &#8220;Dec&#8221;)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Informal grammar specification<\/b><\/p>\n<p style=\"margin-left:32%; margin-top: 1em\"><b>STATEMENT<\/b> = <b>column<\/b> cmp_op <b>VALUE<\/b> | <b>STATEMENT<\/b> log_op <b>STATEMENT<\/b> | <b>(STATEMENT)<\/b> | <b>!(STATEMENT)<\/b><\/p>\n<p style=\"margin-left:32%; margin-top: 1em\"><b>VALUE<\/b> = <b>[VALUE<\/b> log_op <b>VALUE]<\/b> <br \/> For list-based types: string list. Matches strictly. The log_op must always be of one type within the whole list value.<\/p>\n<p style=\"margin-left:32%; margin-top: 1em\"><b>VALUE<\/b> = <b>{VALUE<\/b> log_op <b>VALUE}<\/b> <br \/> For list-based types: string list. Matches a subset. The log_op must always be of one type within the whole list value.<\/p>\n<p style=\"margin-left:32%; margin-top: 1em\"><b>VALUE<\/b> = <b>value<\/b> <br \/> For scalar types: number, size, percent, string (or string regex).<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Basic usage<\/b> <br \/> We start our examples with default configuration &#8211; <b>lvmconfig<\/b>(8) is helpful command to display configuration settings which are currently used, including all configuration related to reporting. We will use it throughout examples below to display current configuration.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full global\/units global\/suffix  <br \/> report\/output_format report\/compact_output  <br \/> report\/compact_output_cols report\/aligned  <br \/> report\/headings report\/separator  <br \/> report\/list_item_separator report\/prefixes  <br \/> report\/quoted report\/columns_as_rows  <br \/> report\/binary_values_as_numeric report\/time_format  <br \/> report\/mark_hidden_devices report\/two_word_unknown_device  <br \/> report\/buffered <br \/> units=&#8221;h&#8221; <br \/> suffix=1 <br \/> output_format=&#8221;basic&#8221; <br \/> compact_output=0 <br \/> compact_output_cols=&#8221;&#8221; <br \/> aligned=1 <br \/> headings=1 <br \/> separator=&#8221; &#8221; <br \/> list_item_separator=&#8221;,&#8221; <br \/> prefixes=0 <br \/> quoted=1 <br \/> columns_as_rows=0 <br \/> binary_values_as_numeric=0 <br \/> time_format=&#8221;%Y-%m-%d %T %z&#8221; <br \/> mark_hidden_devices=1 <br \/> two_word_unknown_device=0 <br \/> buffered=1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Also, we start with simple LVM layout with two PVs (\/dev\/sda, \/dev\/sdb), VG (vg) and two LVs (lvol0 and lvol1) in the VG. We display all possible reports as single commands here, see also <b>pvs<\/b>(8), <b>vgs<\/b>(8), <b>lvs<\/b>(8) man pages for more information. The field set for each report type is configured with configuration settings as we already mentioned in <b>main report specifics<\/b> section in this man page.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full report\/pvs_cols report\/pvs_sort  <br \/> report\/pvsegs_cols report\/pvsegs_sort report\/vgs_cols  <br \/> report\/vgs_sort report\/lvs_cols report\/lvs_sort  <br \/> report\/segs_cols report\/segs_sort <br \/> pvs_cols=&#8221;pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free&#8221; <br \/> pvs_sort=&#8221;pv_name&#8221; <br \/> pvsegs_cols=&#8221;pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free, <br \/> pvseg_start,pvseg_size&#8221; <br \/> pvsegs_sort=&#8221;pv_name,pvseg_start&#8221; <br \/> vgs_cols=&#8221;vg_name,pv_count,lv_count,snap_count,vg_attr,vg_size,vg_free&#8221; <br \/> vgs_sort=&#8221;vg_name&#8221; <br \/> lvs_cols=&#8221;lv_name,vg_name,lv_attr,lv_size,pool_lv,origin,move_pv, <br \/> mirror_log,copy_percent,convert_lv&#8221; <br \/> lvs_sort=&#8221;vg_name,lv_name&#8221; <br \/> segs_cols=&#8221;lv_name,vg_name,lv_attr,stripes,segtype,seg_size&#8221; <br \/> segs_sort=&#8221;vg_name,lv_name,seg_start&#8221;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># pvs <br \/> PV VG Fmt Attr PSize PFree <br \/> \/dev\/sda vg lvm2 a\u2212\u2212 100.00m 88.00m <br \/> \/dev\/sdb vg lvm2 a\u2212\u2212 100.00m 92.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># pvs \u2212\u2212segments <br \/> PV VG Fmt Attr PSize PFree Start SSize <br \/> \/dev\/sda vg lvm2 a\u2212\u2212 100.00m 88.00m 0 1 <br \/> \/dev\/sda vg lvm2 a\u2212\u2212 100.00m 88.00m 1 1 <br \/> \/dev\/sda vg lvm2 a\u2212\u2212 100.00m 88.00m 2 1 <br \/> \/dev\/sda vg lvm2 a\u2212\u2212 100.00m 88.00m 3 22 <br \/> \/dev\/sdb vg lvm2 a\u2212\u2212 100.00m 92.00m 0 1 <br \/> \/dev\/sdb vg lvm2 a\u2212\u2212 100.00m 92.00m 1 1 <br \/> \/dev\/sdb vg lvm2 a\u2212\u2212 100.00m 92.00m 2 23<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># vgs <br \/> VG #PV #LV #SN Attr VSize VFree <br \/> vg 2 2 0 wz\u2212\u2212n- 200.00m 180.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs <br \/> LV VG Attr LSize Pool Origin Move Log Cpy%Sync Convert <br \/> lvol0 vg \u2212wi\u2212a\u2212\u2212\u2212\u2212\u2212 4.00m <br \/> lvol1 vg rwi\u2212a-r\u2212\u2212\u2212 4.00m 100.00<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212\u2212segments <br \/> LV VG Attr #Str Type SSize <br \/> lvol0 vg \u2212wi\u2212a\u2212\u2212\u2212\u2212\u2212 1 linear 4.00m <br \/> lvol1 vg rwi\u2212a-r\u2212\u2212\u2212 2 raid1 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">We will use <b>report\/lvs_cols<\/b> and <b>report\/lvs_sort<\/b> configuration settings to define our own list of fields to use and to sort by that is different from defaults. You can do this for other reports in same manner with <b>report\/{pvs,pvseg,vgs,seg}_{cols,sort}<\/b> configuration settings. Also note that in the example below, we don\u2019t display the &#8220;lv_time&#8221; field even though we\u2019re using it for sorting \u2212 this is allowed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full report\/lvs_cols report\/lvs_sort <br \/> lvs_cols=&#8221;lv_name,lv_size,origin,pool_lv,copy_percent&#8221; <br \/> lvs_sort=&#8221;\u2212lv_time&#8221;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs <br \/> LV LSize Origin Pool Cpy%Sync <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can use <b>\u2212o\u2212\u2212options<\/b> command line option to override current configuration directly on command line.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o lv_name,lv_size <br \/> LV LSize <br \/> lvol1 4.00m <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o+lv_layout <br \/> LV LSize Origin Pool Cpy%Sync Layout <br \/> lvol1 4.00m 100.00 raid,raid1 <br \/> lvol0 4.00m linear<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o-origin <br \/> LV LSize Pool Cpy%Sync <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o lv_name,lv_size,origin \u2212o+lv_layout \u2212o-origin \u2212O lv_name <br \/> LV LSize Layout <br \/> lvol0 4.00m linear <br \/> lvol1 4.00m raid,raid1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can obtain the same information with single command where all the information about PVs, PV segments, LVs and LV segments are obtained per VG under a single VG lock for consistency, see also <b>lvm-fullreport<\/b>(8) man page for more information. The fullreport has its own configuration settings to define field sets to use, similar to individual reports as displayed above, but configuration settings have &#8220;_full&#8221; suffix now. This way, it\u2019s possible to configure different sets of fields to display and to sort by for individual reports as well as the full report.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full report\/pvs_cols_full  <br \/> report\/pvs_sort_full report\/pvsegs_cols_full  <br \/> report\/pvsegs_sort_full report\/vgs_cols_full  <br \/> report\/vgs_sort_full report\/lvs_cols_full  <br \/> report\/lvs_sort_full report\/segs_cols_full  <br \/> report\/segs_sort_full <br \/> pvs_cols_full=&#8221;pv_name,vg_name&#8221; <br \/> pvs_sort_full=&#8221;pv_name&#8221; <br \/> pvsegs_cols_full=&#8221;pv_name,pvseg_start,pvseg_size&#8221; <br \/> pvsegs_sort_full=&#8221;pv_uuid,pvseg_start&#8221; <br \/> vgs_cols_full=&#8221;vg_name&#8221; <br \/> vgs_sort_full=&#8221;vg_name&#8221; <br \/> lvs_cols_full=&#8221;lv_name,vg_name&#8221; <br \/> lvs_sort_full=&#8221;vg_name,lv_name&#8221; <br \/> segs_cols_full=&#8221;lv_name,seg_start,seg_size&#8221; <br \/> segs_sort_full=&#8221;lv_uuid,seg_start&#8221;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvm fullreport <br \/> VG <br \/> vg <br \/> PV VG <br \/> \/dev\/sda vg <br \/> \/dev\/sdb vg <br \/> LV VG <br \/> lvol0 vg <br \/> lvol1 vg <br \/> PV Start SSize <br \/> \/dev\/sda 0 1 <br \/> \/dev\/sda 1 1 <br \/> \/dev\/sda 2 1 <br \/> \/dev\/sda 3 22 <br \/> \/dev\/sdb 0 1 <br \/> \/dev\/sdb 1 1 <br \/> \/dev\/sdb 2 23 <br \/> LV Start SSize <br \/> lvol0 0 4.00m <br \/> lvol1 0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Automatic output compaction<\/b> <br \/> If you look at the lvs output above, you can see that the report also contains fields for which there is no information to display (e.g. the columns under &#8220;Origin&#8221; and &#8220;Pool&#8221; heading \u2212 the &#8220;origin&#8221; and &#8220;pool_lv&#8221; fields). LVM can automatically compact report output so such fields are not included in final output. To enable this feature and to compact all fields, use <b>report\/compact_output=1<\/b> in your configuration.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full report\/compact_output <br \/> compact_output=1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs <br \/> LV LSize Cpy%Sync <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs vg\/lvol0 <br \/> LV LSize <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Alternatively, you can define which fields should be compacted by configuring <b>report\/compact_output_cols<\/b> configuration setting (or <b>\u2212o\u2212\u2212options #<\/b> command line option).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full report\/compact_output report\/compact_output_cols <br \/> compact_output=0 <br \/> compact_output_cols=&#8221;origin&#8221;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs <br \/> LV LSize Pool Cpy%Sync <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs vg\/lvol0 <br \/> LV LSize Pool <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o#pool_lv <br \/> LV LSize Origin Cpy%Sync <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">We will use <b>report\/compact_output=1<\/b> for subsequent examples.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Further formatting options<\/b> <br \/> By default, LVM displays sizes in reports in human-readable form which means that the most suitable unit is used so it\u2019s easy to read. You can use <b>report\/units<\/b> configuration setting (or <b>\u2212\u2212units<\/b> option directly on command line) and <b>report\/suffix<\/b> configuration setting (or <b>\u2212\u2212nosuffix<\/b> command line option) to change this.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212\u2212units b \u2212\u2212nosuffix <br \/> LV LSize Cpy%Sync <br \/> lvol1 4194304 100.00 <br \/> lvol0 4194304<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If you want to configure whether report headings are displayed or not, use <b>report\/headings<\/b> configuration settings (or <b>\u2212\u2212noheadings<\/b> command line option).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212\u2212noheadings <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In some cases, it may be useful to display report content as key=value pairs where key here is actually the field name. Use <b>report\/prefixes<\/b> configuration setting (or <b>\u2212\u2212nameprefixes<\/b> command line option) to switch between standard output and the key=value output. The key=value pair is the output that is suitable for use in scripts and for other tools to parse easily. Usually, you also don\u2019t want to display headings with the output that has these key=value pairs.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212\u2212noheadings \u2212\u2212nameprefixes <br \/> LVM2_LV_NAME=\u2019lvol1\u2019 LVM2_LV_SIZE=\u20194.00m\u2019 LVM2_COPY_PERCENT=\u2019100.00\u2019 <br \/> LVM2_LV_NAME=\u2019lvol0\u2019 LVM2_LV_SIZE=\u20194.00m\u2019 LVM2_COPY_PERCENT=\u2019\u2019<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To define whether quotation marks in key=value pairs should be used or not, use <b>report\/quoted<\/b> configuration setting (or <b>\u2212\u2212unquoted<\/b> command line option).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212\u2212noheadings \u2212\u2212nameprefixes \u2212\u2212unquoted <br \/> LVM2_LV_NAME=lvol1 LVM2_LV_SIZE=4.00m LVM2_COPY_PERCENT=100.00 <br \/> LVM2_LV_NAME=lvol0 LVM2_LV_SIZE=4.00m LVM2_COPY_PERCENT=<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For easier parsing, you can even transpose the report so each column now becomes a row in the output. This is done with <b>report\/output_as_rows<\/b> configuration setting (or <b>\u2212\u2212rows<\/b> command line option).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212\u2212noheadings \u2212\u2212nameprefixes \u2212\u2212unquoted \u2212\u2212rows <br \/> LVM2_LV_NAME=lvol1 LVM2_LV_NAME=lvol0 <br \/> LVM2_LV_SIZE=4.00m LVM2_LV_SIZE=4.00m <br \/> LVM2_COPY_PERCENT=100.00 LVM2_COPY_PERCENT=<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Use <b>report\/separator<\/b> configuration setting (or <b>\u2212\u2212separator<\/b> command line option) to define your own field separator to use.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212\u2212noheadings \u2212\u2212nameprefixes \u2212\u2212unquoted \u2212\u2212separator &#8221; | &#8221; <br \/> LVM2_LV_NAME=lvol1 | LVM2_LV_SIZE=4.00m | LVM2_COPY_PERCENT=100.00 <br \/> LVM2_LV_NAME=lvol0 | LVM2_LV_SIZE=4.00m | LVM2_COPY_PERCENT=<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If you are using your own separator, the columns in the output are not aligned by default. Use <b>report\/aligned<\/b> configuration setting (or <b>\u2212\u2212aligned<\/b> command line option) for LVM to add extra spaces in report to align the output properly.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212\u2212separator &#8221; | &#8221; <br \/> LV | LSize | Cpy%Sync <br \/> lvol1 | 4.00m | 100.00 <br \/> lvol0 | 4.00m |<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212\u2212separator &#8221; | &#8221; \u2212\u2212aligned <br \/> LV | LSize | Cpy%Sync <br \/> lvol1 | 4.00m | 100.00 <br \/> lvol0 | 4.00m |<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Let\u2019s display one one more field in addition (&#8220;lv_tags&#8221; in this example) for the lvs report output.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o+lv_tags <br \/> LV LSize Cpy%Sync LV Tags <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m tagA,tagB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The &#8220;LV Tags&#8221; column in the example above displays two list values, separated by &#8220;,&#8221; character for LV lvol0. If you need different list item separator, use <b>report\/list_item_separator<\/b> configuration setting its definition.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full report\/list_item_separator <br \/> list_item_separator=&#8221;;&#8221;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o+tags <br \/> LV LSize Cpy%Sync LV Tags <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m tagA;tagB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">But let\u2019s still use the original &#8220;,&#8221; character for list_item_separator for subsequent examples.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Format for any of time values displayed in reports can be configured with <b>report\/time_format<\/b> configuretion setting. By default complete date and time is displayed, including timezone.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full report\/time_format <br \/> time_format=&#8221;%Y-%m-%d %T %z&#8221;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o+time <br \/> LV LSize Cpy%Sync CTime <br \/> lvol1 4.00m 100.00 2016-08-29 12:53:36 +0200 <br \/> lvol0 4.00m 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">We can change time format in similar way as we do when using <b>date<\/b>(1) command or <b>strftime<\/b>(3) function (<b>lvmconfig \u2212\u2212type default \u2212\u2212withcomments report\/time_format<\/b> will give you complete list of available formatting options). In the example below, we decided to use %s for number of seconds since Epoch (1970-01-01 UTC).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full report\/time_format <br \/> time_format=&#8221;%s&#8221;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs <br \/> LV Attr LSize Cpy%Sync LV Tags CTime <br \/> lvol1 rwi\u2212a-r\u2212\u2212\u2212 4.00m 100.00 1472468016 <br \/> lvol0 \u2212wi\u2212a\u2212\u2212\u2212\u2212\u2212 4.00m tagA,tagB 1472458517<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>lvs<\/b> does not display hidden LVs by default \u2212 to include these LVs in the output, you need to use <b>\u2212a\u2212\u2212all<\/b> command line option. Names for these hidden LVs are displayed within square brackets.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212a <br \/> LV LSize Cpy%Sync <br \/> lvol1 4.00m 100.00 <br \/> [lvol1_rimage_0] 4.00m <br \/> [lvol1_rmeta_0] 4.00m <br \/> [lvol1_rimage_1] 4.00m <br \/> [lvol1_rmeta_1] 4.00m <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can configure LVM to display the square brackets for hidden LVs or not with <b>report\/mark_hidden_devices<\/b> configuration setting.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full report\/mark_hidden_devices <br \/> mark_hidden_devices=0<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212a <br \/> LV LSize Cpy%Sync <br \/> lvol1 4.00m 100.00 <br \/> lvol1_rimage_0 4.00m <br \/> lvol1_rmeta_0 4.00m <br \/> lvol1_rimage_1 4.00m <br \/> lvol1_rmeta_1 4.00m <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">It\u2019s not recommended to use LV marks for hidden devices to decide whether the LV is the one to use by end users or not. Please, use &#8220;lv_role&#8221; field instead which can report whether the LV is &#8220;public&#8221; or &#8220;private&#8221;. The private LVs are used by LVM only and they should not be accessed directly by end users.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212a \u2212o+lv_role <br \/> LV LSize Cpy%Sync Role <br \/> lvol1 4.00m 100.00 public <br \/> lvol1_rimage_0 4.00m private,raid,image <br \/> lvol1_rmeta_0 4.00m private,raid,metadata <br \/> lvol1_rimage_1 4.00m private,raid,image <br \/> lvol1_rmeta_1 4.00m private,raid,metadata <br \/> lvol0 4.00m public<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Some of the reporting fields that LVM reports are of binary nature. For such fields, it\u2019s either possible to display word representation of the value (this is used by default) or numeric value (0\/1 or \u22121 in case the value is undefined).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o+lv_active_locally <br \/> LV LSize Cpy%Sync ActLocal <br \/> lvol1 4.00m 100.00 active locally <br \/> lvol0 4.00m active locally<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">We can change the way how these binary values are displayed with <b>report\/binary_values_as_numeric<\/b> configuration setting.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full report\/binary_values_as_numeric <br \/> binary_values_as_numeric=1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o+lv_active_locally <br \/> LV LSize Cpy%Sync ActLocal <br \/> lvol1 4.00m 100.00 1 <br \/> lvol0 4.00m 1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Changing output format<\/b> <br \/> LVM can output reports in different formats \u2212 use <b>report\/output_format<\/b> configuration setting (or <b>\u2212\u2212reportformat<\/b> command line option) to swith the report output format. Currently, LVM supports <b>&#8220;basic&#8221;<\/b> (all the examples we used above used this format) and <b>&#8220;JSON&#8221;<\/b> output format.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o lv_name,lv_size \u2212\u2212reportformat json <br \/> { <br \/> &#8220;report&#8221;: [ <br \/> { <br \/> &#8220;lv&#8221;: [ <br \/> {&#8220;lv_name&#8221;:&#8221;lvol1&#8243;, &#8220;lv_size&#8221;:&#8221;4.00m&#8221;}, <br \/> {&#8220;lv_name&#8221;:&#8221;lvol0&#8243;, &#8220;lv_size&#8221;:&#8221;4.00m&#8221;} <br \/> ] <br \/> } <br \/> ] <br \/> }<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note that some configuration settings and command line options have no effect with certain report formats. For example, with <b>JSON<\/b> output, it doesn\u2019t have any meaning to use <b>report\/aligned<\/b> (<b>\u2212\u2212aligned<\/b>), <b>report\/noheadings<\/b> (<b>\u2212\u2212noheadings<\/b>), <b>report\/columns_as_rows<\/b> (<b>\u2212\u2212rows<\/b>) or <b>report\/buffered<\/b> (<b>\u2212\u2212unbuffered<\/b>). All these configuration settings and command line options are ignored if using the <b>JSON<\/b> report output format.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Selection<\/b> <br \/> If you need to select only specific rows from report, you can use LVM\u2019s report selection feature. If you call <b><lvm_command> \u2212S help<\/b>, you\u2019ll get quick help on selection. The help contains list of all fields that LVM can use in reports together with its type enclosed in square brackets. The example below contains a line from lvs \u2212S help.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212S help <br \/> &#8230; <br \/> lv_size &#8211; Size of LV in current units. [size] <br \/> &#8230;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This line tells you you that the &#8220;lv_size&#8221; field is of &#8220;size&#8221; type. If you look at the bottom of the help output, you can see section about &#8220;Selection operators&#8221; and its &#8220;Comparison operators&#8221;.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212S help <br \/> &#8230; <br \/> Selection operators <br \/> \u2212\u2212&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <br \/> Comparison operators: <br \/> =~ &#8211; Matching regular expression. [regex] <br \/> !~ &#8211; Not matching regular expression. [regex] <br \/> = &#8211; Equal to. [number, size, percent, string, string list, time] <br \/> != &#8211; Not equal to. [number, size, percent, string, string_list, time] <br \/> >= &#8211; Greater than or equal to. [number, size, percent, time] <br \/> > &#8211; Greater than. [number, size, percent, time] <br \/> <= - Less than or equal to. [number, size, percent, time] <br \/> < - Less than. [number, size, percent, time] <br \/> since &#8211; Since specified time (same as \u2019>=\u2019). [time] <br \/> after &#8211; After specified time (same as \u2019>\u2019). [time] <br \/> until &#8211; Until specified time (same as \u2019<=\u2019). [time] <br \/> before &#8211; Before specified time (same as \u2019<\u2019). [time] <br \/> &#8230;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Here you can match comparison operators that you may use with the &#8220;lv_size&#8221; field which is of type &#8220;size&#8221; &#8211; it\u2019s =, !=, >=, >, <= and <. You can find applicable comparison operators for other fields and other field types the same way.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To demostrate selection functionality in LVM, we will create more LVs in addition to lvol0 and lvol1 we used in our previous examples.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,size,origin,snap_percent,tags,time <br \/> LV LSize Origin Snap% LV Tags CTime <br \/> lvol4 4.00m lvol2 24.61 2016-09-09 16:57:44 +0200 <br \/> lvol3 4.00m lvol2 5.08 2016-09-09 16:56:48 +0200 <br \/> lvol2 8.00m tagA,tagC,tagD 2016-09-09 16:55:12 +0200 <br \/> lvol1 4.00m 2016-08-29 12:53:36 +0200 <br \/> lvol0 4.00m tagA,tagB 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When selecting size and percent fields, we don\u2019t need to use units. For sizes, default &#8220;m&#8221; (for MiB) is used \u2212 this is the same behaviour as already used for LVM commands when specifying sizes (e.g. lvcreate \u2212L). For percent fields, &#8220;%&#8221; is assumed automatically if it\u2019s not specified. The example below also demonstrates how several criteria can be combined together.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,size,snap_percent \u2212S \u2019size=8m\u2019 <br \/> LV LSize <br \/> lvol2 8.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,size,snap_percent \u2212S \u2019size=8\u2019 <br \/> LV LSize <br \/> lvol2 8.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,size,snap_percent \u2212S \u2019size < 5000k\u2019 <br \/> LV LSize Snap% <br \/> lvol4 4.00m 24.61 <br \/> lvol3 4.00m 5.08 <br \/> lvol1 4.00m <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,size,snap_percent \u2212S \u2019size < 5000k &#038;&#038; snap_percent > 20\u2019 <br \/> LV LSize Snap% <br \/> lvol4 4.00m 24.61<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,size,snap_percent  <br \/> \u2212S \u2019(size < 5000k &#038;&#038; snap_percent > 20%) || name=lvol2\u2019 <br \/> LV LSize Snap% <br \/> lvol4 4.00m 24.61 <br \/> lvol2 8.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can also use selection together with processing-oriented commands.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvchange \u2212\u2212addtag test \u2212S \u2019size < 5000k\u2019 <br \/> Logical volume vg\/lvol1 changed. <br \/> Logical volume vg\/lvol0 changed. <br \/> Logical volume vg\/lvol3 changed. <br \/> Logical volume vg\/lvol4 changed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvchange \u2212\u2212deltag test \u2212S \u2019tags = test\u2019 <br \/> Logical volume vg\/lvol1 changed. <br \/> Logical volume vg\/lvol0 changed. <br \/> Logical volume vg\/lvol3 changed. <br \/> Logical volume vg\/lvol4 changed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">LVM can recognize more complex values used in selection criteria for string list and time field types. For string lists, you can match whole list strictly, its subset or intersection. Let\u2019s take &#8220;lv_tags&#8221; field as an example \u2212 we select only rows which contain &#8220;tagA&#8221; within tags field. We\u2019re using { } to denote that we\u2019re interested in subset that matches. If the subset has only one item, we can leave out { }.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,tags \u2212S \u2019tags={tagA}\u2019 <br \/> LV LV Tags <br \/> lvol2 tagA,tagC,tagD <br \/> lvol0 tagA,tagB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,tags \u2212S \u2019tags=tagA\u2019 <br \/> LV LV Tags <br \/> lvol2 tagA,tagC,tagD <br \/> lvol0 tagA,tagB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Depending on whether we use &#8220;&#038;&#038;&#8221; (or &#8220;,&#8221;) or &#8220;||&#8221; ( or &#8220;#&#8221;) as delimiter for items in the set we define in selection criterion for string list, we either match subset (&#8220;&#038;&#038;&#8221; or &#8220;,&#8221;) or even intersection (&#8220;||&#8221; or &#8220;#&#8221;).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,tags \u2212S \u2019tags={tagA,tagC,tagD}\u2019 <br \/> LV LV Tags <br \/> lvol2 tagA,tagC,tagD<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,tags \u2212S \u2019tags={tagA || tagC || tagD}\u2019 <br \/> LV LV Tags <br \/> lvol2 tagA,tagC,tagD <br \/> lvol0 tagA,tagB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To match the complete set, use [ ] with &#8220;&#038;&#038;&#8221; (or &#8220;,&#8221;) as delimiter for items. Also note that the order in which we define items in the set is not relevant.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,tags \u2212S \u2019tags=[tagA]\u2019<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,tags \u2212S \u2019tags=[tagB,tagA]\u2019 <br \/> LV LV Tags <br \/> lvol0 tagA,tagB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If you use [ ] with &#8220;||&#8221; (or &#8220;#&#8221;), this is exactly the same as using { }.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,tags \u2212S \u2019tags=[tagA || tagC || tagD]\u2019 <br \/> LV LV Tags <br \/> lvol2 tagA,tagC,tagD <br \/> lvol0 tagA,tagB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To match a set with no items, use &#8220;&#8221; to denote this (note that we have output compaction enabled so the &#8220;LV Tags&#8221; column is not displayed in the example below because it\u2019s blank and so it gets compacted).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,tags \u2212S \u2019tags=&#8221;&#8221;\u2019 <br \/> LV <br \/> lvol4 <br \/> lvol3 <br \/> lvol1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,tags \u2212S \u2019tags!=&#8221;&#8221;\u2019 <br \/> LV LV Tags <br \/> lvol2 tagA,tagC,tagD <br \/> lvol0 tagA,tagB<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When doing selection based on time fields, we can use either standard, absolute or freeform time expressions in selection criteria. Examples below are using standard forms.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time <br \/> LV CTime <br \/> lvol4 2016-09-09 16:57:44 +0200 <br \/> lvol3 2016-09-09 16:56:48 +0200 <br \/> lvol2 2016-09-09 16:55:12 +0200 <br \/> lvol1 2016-08-29 12:53:36 +0200 <br \/> lvol0 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212S \u2019time since &#8220;2016-09-01&#8243;\u2019 <br \/> LV CTime <br \/> lvol4 2016-09-09 16:57:44 +0200 <br \/> lvol3 2016-09-09 16:56:48 +0200 <br \/> lvol2 2016-09-09 16:55:12 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212S \u2019time since &#8220;2016-09-09 16:56&#8243;\u2019 <br \/> LV CTime <br \/> lvol4 2016-09-09 16:57:44 +0200 <br \/> lvol3 2016-09-09 16:56:48 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212S \u2019time since &#8220;2016-09-09 16:57:30&#8243;\u2019 <br \/> LV CTime <br \/> lvol4 2016-09-09 16:57:44 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time  <br \/> \u2212S \u2019time since &#8220;2016-08-29&#8221; &#038;&#038; time until &#8220;2016-09-09 16:55:12&#8243;\u2019 <br \/> LV CTime <br \/> lvol2 2016-09-09 16:55:12 +0200 <br \/> lvol1 2016-08-29 12:53:36 +0200 <br \/> lvol0 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time  <br \/> \u2212S \u2019time since &#8220;2016-08-29&#8221; &#038;&#038; time before &#8220;2016-09-09 16:55:12&#8243;\u2019 <br \/> LV CTime <br \/> lvol1 2016-08-29 12:53:36 +0200 <br \/> lvol0 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Time operators have synonyms: &#8220;>=&#8221; for since, &#8220;<=\" for until, \">&#8221; for &#8220;after&#8221; and &#8220;<\" for \"before\".<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time  <br \/> \u2212S \u2019time >= &#8220;2016-08-29&#8221; &#038;&#038; time <= \"2016-09-09 16:55:30\"\u2019 <br \/> LV CTime <br \/> lvol2 2016-09-09 16:55:12 +0200 <br \/> lvol1 2016-08-29 12:53:36 +0200 <br \/> lvol0 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time  <br \/> \u2212S \u2019time since &#8220;2016-08-29&#8221; &#038;&#038; time < \"2016-09-09 16:55:12\"\u2019 <br \/> LV CTime <br \/> lvol1 2016-08-29 12:53:36 +0200 <br \/> lvol0 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Example below demonstrates using absolute time expression.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212\u2212config report\/time_format=&#8221;%s&#8221; <br \/> LV CTime <br \/> lvol4 1473433064 <br \/> lvol3 1473433008 <br \/> lvol2 1473432912 <br \/> lvol1 1472468016 <br \/> lvol0 1472458517<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212S \u2019time since @1473433008\u2019 <br \/> LV CTime <br \/> lvol4 2016-09-09 16:57:44 +0200 <br \/> lvol3 2016-09-09 16:56:48 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Examples below demonstrates using freeform time expressions.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212S \u2019time since &#8220;2 weeks ago&#8221;\u2019 <br \/> LV CTime <br \/> lvol4 2016-09-09 16:57:44 +0200 <br \/> lvol3 2016-09-09 16:56:48 +0200 <br \/> lvol2 2016-09-09 16:55:12 +0200 <br \/> lvol1 2016-08-29 12:53:36 +0200 <br \/> lvol0 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212S \u2019time since &#8220;1 week ago&#8221;\u2019 <br \/> LV CTime <br \/> lvol4 2016-09-09 16:57:44 +0200 <br \/> lvol3 2016-09-09 16:56:48 +0200 <br \/> lvol2 2016-09-09 16:55:12 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212S \u2019time since &#8220;2 weeks ago&#8221;\u2019 <br \/> LV CTime <br \/> lvol1 2016-08-29 12:53:36 +0200 <br \/> lvol0 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212S \u2019time before &#8220;1 week ago&#8221;\u2019 <br \/> LV CTime <br \/> lvol1 2016-08-29 12:53:36 +0200 <br \/> lvol0 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212S \u2019time since &#8220;68 hours ago&#8221;\u2019 <br \/> LV CTime <br \/> lvol4 2016-09-09 16:57:44 +0200 <br \/> lvol3 2016-09-09 16:56:48 +0200 <br \/> lvol2 2016-09-09 16:55:12 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o name,time \u2212S \u2019time since &#8220;1 year 3 months ago&#8221;\u2019 <br \/> LV CTime <br \/> lvol4 2016-09-09 16:57:44 +0200 <br \/> lvol3 2016-09-09 16:56:48 +0200 <br \/> lvol2 2016-09-09 16:55:12 +0200 <br \/> lvol1 2016-08-29 12:53:36 +0200 <br \/> lvol0 2016-08-29 10:15:17 +0200<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Command log reporting<\/b> <br \/> As described in <b>categorization based on reporting facility<\/b> section at the beginning of this document, both <b>report-oriented<\/b> and <b>processing-oriented<\/b> LVM commands can report the command log if this is enabled with <b>log\/report_command_log<\/b> configuration setting. Just like any other report, we can set the set of fields to display (<b>log\/command_log_cols<\/b>) and to sort by (<b>log\/command_log_sort<\/b>) for this report.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full log\/report_command_log log\/command_log_cols  <br \/> log\/command_log_sort log\/command_log_selection <br \/> report_command_log=1 <br \/> command_log_cols=&#8221;log_seq_num,log_type,log_context,log_object_type, <br \/> log_object_name,log_object_group,log_message, <br \/> log_errno,log_ret_code&#8221; <br \/> command_log_sort=&#8221;log_seq_num&#8221; <br \/> command_log_selection=&#8221;!(log_type=status &#038;&#038; message=success)&#8221;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs <br \/> Logical Volume <br \/> ============== <br \/> LV LSize Cpy%Sync <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command Log <br \/> =========== <br \/> Seq LogType Context ObjType ObjName ObjGrp Msg Errno RetCode<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">As you can see, the command log is empty (it contains only field names). By default, LVM uses selection on the command log report and this case no row matched the selection criteria, see also <b>log report specifics<\/b> section in this document for more information. We\u2019re displaying complete log report in the example below where we can see that both LVs lvol0 and lvol1 were successfully processed as well as the VG vg they are part of.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvmconfig \u2212\u2212type full log\/command_log_selection <br \/> command_log_selection=&#8221;all&#8221;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs <br \/> Logical Volume <br \/> ============== <br \/> LV LSize Cpy%Sync <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command Log <br \/> =========== <br \/> Seq LogType Context ObjType ObjName ObjGrp Msg Errno RetCode <br \/> 1 status processing lv lvol0 vg success 0 1 <br \/> 2 status processing lv lvol1 vg success 0 1 <br \/> 3 status processing vg vg success 0 1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvchange \u2212an vg\/lvol1 <br \/> Command Log <br \/> =========== <br \/> Seq LogType Context ObjType ObjName ObjGrp Msg Errno RetCode <br \/> 1 status processing lv lvol1 vg success 0 1 <br \/> 2 status processing vg vg success 0 1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Handling multiple reports per single command<\/b> <br \/> To configure the log report directly on command line, we need to use <b>\u2212\u2212configreport<\/b> option before we start any <b>\u2212o\u2212\u2212options<\/b>, <b>\u2212O\u2212\u2212sort<\/b> or <b>\u2212S\u2212\u2212select<\/b> that is targeted for log report.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvs \u2212o lv_name,lv_size \u2212\u2212configreport log \u2212o log_object_type,  <br \/> log_object_name,log_message,log_ret_code <br \/> Logical Volume <br \/> ============== <br \/> LV LSize <br \/> lvol1 4.00m <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command Log <br \/> =========== <br \/> ObjType ObjName Msg RetCode <br \/> lv lvol0 success 1 <br \/> lv lvol1 success 1 <br \/> vg vg success 1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>lvm fullreport<\/b>, with or without log report, consists of several reports \u2212 the <b>\u2212\u2212configreport<\/b> is also used to target particular subreport here.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Below is an extended example with <b>lvm fullreport<\/b> to illustrate combination of various options. The report output is in JSON format. Also, we configure &#8220;vg&#8221;, &#8220;pvseg&#8221;, &#8220;seg&#8221; and &#8220;log&#8221; subreport to contain only specified fields. For the &#8220;pvseg&#8221; subreport, we\u2019re intested only in PV names having &#8220;sda&#8221; in their name. For the &#8220;log&#8221; subreport we\u2019re intested only in log lines related to either &#8220;lvol0&#8221; object or object having &#8220;sda&#8221; in its name. Also, for the log subreport we define ordering to be based on &#8220;log_object_type&#8221; field.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvm fullreport \u2212\u2212reportformat json  <br \/> \u2212\u2212configreport vg \u2212o vg_name,vg_size  <br \/> \u2212\u2212configreport pvseg \u2212o pv_name,pvseg_start  <br \/> \u2212S \u2019pv_name=~sda\u2019  <br \/> \u2212\u2212configreport seg \u2212o lv_name,seg_start  <br \/> \u2212\u2212configreport log \u2212o log_object_type,log_object_name  <br \/> \u2212O log_object_type  <br \/> \u2212S \u2019log_object_name=lvol0 ||  <br \/> log_object_name=~sda\u2019 <br \/> { <br \/> &#8220;report&#8221;: [ <br \/> { <br \/> &#8220;vg&#8221;: [ <br \/> {&#8220;vg_name&#8221;:&#8221;vg&#8221;, &#8220;vg_size&#8221;:&#8221;200.00m&#8221;} <br \/> ] <br \/> , <br \/> &#8220;pv&#8221;: [ <br \/> {&#8220;pv_name&#8221;:&#8221;\/dev\/sda&#8221;, &#8220;vg_name&#8221;:&#8221;vg&#8221;}, <br \/> {&#8220;pv_name&#8221;:&#8221;\/dev\/sdb&#8221;, &#8220;vg_name&#8221;:&#8221;vg&#8221;} <br \/> ] <br \/> , <br \/> &#8220;lv&#8221;: [ <br \/> {&#8220;lv_name&#8221;:&#8221;lvol0&#8243;, &#8220;vg_name&#8221;:&#8221;vg&#8221;}, <br \/> {&#8220;lv_name&#8221;:&#8221;lvol1&#8243;, &#8220;vg_name&#8221;:&#8221;vg&#8221;} <br \/> ] <br \/> , <br \/> &#8220;pvseg&#8221;: [ <br \/> {&#8220;pv_name&#8221;:&#8221;\/dev\/sda&#8221;, &#8220;pvseg_start&#8221;:&#8221;0&#8243;}, <br \/> {&#8220;pv_name&#8221;:&#8221;\/dev\/sda&#8221;, &#8220;pvseg_start&#8221;:&#8221;1&#8243;}, <br \/> {&#8220;pv_name&#8221;:&#8221;\/dev\/sda&#8221;, &#8220;pvseg_start&#8221;:&#8221;2&#8243;}, <br \/> {&#8220;pv_name&#8221;:&#8221;\/dev\/sda&#8221;, &#8220;pvseg_start&#8221;:&#8221;3&#8243;} <br \/> ] <br \/> , <br \/> &#8220;seg&#8221;: [ <br \/> {&#8220;lv_name&#8221;:&#8221;lvol0&#8243;, &#8220;seg_start&#8221;:&#8221;0 &#8220;}, <br \/> {&#8220;lv_name&#8221;:&#8221;lvol1&#8243;, &#8220;seg_start&#8221;:&#8221;0 &#8220;} <br \/> ] <br \/> } <br \/> ] <br \/> , <br \/> &#8220;log&#8221;: [ <br \/> {&#8220;log_object_type&#8221;:&#8221;lv&#8221;, &#8220;log_object_name&#8221;:&#8221;lvol0&#8243;}, <br \/> {&#8220;log_object_type&#8221;:&#8221;lv&#8221;, &#8220;log_object_name&#8221;:&#8221;lvol0&#8243;}, <br \/> {&#8220;log_object_type&#8221;:&#8221;pv&#8221;, &#8220;log_object_name&#8221;:&#8221;\/dev\/sda&#8221;}, <br \/> {&#8220;log_object_type&#8221;:&#8221;pv&#8221;, &#8220;log_object_name&#8221;:&#8221;\/dev\/sda&#8221;}, <br \/> ] <br \/> }<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Report extensions for LVM shell<\/b> <br \/> As already stated in <b>log report coverage<\/b> paragraph under <b>log report specifics<\/b> in this documentation, when using <b>LVM shell<\/b> the <b>log report<\/b> coverage is wider. There\u2019s also special command designed to query last command\u2019s log report in the <b>LVM shell<\/b> &#8211; the <b>lastlog<\/b> command.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The example below illustrates a situation where we called lvs command. After that, we inspected the log report with the <b>lastlog<\/b>, without any selection so all the log report is displayed on output. Then we called <b>lastlog<\/b> further, giving various selection criteria. Then we ran unknown LVM command &#8220;abc&#8221; for which the log report displays appropriate failure state.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># lvm <br \/> lvm> lvs <br \/> Logical Volume <br \/> ============== <br \/> LV LSize Cpy%Sync <br \/> lvol1 4.00m 100.00 <br \/> lvol0 4.00m<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command Log <br \/> =========== <br \/> Seq LogType Context ObjType ObjName ObjGrp Msg Errno RetCode <br \/> 1 status processing lv lvol0 vg success 0 1 <br \/> 2 status processing lv lvol1 vg success 0 1 <br \/> 3 status processing vg vg success 0 1 <br \/> 4 status shell cmd lvs success 0 1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">lvm> lastlog <br \/> Command Log <br \/> =========== <br \/> Seq LogType Context ObjType ObjName ObjGrp Msg Errno RetCode <br \/> 1 status processing lv lvol0 vg success 0 1 <br \/> 2 status processing lv lvol1 vg success 0 1 <br \/> 3 status processing vg vg success 0 1 <br \/> 4 status shell cmd lvs success 0 1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">lvm> lastlog \u2212S log_object_type=lv <br \/> Command Log <br \/> =========== <br \/> Seq LogType Context ObjType ObjName ObjGrp Msg Errno RetCode <br \/> 1 status processing lv lvol0 vg success 0 1 <br \/> 2 status processing lv lvol1 vg success 0 1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">lvm> lastlog \u2212S log_context=shell <br \/> Command Log <br \/> =========== <br \/> Seq LogType Context ObjType ObjName ObjGrp Msg Errno RetCode <br \/> 4 status shell cmd lvs success 0 1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">lvm> abc <br \/> Command Log <br \/> =========== <br \/> Seq LogType Context ObjType ObjName ObjGrp Msg Errno RetCode <br \/> 1 error shell cmd abc No such command \u2019abc\u2019. Try \u2019help\u2019. \u22121 0 <br \/> 2 status shell cmd abc failure \u22121 2<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lvm<\/b> (8), <b>lvmconfig<\/b> (8), <b>lvm fullreport<\/b> (8)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  lvmreport \u2014 LVM reporting and related features <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[971],"tags":[973,1044,972],"class_list":["post-3952","post","type-post","status-publish","format-standard","hentry","category-7-miscelanea","tag-973","tag-lvmreport","tag-man7"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3952","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=3952"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3952\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}