Re: question about creating a replicate volume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You should create the files from the mount point not from the back end to get Gluster's replication and all other features.

-Atin
Sent from one plus one

On 14-Feb-2016 1:00 pm, "songxin" <songxin_1980@xxxxxxx> wrote:
Hi,
I have a question about creating a replicate volume with two bricks as below.

There are two node, A node and B node.A node ip is 128.124.10.1 and B node ip is 128.124.10.2.

operation steps on A node as below
1.gluster peer probe  128.124.10.2
2.mkdir -p /data/brick/gv0
3.cteate two files, a and c.
4.gluster volume create gv0 replica 2 128.124.10.1:/data/brick/gv0 128.124.10.2:/data/brick/gv1 force
5.gluster volume start gv0
6.mount -t glusterfs  128.124.10.1:/gv0 gluster
7.ls glusterfs
8.cat glusterfs/c

operation steps on B node as below
1.mkdir -p /data/brick/gv0
2.cteate two files, b and c.The file c is diffetent with file c in A node.
3.mount -t glusterfs  128.124.10.1:/gv0 gluster
4.ls glusterfs
5.cat glusterfs/c

Node that step 4 on A node is after step step 2 on B node.

I want to know if the files(a b and c) should be replicate after step 5 on A node.
Does it show three files(a, b, c) after command ls glusterfs on both node?
If the file c is diffetent on two node, I want to know how it replicate on two node.

Thanks,
Xin 







 


_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux