Hi,I cannot seem to get the file replication to work. I have 2 servers. Both are both clients and servers for the GlusterFS volume.
Each server can connect to it's own local gluster volume and read/write it, but there appears to be no replication taking place. One server's file creation doesn't seem to get replicated to the other server.
My client and server configs are attached. The only difference in the nodes' config is the remote IP address in the client - they connect one mirror via loopback IP and the other via the remote IP.
What am I missing? Thanks. Gordan
volume foo1 type protocol/client option transport-type tcp/client # for TCP/IP transport option remote-host 127.0.0.1 # IP address of the remote brick option remote-subvolume foo # name of the remote volume end-volume volume foo2 type protocol/client option transport-type tcp/client # for TCP/IP transport option remote-host 192.168.3.1 # IP address of the remote brick option remote-subvolume foo # name of the remote volume end-volume volume foo type cluster/afr subvolumes foo1 foo2 end-volume
volume foo type storage/posix # POSIX FS translator option directory /gluster # Export this directory end-volume volume server type protocol/server option transport-type tcp/server # For TCP/IP transport subvolumes foo option auth.ip.foo.allow 192.168.* # Allow access to "foo" volume option auth.ip.foo.allow 127.0.0.1 # Allow access to "foo" volume end-volume