mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
In resume_mirror_images replace activate_lv with resume_lv as workaround.
(The resume has the side-effect of resuming all of the original mirror's sub-lvs in addition to the new 'error' target middle layer.)
This commit is contained in:
parent
08b959a50b
commit
3935c3ecd6
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.41 -
|
Version 2.02.41 -
|
||||||
=====================================
|
=====================================
|
||||||
|
In resume_mirror_images replace activate_lv with resume_lv as workaround.
|
||||||
Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE.
|
Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE.
|
||||||
Fix snapshot monitoring library to not cancel monitoring invalid snapshot.
|
Fix snapshot monitoring library to not cancel monitoring invalid snapshot.
|
||||||
Generate man pages from templates and include version.
|
Generate man pages from templates and include version.
|
||||||
|
@ -598,13 +598,13 @@ static int _remove_mirror_images(struct logical_volume *lv,
|
|||||||
log_very_verbose("Updating \"%s\" in kernel", mirrored_seg->lv->name);
|
log_very_verbose("Updating \"%s\" in kernel", mirrored_seg->lv->name);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Avoid having same mirror target loaded twice simultaneouly by first
|
* Avoid having same mirror target loaded twice simultaneously by first
|
||||||
* activating the removed LV which now contains an error segment.
|
* resuming the removed LV which now contains an error segment.
|
||||||
* As it's now detached from mirrored_seg->lv we must activate it
|
* As it's now detached from mirrored_seg->lv we must resume it
|
||||||
* explicitly.
|
* explicitly.
|
||||||
*/
|
*/
|
||||||
if (lv1 && !activate_lv(lv1->vg->cmd, lv1)) {
|
if (lv1 && !resume_lv(lv1->vg->cmd, lv1)) {
|
||||||
log_error("Problem reactivating removed %s", lv1->name);
|
log_error("Problem resuming temporary LV, %s", lv1->name);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user