does anyone know of any good resources (for someone unfamiliar with the lvm source code) for manipulating on-disk metadata such as pv uuid's? or perhaps just documentation on the format of vgda's so i can go in and change these fields manually?
i have a low level copy routine (think dd) that copies one entire physical volume byte for byte to another. what i want to do is use this routine to copy all the pv's in a logical volume and have the linux lvm recognize the lv copy without problems. for sure, i'm gonna have to create new pv uuid's for the copies, and update those fields in several locations. but is that all that needs to be updated? any comments are greatly appreciated...