Hi, Want to confirm the following: Would changing just the listing order of "subvolumes" defined in "afr" section in client file mean that when remounting, the data listed would be from the volume which was listed first ? Example : Server A ,Server B are running gluster server and client processes. Server A has main data directory = > */home/data* mounted using glusterfs client under */mnt/gluster/data* on it . Data written under * /mnt/gluster/data* is also replicated to Server B under */home/data_backup*and Server B also has */mnt/gluster/data* mounted on it using gluster client. So in the below client config file ( both server A and B have same client file) If I just change the order : From: * volume afr type cluster/replicate subvolumes A B end-volume* To: *volume afr type cluster/replicate subvolumes B A end-volume* Would that mean that when I remount */mnt/gluster/data ,* data listed under it would be taken from* /home/data_backup* directory from Server B ?. In other words "B" would become "primary" gluster server and "A" would be "secondary" ? Client File: volume A type protocol/client option transport-type tcp option remote-host 10.0.0.1 # IP address of the remote brick option remote-subvolume A end-volume volume B type protocol/client option transport-type tcp option remote-host 10.0.0.2 # IP address of the remote brick option remote-subvolume A_backup # Remote Volume name end-volume volume afr type cluster/replicate subvolumes A B end-volume Thank you. -plf
On Feb 25, 2010, at 2:25 AM, Paras Fadte wrote:> > > Would that mean that when I remount */mnt/gluster/data ,* data listed > under it would be taken from* /home/data_backup* directory from Server B > ?. In other words "B" would become "primary" gluster server and "A" would > be "secondary" ? >There is no "primary" or "secondary" servers when it comes to replicate. Writes are done to all servers synchronously and reads are distributed across all servers. Changing the order would not do anything. However, you must always make sure that the order of subvolumes is the same on all clients, as the first server is used for locking. ------------------------------ Vikas Gorur Engineer - Gluster, Inc. ------------------------------