gluster / glusterfs

Gluster Filesystem : Build your distributed storage in minutes
https://www.gluster.org
GNU General Public License v2.0
4.69k stars 1.08k forks source link

mount failed becase two node of three node crash on replica 3 volume #2072

Closed perrynzhou closed 3 years ago

perrynzhou commented 3 years ago

@mohit84 @xhernandez @amarts @BarakSason @mohit84 @tshacked @csabahenk @pranithk after two of three node crash,mount failed on replica 3 volume .but i think if one of three gluster node is active,that should let client mount success, is right? i want to mount success ,even through two of three nodes crash,just one node is alive because we build replica 3 volume.

$ gluster volume info

Volume Name: rep-vol
Type: Replicate
Volume ID: baf14d10-43fe-4b5e-887d-f54bcc2f8fc8
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 3 = 3
Transport-type: tcp
Bricks:
Brick1: 172.16.84.37:/rep-vol/brick
Brick2: 172.16.84.41:/rep-vol/brick
Brick3: 172.16.84.42:/rep-vol/brick
Options Reconfigured:
cluster.background-self-heal-count: 128
performance.enable-least-priority: yes
cluster.self-heal-window-size: 1024
cluster.shd-max-threads: 64
cluster.self-heal-daemon: enable
storage.fips-mode-rchecksum: on
transport.address-family: inet
nfs.disable: on
$ gluster pool list
UUID                                    Hostname        State
7f887aa3-2299-4ed1-ad30-f835e8639cbd    172.16.84.42    Disconnected 
4376327e-10b4-41b0-b5bc-c020c308d181    172.16.84.41    Disconnected 
2033dcbe-c4a5-4c7b-82cb-1938182d6458    localhost       Connected
perrynzhou commented 3 years ago
pranithk commented 3 years ago

Mount succeeds only when lookup succeeds. Lookup fails on plain replica if quorum is not met. So it is working as expected. This behavior is decided because the only replica that is available could have stale/bad data, there is no way to tell.