[Gluster-users] "Fake" distributed-replicated volume
Ravishankar N
ravishankar at redhat.com
Sat Apr 8 04:41:59 UTC 2017
On 04/07/2017 11:34 PM, Jamie Lawrence wrote:
> Greetings, Glusterites -
>
> I have a suboptimal situation, and am wondering if there is any way to create a replica-3 distributed/replicated volume with three machines. I saw in the docs that the create command will fail with multiple bricks on the same peer; is there a way around that/some other way to achieve this?
>
> The reason for this terrible idea is entirely about deadlines interacting with reality. I need to go into production with a new volume I’d really like to be D/R before additional machines arrive.
You can use the force option at the end of the `volume create` command
to make it work for whatever brick placement strategy you wish but since
you anyway have 3 machines, there shouldn't be a need to do that. The
following layout should work:
Node1 Node2 Node3
-------- --------- ---------
B1 B1' B1" <----------3 bricks of a replica subvol
B2 B2' B2"
B3 B3' B3"
and so on. `Volume create` would complain only when you try to place
bricks of the same replica subvol on the same node.
Hope that helps,
Ravi
> Thanks,
>
> -j
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://lists.gluster.org/mailman/listinfo/gluster-users
More information about the Gluster-users
mailing list