[linux-lvm] building debug versions of lvm cli utilities

Michael Jensen beachhangar at yahoo.com
Sat Nov 29 23:46:56 UTC 2008

Very helpful - thanks Jason
Not trying to kill any bugs, just want to follow the activites of utilities like pvscan and pvdisplay and display variable contents at certain points in the programs execution.  
Trying to get a clone (storage created) of a LVM mounted volume (production - can't dismount) to be recognized as a different PV.  It doesn't appear that I can use the existing utilities to change the uuid and VG name, etc as long as another instance of that volume is known and mounted by LVM.  If its possible to do this on the same system while the original remains mounted - that would be a great solution.
Thinking that I can programatically edit the uuid and names and then run a pvscan and have it picked up by LVM.

--- On Sat, 11/29/08, Jayson Vantuyl <kagato at souja.net> wrote:

From: Jayson Vantuyl <kagato at souja.net>
Subject: Re: [linux-lvm] building debug versions of lvm cli utilities
To: beachhangar at yahoo.com, "LVM general discussion and development" <linux-lvm at redhat.com>
Date: Saturday, November 29, 2008, 6:55 AM

The utilities run in userspace.  They communicate with devicemapper, which does all of the kernelspace heavy-lifting.

I've generally found that I can track down a lot of issues with strace as well, if you're just looking to see what they do to the system (i.e. if you're not adding functionality or hunting a really deep bug).

On Nov 28, 2008, at 3:42 PM, Michael Jensen wrote:

I would like to know what the general procedure would be to create gdb (debug) versions of several LVM utilities - pvscan, pvdisplay.
I am using RH 4.7 and have the sources.
Can I use the kernel based on the distributed binaries?
compile the sources and do a make with the appropriate options?
Then invoke the debug version of the utility with a dbg command?
Not sure if the utilities run in user or kernel space ?
linux-lvm mailing list
linux-lvm at redhat.com
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Jayson Vantuyl
kagato at souja.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20081129/dae84343/attachment.htm>

More information about the linux-lvm mailing list