<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 22, 2012, at 11:40 AM, Vic wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><blockquote type="cite"><br class="Apple-interchange-newline">Ideally you'd want the initramfs scripts to carry out the same actions<br></blockquote><blockquote type="cite">as the defined mirror repair policy during startup (or to invoke<br></blockquote><blockquote type="cite">lvconvert --repair to do the same).<br></blockquote><br>Well, we can call it Somebody Else's Problem, or perhaps LVM should be<br>able to use a broken mirror - that's how every other mirror system works,<br>and is generally the very reason for having a mirror at all. I consider<br>this to be a bug within LVM.<br></span></blockquote></div><br><div>LVM requires that for an LV to be activated while there are missing PVs, the '--partial' flag must be used.  If the script running vgchange does not include '--partial', your mirror won't be activated.</div><div><br></div><div>There are also 2 different ways of doing mirroring in LVM now also.  You can choose the 'mirror' segment type or the 'raid1' segment type.  The 'raid1' segment type is a newer offering, but leverages the MD RAID1 personality.  The critical difference between the two is that 'raid1' can operate while there is a faulty device present and the 'mirror' segment type must have something intervene and remove/replace the failed device before it will allow I/O.</div><div><br></div><div>It seems to me that the solution might be to attempt to activate the volume group without the partial flag first.  Failing that, activate any 'raid1' LV with a --partial flag and repair and activate any 'mirror' LVs.</div><div><br></div><div> brassow</div></body></html>