<div dir="ltr">Thanks!!!<div><br></div><div>Daniele</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-21 13:30 GMT+01:00 Ravishankar N <span dir="ltr">&lt;<a href="mailto:ravishankar@redhat.com" target="_blank">ravishankar@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <div class="m_-8179929933774101017moz-cite-prefix">On 02/21/2017 05:17 PM, Nithya
      Balachandran wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>Ideally, both bricks in a replica set should be of the same
          size.</div>
        <div><br>
        </div>
        <div>Ravi, can you confirm?</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br></span>
    Yes, correct.<br>
    -Ravi<div><div class="h5"><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>Regards,</div>
        <div>Nithya</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 21 February 2017 at 16:05, Daniele
          Antolini <span dir="ltr">&lt;<a href="mailto:lantuin@gmail.com" target="_blank">lantuin@gmail.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 dir="ltr">Hi Serkan, 
              <div><br>
              </div>
              <div>thanks a lot for the answer.</div>
              <div><br>
              </div>
              <div>So, if you are correct, in a distributed with replica
                environment the best practice is to pair nodes with the
                smallest size together?</div>
              <div><br>
              </div>
              <div>For example:</div>
              <div><br>
              </div>
              <div>node1      1 GB</div>
              <div>node2     10 GB</div>
              <div>node3      4 GB</div>
              <div>node4     8 GB</div>
              <div>node5     15 GB</div>
              <div>node6     7 GB</div>
              <div><br>
              </div>
              <div>So:</div>
              <div><br>
              </div>
              <div>node1 with node3 (smallest is 1 GB)</div>
              <div>node4 with node6 (smallest is 7 GB)</div>
              <div>node2 with node5 (smallest is 10 GB)</div>
              <div><br>
              </div>
              <div>The command to launch:</div>
              <div><br>
              </div>
              <div><span style="color:rgb(80,0,80);font-size:12.8px">gluster
                  volume create gv0 replica 2 node1:/opt/data/gv0</span><span style="color:rgb(80,0,80);font-size:12.8px"> node3:/opt<wbr>/data/gv0
                  node4:/opt/data/gv0 node6:/opt/data/gv0
                  node2:/opt/data/gv0 node5:/opt/data/gv0</span><br>
              </div>
              <div><span style="color:rgb(80,0,80);font-size:12.8px"><br>
                </span></div>
              <div><font color="#500050"><span style="font-size:12.8px">Right?
                    In this way I should have 18 GB of free space on the
                    mounted volume (1 GB + 7 GB + 10 GB)</span></font></div>
              <div><font color="#500050"><span style="font-size:12.8px"><br>
                  </span></font></div>
              <div><font color="#500050"><span style="font-size:12.8px"><br>
                  </span></font></div>
            </div>
            <div class="m_-8179929933774101017HOEnZb">
              <div class="m_-8179929933774101017h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">2017-02-21 11:30 GMT+01:00
                    Serkan Çoban <span dir="ltr">&lt;<a href="mailto:cobanserkan@gmail.com" target="_blank">cobanserkan@gmail.com</a>&gt;</span>:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I
                      think, gluster1 and gluster2 became a replica
                      pair. Smallest size<br>
                      between them is affective size (1GB)<br>
                      Same for gluster3 and gluster4 (3GB). Total 4GB
                      space available. This<br>
                      is just a guest though..<br>
                      <div>
                        <div class="m_-8179929933774101017m_-1846375046892647323h5"><br>
                          On Tue, Feb 21, 2017 at 1:18 PM, Daniele
                          Antolini &lt;<a href="mailto:lantuin@gmail.com" target="_blank">lantuin@gmail.com</a>&gt;
                          wrote:<br>
                          &gt; Hi all,<br>
                          &gt;<br>
                          &gt; first of all, nice to meet you. I&#39;m new
                          here and I&#39;m subscribing to do a<br>
                          &gt; very simple question.<br>
                          &gt;<br>
                          &gt; I don&#39;t understand completely how, in a
                          distributed with replica<br>
                          &gt; environment, heterogeneous bricks are
                          involved.<br>
                          &gt;<br>
                          &gt; I&#39;ve just done a test with four bricks:<br>
                          &gt;<br>
                          &gt; gluster1    1 GB<br>
                          &gt; gluster2    2 GB<br>
                          &gt; gluster3    5 GB<br>
                          &gt; gluster4    3 GB<br>
                          &gt;<br>
                          &gt; Each partition is mounted locally at
                          /opt/data<br>
                          &gt;<br>
                          &gt; I&#39;ve created a gluster volume with:<br>
                          &gt;<br>
                          &gt; gluster volume create gv0 replica 2
                          gluster1:/opt/data/gv0<br>
                          &gt; gluster2:/opt/data/gv0
                          gluster3:/opt/data/gv0 gluster4:/opt/data/gv0<br>
                          &gt;<br>
                          &gt; and then mounted on a client:<br>
                          &gt;<br>
                          &gt; testgfs1:/gv0               4,0G   65M   
                          4,0G   2% /mnt/test<br>
                          &gt;<br>
                          &gt; I see 4 GB of free space but I cannot
                          understand how this space has been<br>
                          &gt; allocated.<br>
                          &gt; Can please someone explain to me how this
                          can happened?<br>
                          &gt;<br>
                          &gt; Thanks a lot<br>
                          &gt;<br>
                          &gt; Daniele<br>
                          &gt;<br>
                          &gt;<br>
                          &gt;<br>
                          &gt;<br>
                        </div>
                      </div>
                      &gt; ______________________________<wbr>_________________<br>
                      &gt; Gluster-users mailing list<br>
                      &gt; <a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
                      &gt; <a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/mailm<wbr>an/listinfo/gluster-users</a><br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            Gluster-users mailing list<br>
            <a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
            <a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/mailm<wbr>an/listinfo/gluster-users</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="m_-8179929933774101017mimeAttachmentHeader"></fieldset>
      <br>
      <pre>______________________________<wbr>_________________
Gluster-users mailing list
<a class="m_-8179929933774101017moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>
<a class="m_-8179929933774101017moz-txt-link-freetext" href="http://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <p><br>
    </p>
  </div></div></div>

</blockquote></div><br></div>