<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hello, I'm deep into debugging an issue we have with a disk driver of ours and LVM.<br><br></div>Long story short: <br></div><br></div>create vg -> seqno 1<br></div>create lv1 -> seqno 2<br></div>create lv2 -> seqno 3<br></div>create lv3 -> seqno 4<br></div><div>create lv4 -> seqno 5<br></div><clear our device cache> (note, this generates no IO)<br></div>vgdisplay: seqno = 4, lv4 is missing<br><br></div><div>* This happens only after dozens to hundreds of iterations. Most of the time it is fine.<br></div><div><br></div><div>I dd all the metadata blocks off of the pv, yep, seqno5 is on disk metadata area perfectly fine. But the system believes 4 is the current version. Shouldn't the system be using the highest value? Or is it stored somewhere? What mechanism is responsible for changing the seqno? And where does it change it? (Not the metadata contents, just the number)<br><br></div><div>Thanks, <br><br></div><div>Aaron<br></div></div>