aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2018-08-01 13:42:02 -0400
committerBryn M. Reeves <bmr@redhat.com>2018-09-03 17:00:05 +0100
commitb0fd6836a4f893a9fff666ac0c26f981ecb6b301 (patch)
tree2c5a582684b7970698ac05d35cd132c620bd4c81
parent6db459e2b21a798d93cc79e705e8e02f1bbd24c1 (diff)
downloadsos-b0fd6836a4f893a9fff666ac0c26f981ecb6b301.tar.gz
[lvm] Add columns to lvs collection
Adds the lv_(kernel)_read_ahead, stripes, and stripsize columns to lvs output. Closes: #800 Resolves: #1391 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/lvm2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/lvm2.py b/sos/plugins/lvm2.py
index 7c253d83..320451ad 100644
--- a/sos/plugins/lvm2.py
+++ b/sos/plugins/lvm2.py
@@ -55,7 +55,8 @@ class Lvm2(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
pvs_cols = pvs_cols + ',' + 'pe_start'
vgs_cols = 'vg_mda_count,vg_mda_free,vg_mda_size,vg_mda_used_count'
vgs_cols = vgs_cols + ',' + 'vg_tags'
- lvs_cols = 'lv_tags,devices'
+ lvs_cols = ('lv_tags,devices,lv_kernel_read_ahead,lv_read_ahead,'
+ 'stripes,stripesize')
self.add_cmd_output([
"vgscan -vvv %s" % lvm_opts,
"pvscan -v %s" % lvm_opts,