[Gluster-users] question about replicate volume

songxin songxin_1980 at 126.com
Wed Feb 24 05:24:36 UTC 2016



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. gluster volume heal gv0 info split-brain                                                                             //run on A node
8.gluster volume heal gv0 info fulll      


At step 7, should some split-brain entries be presented?




在 2016-02-24 12:55:40,"Ravishankar N" <ravishankar at redhat.com> 写道:

On 02/24/2016 10:21 AM, songxin wrote:





Before step 6, there are some files(a,b,c), that are created at step 5 , in the A brick when volume type is distribute.
Should the files(a,b,c) in A brick be move to another directory before step 6?
And move back, after step 6, when the volume type is changed to replicate?


Not required. Only the newly added brick must be empty.


Thanks,
Xin





在 2016-02-24 12:42:39,"Ravishankar N" <ravishankar at redhat.com> 写道:

Hello,

On 02/24/2016 10:03 AM, songxin wrote:

Hi,
Thank you for answering my question. And I have another question to ask.
If there has been some file(c, d, e) in the B node brick before step 6 as below.And the file c is diffetent with file c created in A mount poin.


Any new brick that you add to a volume has to be empty. It must not contain data or be a brick that was  a part of another volume etc.
Hope that helps,
Ravi



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. gluster volume heal gv0 info split-brain                                                                             //run on A node
8.gluster volume heal gv0 info fulll                                                                                        //run on A node
After step 7, should some split-brain entries be present?
After step 8, should all files (a,b,c,d,e) will be replicate in volume gv0?
If so, how the file c be replicated when the file c is different between A brick  and B brick?









 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160224/283df472/attachment.html>


More information about the Gluster-users mailing list