[Gluster-users] Data Replication

Anuradha Talur atalur at redhat.com
Thu Jun 9 07:05:07 UTC 2016



----- Original Message -----
> From: "TomK" <tk at mdevsys.com>
> To: gluster-users at gluster.org
> Sent: Thursday, June 9, 2016 11:13:36 AM
> Subject: [Gluster-users] Data Replication
> 
> Hey All,
> 
> Still new and learning GlusterFS.  Thanks for bearing with me.
> 
> I cannot writes files from nodes to the glusterfs and see them
> replicated.  I can only write from the master node opennebula01 and see
> the file distributed and replicated.  How do I replicate from the nodes?
> Or am I just asking something that isn't part of the design:
> 

Hi,

Looks like you are doing something that is not part of the design.

This is what I understood from your mail :

glusterv01 and glusterv02 are the nodes that constitute your glusterfs volume.
opennebula01 is where you have "mounted" this gluster volume. You can write/create
files only from this mount such that the files get replicate to both
glusterv01 and glusterv02 nodes. If you directly write into these nodes,
the files won't get replicated.

Does this answer your question? Let me know if it does not.

> [root at mdskvm-p01 glusterv01]# echo "from mdskvm-p01" > from.txt
> [root at mdskvm-p01 glusterv01]# ls -altri
> total 6792232
>         146 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:19
> ouch-10.iso
>         145 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:19
> ouch-09.iso
>         144 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:19
> ouch-08.iso
>         143 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:19
> ouch-07.iso
>         142 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:19
> ouch-06.iso
>         141 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:19
> ouch-05.iso
>         140 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:19
> ouch-04.iso
>         136 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:19
> CentOS-7-x86_64-Minimal-1511.iso
>         137 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:20
> ouch-01.iso
>         139 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:21
> ouch-03.iso
>         138 -rwxr--r--. 1 oneadmin oneadmin 632291328 May 19 01:21
> ouch-02.iso
> 2147483776 drwxr-xr-x. 3 root     root            24 Jun  9 01:29 .trashcan
>         128 drwxr-xr-x. 3 oneadmin oneadmin        23 Jun  9 01:30 ..
>   536871104 drw-------. 9 root     root          4096 Jun  9 01:35
> .glusterfs
>   402653377 -rw-r--r--. 2 root     root             3 Jun  9 01:35 test.txt
>   402653378 -rw-r--r--. 1 root     root            16 Jun  9 01:36 from.txt
>   402653376 drwxr-xr-x. 4 oneadmin oneadmin      4096 Jun  9 01:36 .
> [root at mdskvm-p01 glusterv01]#
> 
> 
> [root at mdskvm-p02 glusterv02]# ls -altri
> total 4
>          64 drwxr-xr-x. 3 root     root      23 Jun  8 19:38 ..
>          67 drw-------. 9 root     root     188 Jun  8 19:45 .glusterfs
> 3221225600 drwxr-xr-x. 4 oneadmin oneadmin  54 Jun  8 19:45 .
> 3221225604 -rw-r--r--. 2 root     root       3 Jun  8 19:45 test.txt
>          74 drwxr-xr-x. 3 root     root      24 Jun  9  2016 .trashcan
> [root at mdskvm-p02 glusterv02]#
> 
> 
> 
> [root at opennebula01 0]# ls -altri
> total 8
> 68736015 drwxr-x---. 7 oneadmin oneadmin   60 May  9 00:19 ..
>         1 drwxr-xr-x. 4 oneadmin oneadmin 4096 Jun  9 01:29 .
>         5 drwxr-xr-x. 3 root     root     4096 Jun  9 01:29 .trashcan
> [root at opennebula01 0]#
> [root at opennebula01 0]#
> [root at opennebula01 0]#
> [root at opennebula01 0]#
> [root at opennebula01 0]# echo "yo" > test.txt
> [root at opennebula01 0]# ls -altri
> total 9
>              68736015 drwxr-x---. 7 oneadmin oneadmin   60 May  9 00:19 ..
>                     1 drwxr-xr-x. 4 oneadmin oneadmin 4096 Jun  8 20:45 .
> 10502401602053818307 -rw-r--r--. 1 root     root        3 Jun  8 20:45
> test.txt
>                     5 drwxr-xr-x. 3 root     root     4096 Jun  9 01:29
> .trashcan
> [root at opennebula01 0]#
> [root at opennebula01 0]#
> 
> 
> 
> Cheers,
> Tom K.
> -------------------------------------------------------------------------------------
> 
> Living on earth is expensive, but it includes a free trip around the sun.
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
> 

-- 
Thanks,
Anuradha.


More information about the Gluster-users mailing list