[Gluster-users] question about replicate volume
ravishankar at redhat.com
Wed Feb 24 04:55:40 UTC 2016
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.
> 在 2016-02-24 12:42:39，"Ravishankar N" <ravishankar at redhat.com> 写道：
> On 02/24/2016 10:03 AM, songxin wrote:
>> 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,
>>> 1.gluster peer probe 184.108.40.206 //run on A node
>>> 2.gluster volume create gv0
>>> 220.127.116.11:/data/brick/gv0 force
>>> //run on A node
>>> 3.gluster volume start gv0 //run on A node
>>> 4.mount -t glusterfs 18.104.22.168:/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
>>> 22.214.171.124:/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...
More information about the Gluster-users