[Gluster-users] Order of subvolumes in afr

Paras Fadte plfgoa at gmail.com
Thu Feb 25 10:25:48 UTC 2010


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


More information about the Gluster-users mailing list