<div dir="ltr"><div><div><div><div>Distributed is the default, and replicated distributes as long as there are at least twice the number of bricks as your replication level.<br></div><br>For example...<br><br>gluster volume create gv0 server1:/data/brick1/gv0 server2:/data/brick1/gv0 server3:/data/brick1/gv0<br></div><div>...distributes files across all three servers/bricks.<br></div><div><br>gluster volume create gv0 replica 3 server1:/data/brick1/gv0 server2:/data/brick1/gv0 server3:/data/brick1/gv0<br></div>...creates a volume across the servers/bricks with 3 replicas. As there are only 3 servers/bricks, there is nothing to distribute to.<br><br>gluster volume create gv0 replica 2 server1:/data/brick1/gv0 server2:/data/brick1/gv0 server3:/data/brick1/gv0 server4:/data/brick1/gv0<br></div>...distributes files across server1 &amp; server2, &amp; replicates server1 to server3 &amp; server2 to server4. (This is purely an example though, as this particular config would then be vulnerable to split-brain).<br><br></div>D<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 February 2017 at 06:12, Dave Fan <span dir="ltr">&lt;<a href="mailto:dave.fan@shudun.com" target="_blank">dave.fan@shudun.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,</div><div><br></div><div>I&#39;m new to Gluster so a very basic question. Are all volumes distributed by default? Is there a switch to turn this feature on/off?</div><div><br></div><div>I ask this because in an intro to Gluster I saw &quot;Replicated Volume&quot; and &quot;Distributed Replicated Volume&quot;. Is the first type, &quot;Replicated Volume&quot;, not distributed?</div><div><br></div><div>Many thanks,</div><div>Dave</div><div><u></u><u></u></div><br>______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>