<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">1. <br>
      <br>
      Option: cluster.read-subvolume<br>
      Default Value: (null)<br>
      Description: inode-read fops happen only on one of the bricks in
      replicate. Afr will prefer the one specified using this option if
      it is not stale. Option value must be one of the xlator names of
      the children. Ex: &lt;volname&gt;-client-0 till
      &lt;volname&gt;-client-&lt;number-of-bricks - 1&gt;<br>
      <br>
      For any volume option information execute "gluster volume set
      help" <br>
      <br>
      2. " find . " will get fetch all the directories entries of the
      mount. When we execute stat on each of file and directory it gets
      the stat structure of the file. <br>
      <br>
      In your case we set the "cluster.read-subvolume" to node-1 is
      because node-1 has all the data and the read has to happen from
      node-1 so that 1) GFID is assigned to the file/directory ( since
      your files/directories were created from backend and doesn't have
      any GFID's yet ) 2) when stat is performed on the file/directory
      the file/directory is self-healed to node-2. <br>
      <br>
      When you use "cluster.read-subvolume"&nbsp; all reads will be going to
      node-1 . Hence suggested to you reset this option as soon as the
      self-heal of data is complete. <br>
      <br>
      -Shwetha<br>
      <br>
      On 11/25/2013 05:40 PM, Raphael Rabelo wrote:<br>
    </div>
    <blockquote
cite="mid:CAMOH6nCQ_h-HkiUUWZ-bL5GR1+DyzWF9XhZ8j7RgnWKrz5VfXw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi guys!
        <div><br>
        </div>
        <div>shwetha,</div>
        <div><br>
        </div>
        <div>Just to understand your sugestion:</div>
        <div><br>
        </div>
        <div>1. What meaning "<span
            style="font-family:arial,sans-serif;font-size:13px">cluster.read-subvolume</span>"?
          I searching something about it, but didn't find anything...&nbsp;</div>
        <div>2. Why i need to exec "xarg stat" to force the gluster
          "read" the file?</div>
        <div><br>
        </div>
        <div>My volume has about 1.2Tb of used space, i can't stop the
          read 'cause my application write/read in a real time...&nbsp;</div>
        <div><br>
        </div>
        <div>Thanks!</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/11/22 Raphael Rabelo <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:rabeloo@gmail.com" target="_blank">rabeloo@gmail.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Thank you!
              <div><br>
              </div>
              <div>I'll try this!</div>
              <div><br>
              </div>
              <div>Best regards.</div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">2013/11/22 shwetha <span
                      dir="ltr">&lt;<a moz-do-not-send="true"
                        href="mailto:spandura@redhat.com"
                        target="_blank">spandura@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">
                        <div>Hi Raphael,<br>
                          <br>
                          Following are the steps to be followed to sync
                          data from node1 to node2 assuming node1 has
                          the data.<br>
                          <br>
                          1. gluster peer probe node1<br>
                          <br>
                          2. gluster volume create gv0 replica 2
                          node1:/data node2:/data<br>
                          <br>
                          3. gluster volume start gv0<br>
                          <br>
                          4. gluster volume set gv0
                          cluster.read-subvolume gv0-client-0<br>
                          <br>
                          5. Create a fuse mount from the client node to
                          the volume : mount -t glusterfs node1:/gv0
                          /mnt/gv0 <br>
                          <br>
                          6. From client node : cd /mnt/gv0 ;&nbsp; find . |
                          xargs stat <br>
                          <br>
                          This should self-heal all your data from node1
                          to node2. <br>
                          <br>
                          Once the self-heal is complete reset the
                          "cluster.read-subvolume" volume option. <br>
                          <br>
                          7. gluster volume reset gv0
                          cluster.read-subvolume<br>
                          <br>
                          8. Unmount the mount point and remount for
                          using it again. <br>
                          <br>
                          Regards<span><font color="#888888"><br>
                              -Shwetha</font></span>
                          <div><br>
                            <br>
                            On 11/21/2013 08:51 PM, Raphael Rabelo
                            wrote:<br>
                          </div>
                        </div>
                        <blockquote type="cite">
                          <div>
                            <div>
                              <div dir="ltr">
                                <div>I guys!<br>
                                  <br>
                                  <br>
                                </div>
                                <div>i have 2 servers in replicate mode,
                                  the node 1 has all data, and the
                                  cluster 2 is empty.<br>
                                </div>
                                <div>I created a volume (gv0) and start
                                  it.<br>
                                  <br>
                                </div>
                                <div>Now, how can I synchronize all
                                  files on the node 1 by the node 2 ?<br>
                                  <br>
                                </div>
                                <div>Steps that I followed:<br>
                                  <br>
                                  gluster peer probe node1<br>
                                  gluster volume create gv0 replica 2
                                  node1:/data node2:/data<br>
                                </div>
                                <div>gluster volume gvo start<br>
                                </div>
                                <div><br>
                                  <br>
                                </div>
                                <div>thanks!<br>
                                </div>
                              </div>
                              <br>
                              <fieldset></fieldset>
                              <br>
                            </div>
                          </div>
                          <div>
                            <pre>_______________________________________________
Gluster-users mailing list
<a moz-do-not-send="true" href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>
<a moz-do-not-send="true" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
                          </div>
                        </blockquote>
                        <br>
                        <br>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
  </body>
</html>