summaryrefslogtreecommitdiff
path: root/src/crush/old_sample.txt
blob: 54cf06a7bc4ddbfde171ab52a1642c26bded9703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82

# first define our types
<types>
	<type osd>
	   type_id = 0
	</type>
	<type cab>
	   type_id = 2
	</type>
	<type row>
	   type_id = 3
	</type>
	<type pool>
	   type_id = 10
	</type>
</types>

# hierarchy
<devices>
	<osd osd001>
		id 1
		weight 500
	</osd>
	<osd osd002>
		id 2
		weight 500
	</osd>
	<osd osd003>
		id 3
		weight 500
	</osd>
	<osd osd004>
		id 4
		weight 500
	</osd>
	<osd osd005>
		id 5
		weight 500
	</osd>
</devices>

<buckets>
	<cab cab-d2>
		alg straw
		id   -12
		<item osd001/>
		<item osd002/>
		<item osd003/>
		<item osd004>
		      weight 600
		</item>
	</cab>
	
#	<pool newlayout>
#		<item satapool>
#			weight 1.0
#		</item>
#		<item fcpool>
#			weight 3.0
#		</item>
#	</pool>
</buckets>

<devices>
	<osd osd006>
		id 5
		weight 500
	</osd>
</devices>

# rules
<rules>
	<rule normal>
		pool 0
		type replicated
		min_size 1
		mix_size 4
		step take root
		step choose_indep 0 osd
		step emit
	</rule>
</rules>