mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Replicator: update activate code for vgchange
Activate only the first replicator-dev LV, that activates all other related LVs from Replicator. In case of error during this activation, it will not retry again for other heads (less confusing error log).
This commit is contained in:
parent
591fc4d2d1
commit
8eed925e17
@ -1,5 +1,6 @@
|
||||
Version 2.02.67 -
|
||||
===============================
|
||||
Activate only first head of Replicator for vgchange -ay.
|
||||
Add Replicators' LVs to dtree for activation.
|
||||
Avoid print activation message if there is a missing VG (Replicator).
|
||||
Fixed scripts/relpath.awk to work in mawk
|
||||
|
@ -104,6 +104,11 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd,
|
||||
if ((lv->status & MIRROR_IMAGE) || (lv->status & MIRROR_LOG))
|
||||
continue;
|
||||
|
||||
/* Only request activation of the first replicator-dev LV */
|
||||
/* Avoids retry with all heads in case of failure */
|
||||
if (lv_is_replicator_dev(lv) && (lv != first_replicator_dev(lv)))
|
||||
continue;
|
||||
|
||||
/* Can't deactivate a pvmove LV */
|
||||
/* FIXME There needs to be a controlled way of doing this */
|
||||
if (((activate == CHANGE_AN) || (activate == CHANGE_ALN)) &&
|
||||
|
Loading…
Reference in New Issue
Block a user