Hi all, I have a question about replicate volume as below. precondition? 1.A node ip: 128.224.162.163 2.B node ip:128.224.162.255 3.A node brick:/data/brick/gv0 4.B node brick:/data/brick/gv0 reproduce step: 1.gluster peer probe 128.224.162.255 //run on A node 2.gluster volume create gv0 128.224.162.163:/data/brick/gv0 force //run on A node 3.gluster volume start gv0 //run on A node 4.mount -t glusterfs 128.224.162.163:/gv0 gluster //run on A node 5.create some file(a,b,c) in directory gluster //run on A node 6.gluster volume add-brick gv0 replica 2 128.224.162.255:/data/brick/gv0 force //run on A node 7.create some file(d,e,f) in directory gluster //run on A node 8.mount -t glusterfs 128.224.162.163:/gv0 gluster //run on B node 9.ls gluster //run on B node My question is as below. After step 6, the volume type is change from distribute to replicate. The file (a,b,c) is created when the volume type is distribute. The file (d,e,f) is created when the volume type is replicate. After step 6, does the volume will replicate the file (a,b,c) in two brick?Or it just replicate the file(d,e,f) in two brick? If I run "gluster volume heal gv0 full", does the volume will replicate the file (a,b,c) in two brick? Thanks, Xin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160224/d57aaec3/attachment.html>
Hi songxin, please find comment inline. ----- Original Message ----- From: "songxin" <songxin_1980 at 126.com> To: gluster-users at gluster.org Cc: gluster-users at gluster.org Sent: Wednesday, February 24, 2016 7:16:02 AM Subject: [Gluster-users] question about replicate volume Hi all, I have a question about replicate volume as below. precondition? 1.A node ip: 128.224.162.163 2.B node ip:128.224.162.255 3.A node brick:/data/brick/gv0 4. B node brick:/data/brick/gv0 reproduce step: 1. gluster peer probe 128.224.162.255 //run on A node 2.gluster volume create gv0 128.224.162.163 : /data/brick/gv0 force //run on A node 3.gluster volume start gv0 //run on A node 4. mount -t glusterfs 128.224.162.163:/gv0 gluster //run on A node 5.create some file(a,b,c) in directory gluster //run on A node 6. gluster volume add-brick gv0 replica 2 128.224.162.255:/data/brick/gv0 force //run on A node 7. create some file(d,e,f) in directory gluster //run on A node 8. mount -t glusterfs 128.224.162.163:/gv0 gluster //run on B node 9.ls gluster //run on B node My question is as below. After step 6, the volume type is change from distribute to replicate. The file (a,b,c) is created when the volume type is distribute. The file (d,e,f) is created when the volume type is replicate.>>After step 6, does the volume will replicate the file (a,b,c) in two brick?Or it just replicate the file(d,e,f) in two brick?If I run "gluster volume heal gv0 full", does the volume will replicate the file (a,b,c) in two brick? After step 6 volume have converted to replicate volume. So if you create file from mount point it will replicate these file to all replica set. In your case after step 6 it will replicate only file(d,e,f) because before step 6 volume was distributed. For replicating all the file (before step 6) you need to run #gluster volume heal <volname> full. After executing this command file in both replica set should be same. Thanks, ~Gaurav Thanks, Xin _______________________________________________ Gluster-users mailing list Gluster-users at gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
On 02/24/2016 07:16 AM, songxin wrote:> Hi all, > I have a question about replicate volume as below. > > precondition? > 1.A node ip: 128.224.162.163 > 2.B node ip:128.224.162.255 > 3.A node brick:/data/brick/gv0 > 4.B node brick:/data/brick/gv0 > > reproduce step: > 1.gluster peer probe 128.224.162.255 //run on A node > 2.gluster volume create gv0 128.224.162.163:/data/brick/gv0 force > //run on A node > 3.gluster volume start gv0 //run on A node > 4.mount -t glusterfs 128.224.162.163:/gv0 gluster //run on A node > 5.create some file(a,b,c) in directory gluster //run on A node > 6.gluster volume add-brick gv0 replica 2 > 128.224.162.255:/data/brick/gv0 force //run on A node > 7.create some file(d,e,f) in directory gluster //run on A node > 8.mount -t glusterfs 128.224.162.163:/gv0 gluster //run on B node > 9.ls gluster //run on B node > > My question is as below. > > After step 6, the volume type is change from distribute to replicate. > The file (a,b,c) is created when the volume type is distribute. > The file (d,e,f) is created when the volume type is replicate. > > After step 6, does the volume will replicate the file (a,b,c) in two > brick?Or it just replicate the file(d,e,f) in two brick? > If I run "gluster volume heal gv0 full", does the volume will > replicate the file (a,b,c) in two brick? >All files before adding the new brick must be replicated into the new brick after heal full. Anuradha's patches to automatically heal files as a part of add-brick command (without the need to manually run full heal) will be in 3.8. Meanwhile, these steps should help in triggering heals: https://www.mail-archive.com/gluster-users at gluster.org/msg23293.html> Thanks, > Xin > > > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://www.gluster.org/mailman/listinfo/gluster-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160224/30b3a3a1/attachment.html>