diff options
-rw-r--r-- | src/lib/sos/plugins/devicemapper.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/sos/plugins/devicemapper.py b/src/lib/sos/plugins/devicemapper.py index 46662c70..c2be8eba 100644 --- a/src/lib/sos/plugins/devicemapper.py +++ b/src/lib/sos/plugins/devicemapper.py @@ -25,7 +25,7 @@ class devicemapper(sos.plugintools.PluginBase): def do_lvmdump(self): """Collects raw metadata directly from the PVs using dd """ - sosGetCommandOutput("lvmdump -d %s" % os.path.join(self.cInfo['dstroot'],"lvmdump"), 120) + sosGetCommandOutput("lvmdump -d %s" % os.path.join(self.cInfo['dstroot'],"lvmdump")) def setup(self): self.collectExtOutput("/sbin/dmsetup info -c") @@ -53,4 +53,9 @@ class devicemapper(sos.plugintools.PluginBase): if self.getOption('lvmdump'): self.do_lvmdump() + for disk in os.listdir("/sys/block"): + if disk in [ ".", ".." ] or disk.startswith("ram"): + continue + self.collectExtOutput("/usr/bin/udevinfo -ap /sys/block/%s" % (disk)) + return |