ELMA365 On-Premises > Other > ELMA365 high availability cluster / MinIO without clustering

MinIO without clustering

Several MinIO servers can be connected to create a high availability cluster, re-distributing and duplicating data. Read more in the official documentation: https://docs.min.io/docs/distributed-minio-quickstart-guide.html.

You can find instructions on installing and configuring MinIO on the official website: https://docs.min.io/docs/minio-quickstart-guide.

Basic information

начало внимание

You need at least 2 servers with 2 drives per node to create a MinIO cluster.

конец внимание

This article describes the installation of an external MinIO server without creating a cluster.

In this example, 1 node with the following hostname and IP address is used: minio-server, 192.168.1.41

Step 1: Install MinIO

  1. Download the MinIO server binary file from the official website:

sudo wget https://dl.min.io/server/minio/release/linux-amd64/minio

  1. Make the file executable:

sudo chmod +x minio

  1. Move the file to /usr/local/bin where the launch script will be searching for it:

sudo mv minio /usr/local/bin

  1. Create a new user:

sudo useradd -r minio-user -s /sbin/nologin

  1. Make minio-user the owner of the file:

sudo chown minio-user:minio-user /usr/local/bin/minio

  1. Create a directory where MinIO will store files:

sudo mkdir /usr/local/share/minio

  1. Make minio-user the owner of this directory:

sudo chown minio-user:minio-user /usr/local/share/minio

  1. Create a directory to store MinIO configuration:

sudo mkdir /etc/minio

  1. Make minio-user the owner of this directory:

sudo chown minio-user:minio-user /etc/minio

  1. Using a text editor, create an environment file where the default settings can be changed:

sudo nano /etc/default/minio

  1. Add the following variables to the file:

MINIO_ROOT_USER="elma365user"
MINIO_ROOT_PASSWORD="SecretPassword"
MINIO_VOLUMES="/usr/local/share/minio/"
MINIO_REGION = "us-east-1"
MINIO_OPTS="-C /etc/minio --console-address :9001 --address :9000"

Where:

  • MINIO_ROOT_USER sets the key you will use to access the user interface of the MinIO browser.
  • MINIO_ROOT_PASSWORD sets the private key you will use to enter your credentials in the MinIO interface.
  • MINIO_VOLUMES is the directory where files will be stored.
  • MINIO_OPTS determines where and how the server serves data (in our case, it makes the MinIO service available from all external addresses).
  1. Save and close the file.

Step 2: Create the systemd service for MinIO

  1. Download the MinIO service official file:

sudo curl -O https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/minio.service

  1. Check the content of the minio.service file before you use it by opening it in a text editor:

sudo nano minio.service

  1. Move minio.service into the systemd configuration directory:

sudo mv minio.service /etc/systemd/system

  1. Restart the systemd units:

sudo systemctl daemon-reload

  1. Start the MinIO service and add it to startup:

sudo systemctl enable --now minio

Step 3: Install the MinIO Client tool and create a bucket

  1. Download the MinIO Client tool binary file from the official website:

sudo wget https://dl.min.io/client/mc/release/linux-amd64/mc

  1. Make the file executable:

sudo chmod +x mc

  1. Add an alias to MinIO:

./mc alias set minio http://minio-server.your_domain:9000 elma365user SecretPassword

  1. Create a bucket:

./mc mb minio/s3elma365 --region=us-east-1

Step 4: Connect to ELMA365

Parameters used to establish a connection with MinIO:

  • address: minio-server.your_domain:9000
  • bucket: s3elma365
  • region: us-east-1
  • access key ID: elma365user
  • secret access key: SecretPassword
  • upload method: PUT
  • enable SSL? No

Found a typo? Highlight the text, press ctrl + enter and notify us