Skip to content

Instantly share code, notes, and snippets.

@harshavardhana
Last active August 21, 2022 19:45
Show Gist options
  • Save harshavardhana/bda9b18d40f9b733e32eaa3b0736ca70 to your computer and use it in GitHub Desktop.
Save harshavardhana/bda9b18d40f9b733e32eaa3b0736ca70 to your computer and use it in GitHub Desktop.

Minio on GlusterFS Volume Guide

This document provides instructions on how to serve a GlusterFS volume across multiple Minio instances. There are no special configuration changes required to enable this feature. Access to files stored on GlusterFS volume are locked and synchronized by default.

Download Minio

Visit here to download binary for your operating system.

Mount GlusterFS

Assuming you have GlusterFS servers running and configured proceed to mount GlusterFS volume at your preferred <mount_point>

mount -t glusterfs <glusterfs_server>:<glusterfs_volume> <mount_point>

Starting Minio NAS Gateway on a shared GlusterFS volume

Run the following commands on all the servers where GlusterFS volume is mounted and accessible. By explicitly passing access and secret keys through the environment variable you make sure that all the minio servers share the same access credentials.

export MINIO_ACCESS_KEY=my-username
export MINIO_SECRET_KEY=my-password
minio gateway nas /mnt/glusterfs

Starting multiple Minio NAS Gateways on a shared GlusterFS volume

To run multiple Minio servers on the same node on shared GlusterFS volume.

export MINIO_ACCESS_KEY=my-username
export MINIO_SECRET_KEY=my-password
minio gateway nas --address ":9001" /mnt/glusterfs
export MINIO_ACCESS_KEY=my-username
export MINIO_SECRET_KEY=my-password
minio gateway nas --address ":9002" /mnt/glusterfs
@luizhpriotto
Copy link

luizhpriotto commented Jan 28, 2022

@go-udy I'm using three glusterfs nodes and two standalone minio server with docker + nginx as reverse proxy, everything works fine until now. Did you have any problem after this comment?

@chrisbecke
Copy link

This doesn't work with SNSD, and gateway mode is deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment