Commit c2d1129
authored
DAOS-15993 rebuild: for manual rebuilds do not eval self_heal (#17345)
Consider a quick maintenance scenario in which a daos_engine
is stopped briefly, and the administrator does not wish to have
the DAOS automatic recovery / rebuild mechanism occur. That is,
a pool map update (targets from UP_IN to DOWN) is to occur, the
pool to enter a degraded mode (still allowing ongoing I/O), and
NO rebuild to be triggered during this brief time window.
The above can be arranged by modifying the system or pool-specific
self_heal property value (to not set the rebuild bit), and then
stopping the engine.
Now also consider the conclusion of the maintenance that involes
re-starting the engine, and reintegrating that rank back into the pool.
It is most convenient to directly issue a dmg pool reintegrate command
from the maintenance state.
Before this change, manual administration commands such as
dmg pool exclude/reintegrate were prevented from triggering rebuilds
due to the pool self_heal property setting. However, the intention
of the self_heal (aka auto recovery) feature is to only apply
to automatic rebuilds.
With this change, the is_pool_rebuild_allowed() function is updated
to accept an indication of whether the self_heal checks are applicable.
Manual pool map update and rebuild cases supply false for this argument
(allowing those cases to result in a rebuild being scheduled).
Signed-off-by: Kenneth Cain <kenneth.cain@hpe.com>1 parent 22397f3 commit c2d1129
File tree
6 files changed
+59
-33
lines changed- src
- include/daos_srv
- pool
- rebuild
- tests/suite
6 files changed
+59
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
| 570 | + | |
571 | 571 | | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
| 572 | + | |
| 573 | + | |
576 | 574 | | |
577 | 575 | | |
578 | 576 | | |
579 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
580 | 580 | | |
581 | 581 | | |
| 582 | + | |
582 | 583 | | |
583 | 584 | | |
584 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
2577 | 2577 | | |
2578 | 2578 | | |
2579 | 2579 | | |
2580 | | - | |
| 2580 | + | |
| 2581 | + | |
2581 | 2582 | | |
2582 | 2583 | | |
2583 | 2584 | | |
| |||
7746 | 7747 | | |
7747 | 7748 | | |
7748 | 7749 | | |
7749 | | - | |
7750 | | - | |
7751 | | - | |
7752 | | - | |
7753 | | - | |
7754 | | - | |
7755 | | - | |
7756 | | - | |
7757 | | - | |
| 7750 | + | |
| 7751 | + | |
| 7752 | + | |
| 7753 | + | |
| 7754 | + | |
| 7755 | + | |
| 7756 | + | |
| 7757 | + | |
| 7758 | + | |
7758 | 7759 | | |
7759 | 7760 | | |
7760 | | - | |
| 7761 | + | |
7761 | 7762 | | |
7762 | 7763 | | |
7763 | | - | |
| 7764 | + | |
7764 | 7765 | | |
7765 | | - | |
| 7766 | + | |
| 7767 | + | |
7766 | 7768 | | |
7767 | 7769 | | |
7768 | 7770 | | |
| |||
7784 | 7786 | | |
7785 | 7787 | | |
7786 | 7788 | | |
| 7789 | + | |
7787 | 7790 | | |
7788 | 7791 | | |
7789 | 7792 | | |
| |||
7804 | 7807 | | |
7805 | 7808 | | |
7806 | 7809 | | |
7807 | | - | |
| 7810 | + | |
7808 | 7811 | | |
7809 | 7812 | | |
7810 | 7813 | | |
7811 | 7814 | | |
7812 | 7815 | | |
7813 | 7816 | | |
7814 | | - | |
| 7817 | + | |
7815 | 7818 | | |
7816 | 7819 | | |
7817 | 7820 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2614 | 2614 | | |
2615 | 2615 | | |
2616 | 2616 | | |
2617 | | - | |
2618 | | - | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
2619 | 2620 | | |
2620 | 2621 | | |
2621 | | - | |
| 2622 | + | |
2622 | 2623 | | |
2623 | 2624 | | |
2624 | 2625 | | |
2625 | 2626 | | |
2626 | 2627 | | |
2627 | 2628 | | |
2628 | 2629 | | |
2629 | | - | |
| 2630 | + | |
2630 | 2631 | | |
2631 | 2632 | | |
2632 | 2633 | | |
| |||
2648 | 2649 | | |
2649 | 2650 | | |
2650 | 2651 | | |
2651 | | - | |
2652 | 2652 | | |
2653 | | - | |
2654 | | - | |
| 2653 | + | |
2655 | 2654 | | |
2656 | 2655 | | |
2657 | 2656 | | |
| |||
2662 | 2661 | | |
2663 | 2662 | | |
2664 | 2663 | | |
2665 | | - | |
| 2664 | + | |
2666 | 2665 | | |
2667 | 2666 | | |
2668 | 2667 | | |
| |||
2699 | 2698 | | |
2700 | 2699 | | |
2701 | 2700 | | |
2702 | | - | |
| 2701 | + | |
| 2702 | + | |
2703 | 2703 | | |
2704 | 2704 | | |
2705 | 2705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
59 | 70 | | |
60 | 71 | | |
61 | 72 | | |
| |||
74 | 85 | | |
75 | 86 | | |
76 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
77 | 93 | | |
78 | 94 | | |
79 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
| |||
0 commit comments