]> sourceware.org Git - lvm2.git/commit
Finish fix for bug 607347: failing both redundant mirror log legs...
authorJonathan Earl Brassow <jbrassow@redhat.com>
Fri, 9 Jul 2010 15:08:12 +0000 (15:08 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Fri, 9 Jul 2010 15:08:12 +0000 (15:08 +0000)
commit0b18937cbe98e1e52a321a8f22ec4a44cd9cf6be
tree638db1230d1b337852080606e376fe006751ebbc
parent264091a239bde2f397e7aaaba4b8c164c8f474be
Finish fix for bug 607347: failing both redundant mirror log legs...

A previous check-in added logic to handle the case where both images
of a mirrored log failed.  It solved the problem by simply removing
the log entirely - leaving the parent mirror with a 'core' log.  This
worked for most cases.  However, if there was a small delay between
the failures of the two mirrored log devices, the mirror would hang,
LVM would hang, and no additional LVM commands could be issued.

When the first leg of the log fails, it signals the need for repair.
Before 'lvconvert --repair' is run by dmeventd, the second leg fails.
'lvconvert' would see both devices as failed and try to remove the
log entirely.  When it came time to suspend the parent mirror to
update the configuration, the suspend would hang because it couldn't
get any I/O through the mirrored log, which was plugged waiting for
corrective action.  The solution is to replace the log with an error
target to clear any pending writes before removing it.  This allows
the parent mirror to suspend and make the proper changes.
WHATS_NEW
lib/metadata/mirror.c
This page took 0.034492 seconds and 5 git commands to generate.