Revision c64c3854
b/Makefile.am | ||
---|---|---|
867 | 867 |
man/footer.man man/footer.html $(mangen) |
868 | 868 |
|
869 | 869 |
TEST_FILES = \ |
870 |
htest/data/clean-nonzero-score.data \ |
|
870 | 871 |
htest/data/common-suffix.data \ |
871 | 872 |
htest/data/empty-cluster.data \ |
872 | 873 |
htest/data/hail-alloc-drbd.json \ |
b/htest/data/clean-nonzero-score.data | ||
---|---|---|
1 |
group-01|fake-uuid-01|preferred| |
|
2 |
|
|
3 |
node-01-001|91552|0|91424|953674|953674|16|N|fake-uuid-01|1 |
|
4 |
node-01-002|91552|0|91296|953674|953674|16|N|fake-uuid-01|1 |
|
5 |
node-01-003|91552|0|91296|953674|953674|16|N|fake-uuid-01|1 |
|
6 |
|
|
7 |
new-0|128|1024|1|running|Y|node-01-003||diskless||1 |
|
8 |
new-1|128|1024|1|running|Y|node-01-002||diskless||1 |
|
9 |
new-2|128|1024|1|running|Y|node-01-001||diskless||1 |
|
10 |
new-3|128|1024|1|running|Y|node-01-003||diskless||1 |
|
11 |
new-4|128|1024|1|running|Y|node-01-002||diskless||1 |
|
12 |
|
|
13 |
|
|
14 |
|128,1,1024,1,1,1|128,1,1024,1,1,1|32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0 |
|
15 |
group-01|128,1,1024,1,1,1|128,1,1024,1,1,1|32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0 |
b/htest/shelltests/htools-balancing.test | ||
---|---|---|
97 | 97 |
>>>2 |
98 | 98 |
>>>=0 |
99 | 99 |
|
100 |
# and hcheck should report this as needs rebalancing |
|
101 |
./htest/hcheck -t$TESTDATA_DIR/n1-failure.data |
|
102 |
>>>/Cluster needs rebalancing./ |
|
103 |
>>>= 1 |
|
104 |
|
|
105 |
# ... unless we request no-simulation mode |
|
106 |
./htest/hcheck -t$TESTDATA_DIR/n1-failure.data --no-simulation |
|
107 |
>>>/Running in no-simulation mode./ |
|
108 |
>>>= 0 |
|
109 |
|
|
110 |
# and a clean cluster should be reported as such |
|
111 |
./htest/hcheck $BACKEND_BAL_STD |
|
112 |
>>>/No need to rebalance cluster, no problems found./ |
|
113 |
>>>= 0 |
|
114 |
|
|
115 |
# ... and even one with non-zero score |
|
116 |
./htest/hcheck -t $TESTDATA_DIR/clean-nonzero-score.data |
|
117 |
>>>/No need to rebalance cluster, no problems found./ |
|
118 |
>>>= 0 |
|
119 |
|
|
100 | 120 |
# hbal should work on empty groups as well |
101 | 121 |
./htest/hbal -t$TESTDATA_DIR/n1-failure.data -G group-02 |
102 | 122 |
>>>/Group size 0 nodes, 0 instances/ |
Also available in: Unified diff