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.
Visit here to download binary for your operating system.
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>
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
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
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.