diff options
author | Akshay Gaikwad <akgaikwad001@gmail.com> | 2021-01-29 13:46:45 +0530 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-02-17 14:52:21 -0500 |
commit | 7c7cf6687ea39d9502a229cc15628c7dca7a3569 (patch) | |
tree | 079e50a7b029c52b0a238d595773f2bafec8d57f | |
parent | e1845a1f2bc1ba1f556e3dde60ae9a2584d3f825 (diff) | |
download | sos-7c7cf6687ea39d9502a229cc15628c7dca7a3569.tar.gz |
[md] Add "mdadm -E" command output
The "mdadm -E" print contents of the metadata stored in devices. -E
applies to devices which are components of an array, where -D applies
to whole array.
Resolves: #2391
Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/md.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/report/plugins/md.py b/sos/report/plugins/md.py index 0b50f925..1597cbce 100644 --- a/sos/report/plugins/md.py +++ b/sos/report/plugins/md.py @@ -18,6 +18,8 @@ class Md(Plugin, IndependentPlugin): def setup(self): self.add_cmd_output("mdadm -D /dev/md*") + self.add_blockdev_cmd("mdadm -E %(dev)s", + blacklist=['ram.*', 'zram.*']) self.add_copy_spec([ "/proc/mdstat", "/etc/mdadm.conf", |