2

It's true that one can mount a GlusterFS volume on any brick and the FUSE client will automatically discover the other bricks and connect to them as well. If the initial brick fails the client will fail over to one of the other bricks. So, after the initial bootstrap the filesystem is highly available.

However, when you reboot a client host and the brick that you've set it to bootstrap from (e.g. in /etc/fstab) is down then the client won't connect at all, until you manually point it to another brick to bootstrap it.

This can be a problem in a scenario where clients are rebooted or added while the 'primary' brick is down. For example in Amazon AWS, suppose you have two replicating GlusterFS bricks in separate Availability Zones. When the AZ that contains your 'primary' fails or loses connectivity there's a good chance that you'll autoscale additional servers in the other AZ to cope with the increased load there. Since the 'primary' is unreachable those servers can't mount the filesystem, until you configure them to mount the other brick.

How do I make sure clients (new or rebooting) will try to connect to any available brick?

We use Puppet to manage all nodes, including the contents of /etc/fstab, and are using GlusterFS 3.9.

1

If backupvolfile-server option is added while mounting fuse client, when the first volfile server fails, then the server specified in backupvolfile-server option is used as volfile server to mount the client.

glusterfs docs

3
  • Thanks! I just tested that and it works very well. Do you know of a way to reduce the timeout? It currently takes about 130 seconds between retries. – Martijn Heemels Jan 26 '17 at 12:14
  • not offhand, check the docs! – Jacob Evans Jan 26 '17 at 12:14
  • 1
    I will. Thanks again. I'll leave the question open for day to see if other solutions show up, but this will certainly work for me. – Martijn Heemels Jan 26 '17 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.