<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Geo-replication uses rsync with --inplace option to retain same
      GFID. Rsync will not allow to use both -S and --inplace option. <br>
      <br>
      Tar+SSH mode is sparse aware. (gluster volume geo-replication
      &lt;MASTER&gt; &lt;SLAVEHOST&gt;::&lt;SLAVEVOL&gt; config use_tarssh
      True)<br>
      <br>
    </tt>
    <pre class="moz-signature" cols="72">regards
Aravinda</pre>
    <div class="moz-cite-prefix">On 08/08/2016 05:35 PM, Wei-Ming Lin
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAM49+sOJyBqKXihA9VG1HNcFKCohnT956gsQD1x9PYzsAL4Zog@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>HI ALL, </div>
        <div><br>
        </div>
        <div>I create a geo-rep between two volumes, detail as follow: </div>
        <div><br>
        </div>
        <div>SRC volume info: </div>
        <div><br>
        </div>
        <div>
          <div>Volume Name: ivan</div>
          <div>Type: Disperse</div>
          <div>Volume ID: 6c4a1a7c-0516-47c4-a298-dabf00dd268c</div>
          <div>Status: Started</div>
          <div>Number of Bricks: 1 x (2 + 1) = 3</div>
          <div>Transport-type: tcp</div>
          <div>Bricks:</div>
          <div>Brick1: giting4:/export/ivan1</div>
          <div>Brick2: giting5:/export/ivan1</div>
          <div>Brick3: giting6:/export/ivan1</div>
          <div>Options Reconfigured:</div>
          <div>changelog.changelog: on</div>
          <div>geo-replication.ignore-pid-check: on</div>
          <div>geo-replication.indexing: on</div>
          <div>performance.readdir-ahead: on</div>
        </div>
        <div><br>
        </div>
        <div>TAR volume info:</div>
        <div><br>
        </div>
        <div>
          <div>Volume Name: tar</div>
          <div>Type: Disperse</div>
          <div>Volume ID: e5147094-bd19-4b41-ae12-f6b84a89a18b</div>
          <div>Status: Started</div>
          <div>Number of Bricks: 1 x (2 + 1) = 3</div>
          <div>Transport-type: tcp</div>
          <div>Bricks:</div>
          <div>Brick1: giting1:/export/ec1/fs</div>
          <div>Brick2: giting2:/export/ec1/fs</div>
          <div>Brick3: giting3:/export/ec1/fs</div>
          <div>Options Reconfigured:</div>
          <div>performance.readdir-ahead: on</div>
          <div>cluster.enable-shared-storage: enable</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>RR status: </div>
        <div>[root@giting4 ivan]# gluster volume geo-replication ivan
          giting1::tar status</div>
        <div><br>
        </div>
        <div>MASTER NODE    MASTER VOL    MASTER BRICK     SLAVE USER  
           SLAVE           SLAVE NODE    STATUS     CRAWL STATUS      
          LAST_SYNCED</div>
        <div>------------------------------------------------------------------------------------------------------------------------------------------</div>
        <div>giting4        ivan          /export/ivan1    root        
           giting1::tar    giting3       Active     Changelog Crawl  
           2016-08-09 01:14:11</div>
        <div>giting6        ivan          /export/ivan1    root        
           giting1::tar    giting1       Passive    N/A              
           N/A</div>
        <div>giting5        ivan          /export/ivan1    root        
           giting1::tar    giting2       Passive    N/A              
           N/A</div>
        <div><br>
        </div>
        <div>and when I use cmd :</div>
        <div><br>
        </div>
        <div>
          <div># dd if=/dev/zero of=/mnt/ivan/10G_seek_file bs=1M
            count=0 seek=10240</div>
        </div>
        <div><br>
        </div>
        <div>to generate a empty file with 10G size at mount point of
          ivan (source volume),</div>
        <div><br>
        </div>
        <div>because "count=0", this file will not cost real capacity, </div>
        <div><br>
        </div>
        <div># du 10G_seek_file -h will get : </div>
        <div><br>
        </div>
        <div>
          <div>8.0K    10G_seek_file</div>
        </div>
        <div><br>
        </div>
        <div>and I also expect that target volume will have
          10G_seek_file that do not cost capacity.</div>
        <div><br>
        </div>
        <div>but when I check mount point of tar (target volume),</div>
        <div><br>
        </div>
        <div>geo-replication happened, </div>
        <div><br>
        </div>
        <div>but 10G_seek_file in target volume does cost capacity.</div>
        <div><br>
        </div>
        <div># du 10G_seek_file -h will get : </div>
        <div><br>
        </div>
        <div>10G  10G_seek_file. </div>
        <div><br>
        </div>
        <div>I know that geo-rep in gluster using rsync, </div>
        <div><br>
        </div>
        <div>so I using rsync to test the same geo-rep,</div>
        <div><br>
        </div>
        <div>found that if I do rsync  with "-S" option, </div>
        <div><br>
        </div>
        <div>file in target volume will not cost capacity as source
          volume. </div>
        <div><br>
        </div>
        <div>So, is this a bug? </div>
        <div><br>
        </div>
        <div>or is there any configure in gluster can handle this? </div>
        <div><br>
        </div>
        <div>thanks.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a></pre>
    </blockquote>
    <br>
  </body>
</html>