Rate This Document
Findability
Accuracy
Completeness
Readability

Deploying MinIO

Perform the following operations on all the four nodes.

  1. Create an installation directory.
    mkdir -p /opt/minio/{run,data} && mkdir -p /etc/minio
  2. Download the MinIO installation package to /opt/minio/run.
    cd /opt/minio/run
    wget https://dl.min.io/server/minio/release/linux-arm64/archive/minio.RELEASE.2020-12-12T08-39-07Z
  3. Configure the startup file.
    vim /opt/minio/run/run.sh

    Add the following content to the script:

    #!/bin/bash
    export MINIO_ACCESS_KEY=admin
    export MINIO_SECRET_KEY=hpc8912011
    /opt/minio/run/minio.RELEASE.2020-12-12T08-39-07Z server --config-dir /etc/minio \
    http://192.168.122.2/opt/minio/data \
    http://192.168.122.3/opt/minio/data \
    http://192.168.122.4/opt/minio/data \
    http://192.168.122.5/opt/minio/data
    • The default MinIO port is 9000.
    • MINIO_ACCESS_KEY: user name, which contains at least five characters.
    • MINIO_SECRET_KEY: password, which contains at least eight characters. A simple password will cause MinIO startup failure.
    • –config-dir: specifies the directory for storing cluster configuration files.
    • Set the IP address based on the site requirements.
  4. Create a minio.server file.
    vim /usr/lib/systemd/system/minio.service

    Add the following content to the script:

    [Unit]
    Description=Minio service
    Documentation=https://docs.minio.io/
    
    [Service]
    WorkingDirectory=/opt/minio/run/
    ExecStart=/opt/minio/run/run.sh
    
    Restart=on-failure
    RestartSec=5
    
    [Install]
    WantedBy=multi-user.target
  5. Modify the permission.
    chmod +x /usr/lib/systemd/system/minio.service && chmod +x /opt/minio/run/minio.RELEASE.2020-12-12T08-39-07Z && chmod +x /opt/minio/run/run.sh
  6. Start the MinIO cluster.
    systemctl daemon-reload
    systemctl start minio
    systemctl enable minio
  7. Check the cluster status.
    systemctl status minio.service

    If active (running) is displayed, the startup is successful.