Revision 6b502fa3
b/Makefile.am | ||
---|---|---|
972 | 972 |
test/data/htools/hail-reloc-drbd.json \ |
973 | 973 |
test/data/htools/hbal-excl-tags.data \ |
974 | 974 |
test/data/htools/hbal-split-insts.data \ |
975 |
test/data/htools/hspace-tiered-ipolicy.data \ |
|
975 | 976 |
test/data/htools/invalid-node.data \ |
976 | 977 |
test/data/htools/missing-resources.data \ |
977 | 978 |
test/data/htools/n1-failure.data \ |
b/test/data/htools/hspace-tiered-ipolicy.data | ||
---|---|---|
1 |
group-01|fake-uuid-01|preferred| |
|
2 |
|
|
3 |
node-01-001|2000|200|1800|4300|4300|8|N|fake-uuid-01 |
|
4 |
node-01-002|2000|4|1996|3900|3900|8|N|fake-uuid-01 |
|
5 |
node-01-003|2000|4|1996|3900|3900|8|N|fake-uuid-01 |
|
6 |
node-01-004|2000|4|1996|3900|3900|8|N|fake-uuid-01 |
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|936,4,1064,1,1,1|900,4,2200,1,1,1|1000,4,2600,16,8,12|plain,diskless,file,sharedfile,blockdev,drbd,rbd,ext|4.0|32.0 |
|
11 |
group-01|900,4,2200,1,1,1|900,4,2200,1,1,1|1000,4,2600,16,8,12|plain,diskless,file,sharedfile,blockdev,drbd,rbd,ext|4.0|32.0 |
b/test/hs/shelltests/htools-hspace.test | ||
---|---|---|
6 | 6 |
# test again via a file and shell parsing |
7 | 7 |
./test/hs/hspace --simu p,4,8T,64g,16 --machine-readable --disk-template drbd -l 8 > $T/capacity && sh -c ". $T/capacity && test x\$HTS_OK = x1" |
8 | 8 |
>>>= 0 |
9 |
|
|
10 |
# Verify that instance policy for disks is adhered to |
|
11 |
./test/hs/hspace --machine-readable -t $TESTDATA_DIR/hspace-tiered-ipolicy.data |
|
12 |
>>>/HTS_TRL_INST_CNT=4/ |
|
13 |
>>>=0 |
|
14 |
|
|
15 |
# ...and instance positioning in human-readable form |
|
16 |
./test/hs/hspace -pname,pcnt -t $TESTDATA_DIR/hspace-tiered-ipolicy.data |
|
17 |
>>>2/Tiered allocation status: |
|
18 |
Name pcnt |
|
19 |
node-01-001 1 |
|
20 |
node-01-002 1 |
|
21 |
node-01-003 1 |
|
22 |
node-01-004 1/ |
|
23 |
>>>=0 |
|
24 |
|
Also available in: Unified diff