<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">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 ; 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<br>
-Shwetha<br>
<br>
On 11/21/2013 08:51 PM, Raphael Rabelo wrote:<br>
</div>
<blockquote
cite="mid:CAMOH6nAZs5Rfp6JZUCsibQtNVvKwq9WYV5LNk3+h1-KDMACK8w@mail.gmail.com"
type="cite">
<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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
</blockquote>
<br>
<br>
</body>
</html>