1 | ### Cloud Server ### |
---|
2 | volume brick1 |
---|
3 | type storage/posix |
---|
4 | option directory /home/b1 |
---|
5 | end-volume |
---|
6 | |
---|
7 | volume brick2 |
---|
8 | type storage/posix |
---|
9 | option directory /home/b2 |
---|
10 | end-volume |
---|
11 | |
---|
12 | volume server |
---|
13 | type protocol/server |
---|
14 | subvolumes brick1 brick2 |
---|
15 | option transport-type tcp/server # For TCP/IP transport |
---|
16 | option auth.ip.brick1.allow 192.168.1.* |
---|
17 | option auth.ip.brick2.allow 192.168.1.* |
---|
18 | end-volume |
---|
19 | |
---|
20 | ### Client ### |
---|
21 | ##Cloud## |
---|
22 | volume client1 |
---|
23 | type protocol/client |
---|
24 | option transport-type tcp/client |
---|
25 | option remote-host Cloud0 |
---|
26 | option remote-subvolume brick1 |
---|
27 | end-volume |
---|
28 | |
---|
29 | volume client2 |
---|
30 | type protocol/client |
---|
31 | option transport-type tcp/client |
---|
32 | option remote-host Cloud0 |
---|
33 | option remote-subvolume brick2 |
---|
34 | end-volume |
---|
35 | |
---|
36 | ##Cloud1## |
---|
37 | volume client3 |
---|
38 | type protocol/client |
---|
39 | option transport-type tcp/client |
---|
40 | option remote-host Cloud1 |
---|
41 | option remote-subvolume brick |
---|
42 | end-volume |
---|
43 | |
---|
44 | ##Cloud2## |
---|
45 | volume client4 |
---|
46 | type protocol/client |
---|
47 | option transport-type tcp/client |
---|
48 | option remote-host Cloud2 |
---|
49 | option remote-subvolume brick |
---|
50 | end-volume |
---|
51 | |
---|
52 | volume stripe0 |
---|
53 | type cluster/stripe |
---|
54 | option block-size *:1MB |
---|
55 | subvolumes client1 client2 client3 client4 |
---|
56 | end-volume |
---|