[linux-lvm] cmp of inactive mirrored LV fails
Stuart D. Gathman
stuart at bmsi.com
Fri Dec 2 21:01:01 UTC 2011
Centuries ago, Nostradamus foresaw that on Dec 2, starlight at binnacle.cx...:
> After a little digging discovered and ran 'debugfs'
> and used the 'testb' command to determine that the
> mirror mismatch blocks are "not in use".
> So that's good.
> However I am rather disturbed that LVM
> mirroring appears to have bugs that allow
> images to become out-of-sync.
This is not necessarily a bug. Both MD and LVM support
DISCARD, and discarded blocks are not necessarily synced
between mirror legs. The same thing happens with MD,
and the MD "cmp" operation reports the number of blocks
out of sync, but not which blocks! (So LVM is actually
an improvement on that score.) Swap volumes make
heavy use of DISCARD and are especially likely to
have blocks out of sync.
> Have read that MD is the only way to go
> with any kind of RAID and now I see that
> is true. If anyone can explain what
> happened here in any positive light I'd
> be interested in hearing about it. For
> now I see LVM mirroring as a turkey that
> should be avoided.
Yes, I still consider LVM mirroring as
experimental (but not a "turkey"). I
especially don't like the way the mirror
log works. I was spoiled by AIX LVM mirroring.
Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
More information about the linux-lvm