[Gluster-users] Volume turns read only when one brick is missing
Joe Julian
joe at julianfamily.org
Fri Mar 6 22:42:34 UTC 2015
You set two different types of quorum.
The server quorum will stop a server if it loses quorum. Since you have
three servers, losing one will not interrupt your quorum and your
servers will continue running.
You also set cluster.quorum-type: auto which is a volume quorum. "Auto"
will, "only allow writes if more than half of bricks, or exactly half
including the first, are present". With your volume, that reads as if
you could lose vmhost-2 but not vmhost-1 and retain quorum. I doubt this
is what you were looking for.
I suspect you only wanted the server quorum so just "gluster volume
reset cluster1 cluster.quorum-type"
On 03/06/2015 10:32 AM, Nico Schottelius wrote:
> Hello,
>
> when I reboot one out of the two servers in a replicated setup,
> the volume turns into read only mode until the first server is back.
>
> This is not what I expected and I wonder if I misconfigured anything.
>
> The expected behaviour from my point of view is that the volume stays
> read write and that the rebooting node will catch up again.
>
> My setup consists of three servers, two of them hosting the brick,
> the third one only contributing to the quorom.
>
> Thanks for any hint!
>
> Nico
>
> --------------------------------------------------------------------------------
>
>
> I mount the volume from fstab with this line:
>
> vmhost2-cluster1.place4.ungleich.ch:/cluster1 /var/lib/one/datastores/100 glusterfs defaults,_netdev,backupvolfile-server=vmhost1-cluster1.place4.ungleich.ch 0 0
>
>
>
> [19:10:05] vmhost1-cluster1:~# gluster volume info
>
> Volume Name: cluster1
> Type: Replicate
> Volume ID: b371ec1f-e01e-49f8-9573-e0d1e74bbd90
> Status: Started
> Number of Bricks: 1 x 2 = 2
> Transport-type: tcp
> Bricks:
> Brick1: vmhost1-cluster1.place4.ungleich.ch:/home/gluster
> Brick2: vmhost2-cluster1.place4.ungleich.ch:/home/gluster
> Options Reconfigured:
> nfs.disable: 1
> cluster.ensure-durability: off
> server.allow-insecure: on
> performance.quick-read: off
> performance.read-ahead: off
> performance.io-cache: off
> performance.stat-prefetch: on
> cluster.eager-lock: enable
> network.remote-dio: enable
> cluster.quorum-type: auto
> cluster.server-quorum-type: server
>
> [19:25:15] vmhost1-cluster1:~# gluster peer status
> Number of Peers: 2
>
> Hostname: entrance.place4.ungleich.ch
> Uuid: 987e543e-fbc4-497b-9bc9-ae56086d9421
> State: Peer in Cluster (Connected)
>
> Hostname: 192.168.0.2
> Uuid: 688816e1-aa51-450f-9300-979c4e83e33e
> State: Peer in Cluster (Connected)
> Other names:
> 136.243.38.8
>
>
>
More information about the Gluster-users
mailing list