I guys! i have 2 servers in replicate mode, the node 1 has all data, and the cluster 2 is empty. I created a volume (gv0) and start it. Now, how can I synchronize all files on the node 1 by the node 2 ? Steps that I followed: gluster peer probe node1 gluster volume create gv0 replica 2 node1:/data node2:/data gluster volume gvo start thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20131121/1972e825/attachment.html>
Hello Raphael, as i know you have to use geo-replication for your requirements. A normal replication syncs only the data which are changed when both nodes are ?online?. Greets, Michael Mit freundlichen Gr??en Michael Post -- *********************************************************************** Die Software-Experten PureMatic Die Software-Experten PureMatic betreuen deutschlandweit Unternehmen bei der Integration, Migration und Weiterentwicklung von Unternehmensanwendungen. Das Unternehmen befindet sich 2013 weiter im Wachstum und baut die Gesch?ftsfelder Software, Consulting, Hosting und Unternehmensportale konsequent aus. Die Firma PureMatic ist seit 1999 in den Regionen K?ln/Bonn und Ostwestfalen Lippe (Kreis OWL) vertreten. *********************************************************************** - Webdesign | Softwareentwicklung | Consulting | Hosting | Unternehmensportale - PureMatic, Hermannstra?e 45, 32756 Detmold http://www.purematic.de | Tel: +49 (0)5231 - 701 79 60 Rechtliche Angaben: USt-Id-Nr: DE231782392 | Inhaber: Michael Post> I guys! > > > i have 2 servers in replicate mode, the node 1 has all data, and the cluster 2 is empty. > I created a volume (gv0) and start it. > > Now, how can I synchronize all files on the node 1 by the node 2 ? > > Steps that I followed: > > gluster peer probe node1 > gluster volume create gv0 replica 2 node1:/data node2:/data > gluster volume gvo start > > > thanks! > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://supercolony.gluster.org/mailman/listinfo/gluster-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20131121/982b1d14/attachment.html>
On 11/21/2013 08:51 PM, Raphael Rabelo wrote:> I guys! > > > i have 2 servers in replicate mode, the node 1 has all data, and the > cluster 2 is empty. > I created a volume (gv0) and start it. > > Now, how can I synchronize all files on the node 1 by the node 2 ? > > Steps that I followed: > > gluster peer probe node1 > gluster volume create gv0 replica 2 node1:/data node2:/data > gluster volume gvo start >You would need to mount the volume and then create data. You cannot write to the bricks directly. Instructions on mounting can be found here: http://www.gluster.org/community/documentation/index.php/QuickStart -Vijay
Hi Raphael, Following are the steps to be followed to sync data from node1 to node2 assuming node1 has the data. 1. gluster peer probe node1 2. gluster volume create gv0 replica 2 node1:/data node2:/data 3. gluster volume start gv0 4. gluster volume set gv0 cluster.read-subvolume gv0-client-0 5. Create a fuse mount from the client node to the volume : mount -t glusterfs node1:/gv0 /mnt/gv0 6. From client node : cd /mnt/gv0 ; find . | xargs stat This should self-heal all your data from node1 to node2. Once the self-heal is complete reset the "cluster.read-subvolume" volume option. 7. gluster volume reset gv0 cluster.read-subvolume 8. Unmount the mount point and remount for using it again. Regards -Shwetha On 11/21/2013 08:51 PM, Raphael Rabelo wrote:> I guys! > > > i have 2 servers in replicate mode, the node 1 has all data, and the > cluster 2 is empty. > I created a volume (gv0) and start it. > > Now, how can I synchronize all files on the node 1 by the node 2 ? > > Steps that I followed: > > gluster peer probe node1 > gluster volume create gv0 replica 2 node1:/data node2:/data > gluster volume gvo start > > > thanks! > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://supercolony.gluster.org/mailman/listinfo/gluster-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20131122/e7bc8956/attachment.html>