<div>Hi All,</div>
<div> </div>
<div>Basically, I have an upgrade script for a system that breaks md mirrors and then constructs a chroot from the broken off members (i.e in this case partitions on /dev/sdb) and does the upgrade in this chroot.   The end result is that until the reboot applications on this system can remain running while the chroot is being updated (much hand waving at this point).
</div>
<div>This works fine if LVM riding on top of md does not enter the equation.</div>
<div> </div>
<div>Now I have to contend with LVM, and it occured to me that after the mirror was broken I would in this chroot I would need to somehow reconstruct all the LVM stuff (pv's, vg's and lv's) with the pv now being a partition on /dev/sdb instead of some md device, because the current volume group was built on top of an md device for a physical volume and thus would only give me the active system no matter what I tried (or not work at all).
</div>
<div> </div>
<div>So how does one do this without destroying data?  And futhermore am I not seeing things clearly and am missing some important point?</div>
<div> </div>
<div>Thanks...james</div>