Order of subvolumes in afr

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

 



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


[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