[Gluster-users] Question re 2-server Mirrored setup

Raghavendra G raghavendra at gluster.com
Wed Jul 29 17:33:34 UTC 2009

----- Original Message -----
From: "Andy Sy" <andy.sy at neotitans.com>
To: gluster-users at gluster.org
Sent: Sunday, July 26, 2009 7:45:28 PM GMT +04:00 Abu Dhabi / Muscat
Subject: [Gluster-users] Question re 2-server Mirrored setup

In the sample config for a 2-server mirror setup at:


both volumes are considered remote and use
tcp as transport-type.  If you intend to use
a local volume as one of the 2 servers in a
mirrored setup, is there any advantage in defining
glusterfs.vol as below?

volume remote
   type protocol/client
   option transport-type tcp
   option remote-host w.x.y.z
   option remote-subvolume brick

volume posix
   type storage/posix
   option directory /localstoragedir

volume local
   type features/posix-locks
   subvolumes posix

volume replicate
   type cluster/replicate
   subvolumes local remote

yes, with read-subvolume specified to be local, reads will be faster. Also, since first child of replicate will be lock-server, keeping the local subvolume as first child will increase performance.

read-subvolume to replicate can be specified using "option read-subvolume local"

Web and IT Consulting
Gluster-users mailing list
Gluster-users at gluster.org

More information about the Gluster-users mailing list