Skip to contentSkip to conversation

dm-multipath: failback problem.

PATCH Benjamin Marzinski 2 participants 2 messages Feb 16, 2006 – Feb 17, 2006 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

If the failback period is set to more that four times the polling interval, paths will never fail back. This is because the failback_tick keeps getting reet. The attached patch fixes this.

multipathd/main.c +2 -1
diff -urpN mp-devel-clean/multipathd/main.c mp-devel-patched/multipathd/main.c
@@ -1265,7 +1265,8 @@ checkerloop (void *ap)
 			pathinfo(pp, conf->hwtable, DI_PRIO);
 
 			if (need_switch_pathgroup(pp->mpp, 0)) {
-				if (pp->mpp->pgfailback > 0)
+				if (pp->mpp->pgfailback > 0 &&
+				    pp->mpp->failback_tick <= 0)
 					pp->mpp->failback_tick =
 						pp->mpp->pgfailback + 1;
 				else if (pp->mpp->pgfailback ==
#1 lore raw
Quoted 4 lines · Benjamin Marzinski

If the failback period is set to more that four times the polling interval, paths will never fail back. This is because the failback_tick keeps getting reet. The attached patch fixes this.
--

Correct. Applied with thanks.

Regards,
cvaroqui