Re: Distributed volumes

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

 



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 server3:/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).

D

On 8 February 2017 at 06:12, Dave Fan <dave.fan@xxxxxxxxxx> 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@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-users

_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-users

[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