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@souja.net> wrote:
From: Jayson Vantuyl <kagato@souja.net> Subject: Re: building debug versions of lvm cli utilities To: beachhangar@yahoo.com, "LVM general discussion and development" <linux-lvm@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 ?
Thanks,
Mike
| _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
|
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/