Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

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
@go-udy

This comment has been minimized.

Copy link

@go-udy go-udy commented Jan 14, 2020

I have gluster mount on three machines. I attached this mount onto docker container in individual machines. Minio container starts fine, I can access the server ui and can login. I can't create a bucket it throws server not initialised error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.