summaryrefslogtreecommitdiffstats
path: root/tools/toollib.h
diff options
context:
space:
mode:
authorJonathan Earl Brassow <jbrassow@redhat.com>2010-07-09 15:08:12 +0000
committerJonathan Earl Brassow <jbrassow@redhat.com>2010-07-09 15:08:12 +0000
commitaa5734f2a303c8bc192e31851c4f062cda90b6c0 (patch)
tree638db1230d1b337852080606e376fe006751ebbc /tools/toollib.h
parenta5fb2bbff3e0fca37a71a50c2f36cb4268e64509 (diff)
downloadlvm2-aa5734f2a303c8bc192e31851c4f062cda90b6c0.tar.gz
lvm2-aa5734f2a303c8bc192e31851c4f062cda90b6c0.tar.xz
lvm2-aa5734f2a303c8bc192e31851c4f062cda90b6c0.zip
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.
Diffstat (limited to 'tools/toollib.h')
0 files changed, 0 insertions, 0 deletions