<div dir="ltr">Hi @all,<div><br></div><div style>I've created a Distributed-Replicated Volume consisting of 4 bricks on</div><div style>2 servers.</div><div style><br></div><div style><font face="courier new, monospace"># gluster volume create glusterfs replica 2 transport tcp \</font></div>
<div style><font face="courier new, monospace">gluster0{0..1}:/srv/gluster/exp0 gluster0{0..1}:/srv/gluster/exp1</font></div><div><div><br></div><div style>Now I have the following very nice replication schema:</div><div style>
<br></div><div style><font face="courier new, monospace">+-------------+ +-------------+</font></div><div style><font face="courier new, monospace">| gluster00 | | gluster01 |</font></div><div style><font face="courier new, monospace">+-------------+ +-------------+</font></div>
<div style><font face="courier new, monospace">| exp0 | exp1 | | exp0 | exp1 |</font></div><div><font face="courier new, monospace">+------+------+ +------+------+</font></div><div><font face="courier new, monospace"> | | | |</font></div>
<div><font face="courier new, monospace"> +------+----------+ |</font></div><div style><font face="courier new, monospace"> | |</font></div><div><font face="courier new, monospace"> +-----------------+</font></div>
<div><font face="courier new, monospace"><br></font></div>If one HD goes down, I'm backed! I'm even backed if one server goes down!<br>Great! But how will it be if I just add another Server with two bricks and rebalance?<div style>
<span style="font-family:monospace"><br></span></div><div style><font face="monospace"># gluster volume add-brick glusterfs gluster02:/srv/gluster/exp{0..1}</font></div><div style><font face="monospace"># gluster volume rebalance glusterfs start</font></div>
<div style><span style="font-family:monospace"><br></span></div>The replication schema I obviously want is this:<div style><span style="font-family:monospace"><br></span></div><div style><div><font face="courier new, monospace">+-------------+ +-------------+ </font><font face="monospace">+-------------+</font></div>
<div><font face="courier new, monospace">| gluster00 | | gluster01 | </font><font face="monospace">| gluster02 |</font></div><div><font face="courier new, monospace">+-------------+ +-------------+ </font><font face="monospace">+-------------+</font></div>
<div><font face="courier new, monospace">| exp0 | exp1 | | exp0 | exp1 | </font><font face="monospace">| exp0 | exp1 |</font></div><div><font face="courier new, monospace">+------+------+ +------+------+ </font><font face="monospace">+------+------+</font></div>
<div><font face="courier new, monospace"> | | | </font><span style="font-family:monospace">| | |</span></div><div><font face="courier new, monospace"> | +----------+ +----------+ |</font></div>
<div><font face="courier new, monospace"> | |</font></div><div><font face="courier new, monospace"> +------------------------------------------+</font></div></div><div style>
<span style="font-family:monospace"><br></span></div>But I think I'll maybe get this one:<div style><span style="font-family:monospace"><br></span></div><div style><div><font face="monospace">+-------------+ +-------------+ +-------------+</font></div>
<div><font face="monospace">| gluster00 | | gluster01 | | gluster02 |</font></div><div><font face="monospace">+-------------+ +-------------+ +-------------+</font></div><div><font face="monospace">| exp0 | exp1 | | exp0 | exp1 | </font><span style="font-family:monospace">| exp0 | exp1 |</span></div>
<div><font face="monospace">+------+------+ +------+------+ +------+------+</font></div><div><font face="monospace"> | | | | | |</font></div><div><font face="monospace"> +------+----------+ | +-----+</font></div>
<div><font face="monospace"> | |</font></div><div><font face="monospace"> +-----------------+</font></div></div><div><font face="courier new, monospace"><br></font></div><div style><font face="courier new, monospace">So how can I get the schema I want? Is this even possible? The examples</font></div>
<div style><font face="courier new, monospace">in the </font><font face="monospace">official</font><font face="courier new, monospace"> </font><span style="font-family:monospace">'Admin Guide' are quite trivial and don't cover this</span></div>
<div style><span style="font-family:monospace">scenario.</span></div><div><br></div></div><div style>Cheers, Markus</div></div>