Glusterfs needs quorum, so if you have two servers and one goes down, there is no quorum, so all writes stop until the server comes back up. You can add a third server as an arbiter which does not store data in the bricks, but still uses some minimal space (to keep metadata for the files).
HTH,
DIego
On Wed, Jan 23, 2019 at 3:06 PM Gilberto Nunes <gilberto.nunes32@xxxxxxxxx> wrote:
_______________________________________________Hit there...I have set up two server as replica, like this:gluster vol create Vol01 server1:/data/storage server2:/data/storageThen I create a config file in client, like this:volume remote1type protocol/clientoption transport-type tcpoption remote-host server1option remote-subvolume /data/storageend-volumevolume remote2type protocol/clientoption transport-type tcpoption remote-host server2option remote-subvolume /data/storageend-volumevolume replicatetype cluster/replicatesubvolumes remote1 remote2end-volumevolume writebehindtype performance/write-behindoption window-size 1MBsubvolumes replicateend-volumevolume cachetype performance/io-cacheoption cache-size 512MBsubvolumes writebehindend-volumeAnd add this line in /etc/fstab/etc/glusterfs/datastore.vol /mnt glusterfs defaults,_netdev 0 0After mount /mnt, I can access the servers. So far so good!But when I make server1 crash, I was unable to access /mnt or even usegluster vol statuson server2Everything hangon!I have tried with replicated, distributed and replicated-distributed too.I am using Debian Stretch, with gluster package installed via apt, provided by Standard Debian Repo, glusterfs-server 3.8.8-1I am sorry if this is a newbie question, but glusterfs share it's not suppose to keep online if one server goes down?Any adviced will be welcomeBest---Gilberto Nunes Ferreira(47) 3025-5907(47) 99676-7530 - Whatsapp / TelegramSkype: gilberto.nunes36
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
https://lists.gluster.org/mailman/listinfo/gluster-users
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx https://lists.gluster.org/mailman/listinfo/gluster-users