[Gluster-users] Distributed volumes

Gambit15 dougti+gluster at gmail.com
Wed Feb 8 12:25:14 UTC 2017

Distributed is the default, and replicated distributes as long as there are
at least twice the number of bricks as your replication level.

For example...

gluster volume create gv0 server1:/data/brick1/gv0 server2:/data/brick1/gv0
...distributes files across all three servers/bricks.

gluster volume create gv0 replica 3 server1:/data/brick1/gv0
server2:/data/brick1/gv0 server3:/data/brick1/gv0
...creates a volume across the servers/bricks with 3 replicas. As there are
only 3 servers/bricks, there is nothing to distribute to.

gluster volume create gv0 replica 2 server1:/data/brick1/gv0
server2:/data/brick1/gv0 server3:/data/brick1/gv0 server4:/data/brick1/gv0
...distributes files across server1 & server2, & replicates server1 to
server3 & server2 to server4. (This is purely an example though, as this
particular config would then be vulnerable to split-brain).


On 8 February 2017 at 06:12, Dave Fan <dave.fan at shudun.com> wrote:

> Hi,
> I'm new to Gluster so a very basic question. Are all volumes distributed
> by default? Is there a switch to turn this feature on/off?
> I ask this because in an intro to Gluster I saw "Replicated Volume" and
> "Distributed Replicated Volume". Is the first type, "Replicated Volume",
> not distributed?
> Many thanks,
> Dave
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://lists.gluster.org/mailman/listinfo/gluster-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170208/66b6cba5/attachment.html>

More information about the Gluster-users mailing list