my simple aim is a clustered system providing RAID 1+0 like functionality. now there are two schemes provided by my friend (a novice too). in my opinion, the sheme 2 would work well. but i haven't test them. so anyone here could tell me what sheme is right/wrong/better,and why??!! thanks in advance.
## scheme 1 ### server 1 (192.168.1.11) => brick (only one exported directory) server 2 (192.168.1.11) => brcik server 3 (192.168.1.11) => brick
client (192.168.1.10)
and volume filese are as follows: ###################################################### # volume files on servers are same volume posix type storage/posix
option directory /home/brick end-volume
volume brick type features/posix-locks subvolumes posix end-volume
server 1 (192.168.1.11) => brick1 + brick2 (there are two exported directory on each server)
server 2 (192.168.1.11) => brcik3 + brick4 server 3 (192.168.1.11) => brick5 + brick6 client (192.168.1.10)
### volume files of servers (they are similiar) # on server 1
volume posix1 type storage/posix option directory /home/brick1 end-volume
volume brick1 type features/posix-locks subvolumes posix1 end-volume
volume posix2 type storage/posix
option directory /home/brick2 end-volume
volume brick2 type features/posix-locks subvolumes posix2 end-volume
################### ## volume file on client # brick1 on server 1 volume brick1 type protocol/client option transport-type tcp/client option remote-host 192.168.1.11 option remote-port 6996
option remote-subvolume brick1 end-volume
# brick2 on server 1 volume brick2 type protocol/client option transport-type tcp/client option remote-host 192.168.1.11 option remote-port 6996
option remote-subvolume brick2 end-volume
# brick3 on server 2 volume brick3 type protocol/client option transport-type tcp/client option remote-host 192.168.1.12 option remote-port 6996
option remote-subvolume brick3 end-volume
# brick4 on server 2 volume brick4 type protocol/client option transport-type tcp/client option remote-host 192.168.1.12 option remote-port 6996
option remote-subvolume brick4 end-volume
# brick5 on server 3 volume brick5 type protocol/client option transport-type tcp/client option remote-host 192.168.1.13 option remote-port 6996
option remote-subvolume brick5 end-volume
# brick6 on server 3 volume brick6 type protocol/client option transport-type tcp/client option remote-host 192.168.1.13 option remote-port 6996
option remote-subvolume brick6 end-volume
############################################### ## configuration of all 3 replicated bricks ###############################################
# a mirror between server 1 (exported dir is afr1-1)
# and server 2 (exported dir is afr2-1) # afr1 <-- brick1 + brick3 volume afr1 type cluster/afr subvolumes brick1 brick3 end-volume