Give more details on errors when trying to run “lvdisplay”.
authorMichael Hanselmann <hansmi@google.com>
Wed, 14 Nov 2007 14:05:26 +0000 (14:05 +0000)
committerMichael Hanselmann <hansmi@google.com>
Wed, 14 Nov 2007 14:05:26 +0000 (14:05 +0000)
Reviewed-by: schreiberal

lib/bdev.py

index 38c327a..b18aa76 100644 (file)
@@ -400,8 +400,8 @@ class LogicalVolume(BlockDev):
     """
     result = utils.RunCmd(["lvdisplay", self.dev_path])
     if result.failed:
-      logger.Error("Can't find LV %s: %s" %
-                   (self.dev_path, result.fail_reason))
+      logger.Error("Can't find LV %s: %s, %s" %
+                   (self.dev_path, result.fail_reason, result.output))
       return False
     match = re.compile("^ *Block device *([0-9]+):([0-9]+).*$")
     for line in result.stdout.splitlines():