diff options
author | Jose Castillo <jcastillo@redhat.com> | 2017-07-24 10:00:36 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-11-01 11:33:21 +0000 |
commit | 1c6ed8fbb03cd64c2a93f2656d3ae9e342af8789 (patch) | |
tree | ccccb6c1e1a79501ca2df85cd555292675063f84 | |
parent | 4c0d624c448b42be24da4895e0c5bb6ce35219ce (diff) | |
download | sos-1c6ed8fbb03cd64c2a93f2656d3ae9e342af8789.tar.gz |
[block] Add the output of 'lsblk -t'
The output of 'lsblk -t' provides very useful information
about the device's topology, like alignment offset,
minimum io size, optimal io size, and others. It is
equivalent to running lsblk with options:
-o NAME,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,ROTA,SCHED,
RQ-SIZE,WSAME
With this improvement to the block plugin we can see at one
glance data available in different places like sysfs,
fdisk and/or parted, as well as data not available in the
sosreport nowadays, like
/sys/block/<device>/queue/rotational .
Fixes: #1065
Signed-off-by: Jose Castillo <jcastillo@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/block.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/plugins/block.py b/sos/plugins/block.py index 864956b1..c2fcb0e9 100644 --- a/sos/plugins/block.py +++ b/sos/plugins/block.py @@ -26,6 +26,7 @@ class Block(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): def setup(self): self.add_cmd_output([ "lsblk", + "lsblk -t", "blkid -c /dev/null", "blockdev --report", "ls -lanR /dev", |