<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Very helpful - thanks Jason</DIV>
<DIV> </DIV>
<DIV>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.  </DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>Thinking that I can programatically edit the uuid and names and then run a pvscan and have it picked up by LVM.</DIV>
<DIV> </DIV>
<DIV><BR><BR>--- On <B>Sat, 11/29/08, Jayson Vantuyl <I><kagato@souja.net></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From: Jayson Vantuyl <kagato@souja.net><BR>Subject: Re: [linux-lvm] building debug versions of lvm cli utilities<BR>To: beachhangar@yahoo.com, "LVM general discussion and development" <linux-lvm@redhat.com><BR>Date: Saturday, November 29, 2008, 6:55 AM<BR><BR>
<DIV id=yiv1894261325>The utilities run in userspace.  They communicate with devicemapper, which does all of the kernelspace heavy-lifting.
<DIV><BR></DIV>
<DIV>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).</DIV>
<DIV><BR>
<DIV>
<DIV>On Nov 28, 2008, at 3:42 PM, Michael Jensen wrote:</DIV><BR class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>I would like to know what the general procedure would be to create gdb (debug) versions of several LVM utilities - pvscan, pvdisplay.</DIV>
<DIV> </DIV>
<DIV>I am using RH 4.7 and have the sources.</DIV>
<DIV> </DIV>
<DIV>Can I use the kernel based on the distributed binaries?</DIV>
<DIV> </DIV>
<DIV>compile the sources and do a make with the appropriate options?</DIV>
<DIV> </DIV>
<DIV>Then invoke the debug version of the utility with a dbg command?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Not sure if the utilities run in user or kernel space ?</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>Mike</DIV>
<DIV> </DIV></TD></TR></TBODY></TABLE><BR>_______________________________________________<BR>linux-lvm mailing list<BR><A href="mailto:linux-lvm@redhat.com" target=_blank rel=nofollow>linux-lvm@redhat.com</A><BR>https://www.redhat.com/mailman/listinfo/linux-lvm<BR>read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/</BLOCKQUOTE></DIV></DIV><BR>
<DIV><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; orphans: 2; widows: 2">
<DIV style="WORD-WRAP: break-word"><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; orphans: 2; widows: 2">
<DIV>-- </DIV>
<DIV>Jayson Vantuyl</DIV>
<DIV><A href="mailto:kagato@souja.net" target=_blank rel=nofollow>kagato@souja.net</A></DIV>
<DIV><BR class=khtml-block-placeholder></DIV><BR class=Apple-interchange-newline></SPAN></DIV></SPAN></DIV><BR></DIV></BLOCKQUOTE></td></tr></table><br>