Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora User (http://www.linux-archive.org/fedora-user/)
-   -   log lvcreate commands (http://www.linux-archive.org/fedora-user/16709-log-lvcreate-commands.html)

Jeff Bastian 12-10-2007 10:34 PM

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",

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 12:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.