[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] log lvcreate commands



I'm in the middle of debugging a problem with lvcreate in Anaconda in RHEL 5.1 and I added a line to log the lvcreate commands as they're called. I'm still debugging the problem, but the extra output in the logs confirmed my suspicions, so it may be useful to others as well.

Jeff Bastian


--- fsset.py.orig       2007-12-10 18:33:19.000000000 -0500
+++ fsset.py    2007-12-10 18:33:03.000000000 -0500
@@ -2450,6 +2450,8 @@

     def setupDevice(self, chroot="/", devPrefix='/tmp', vgdevice = None):
         if not self.isSetup:
+            log.debug("lvcreate -L %dM -n %s -An %s"
+                      % (self.size, self.name, self.vgname))
             lvm.writeForceConf()
             rc = iutil.execWithRedirect("lvm",
                                         ["lvcreate", "-L",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]