[CentOS] Reconstructing duplicate lvm

James Olin Oden james.oden at gmail.com
Tue Oct 11 13:29:55 UTC 2005


Hi All,
 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).
This works fine if LVM riding on top of md does not enter the equation.
 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).
 So how does one do this without destroying data? And futhermore am I not
seeing things clearly and am missing some important point?
 Thanks...james
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20051011/6a9d6746/attachment.htm


More information about the CentOS mailing list