Skip to content

MinIO distributed mode: 4-node erasure-coded S3 storage cluster

Deploy MinIO in Multi-Node Multi-Drive distributed mode across four servers, with the EC parity ratio decision and the operational practices we run in production.

Distributed MinIO — “Multi-Node Multi-Drive” or MNMD — spreads object data across multiple servers with erasure coding, giving you durability against both drive and host failure. Unlike a single-server deployment, the failure domain is the entire host, and the cluster keeps serving reads and writes as long as enough nodes remain to reconstruct from parity. This article documents the four-node bootstrap we use as the production baseline, the EC ratio choice that determines how many hosts you can lose, and the operational reality of healing, expanding, and monitoring an MNMD cluster.

How to verify

# Service status on every node
sudo systemctl status minio
sudo journalctl -u minio --since "10 minutes ago" | tail -20

# Cluster state and per-server drive health
mc admin info cluster
mc admin server info cluster --json | jq '.servers[].drives | length'

# EC parity in effect
mc admin info cluster --json | jq '.info | {mode, sqsStats, storageInfo}'

# Verify quorum and healing
mc admin heal cluster --recursive --dry-run | head -20

What’s happening

MNMD treats the cluster as a single namespace striped across all drives on all nodes. With 4 nodes × 4 drives per node = 16 drives total, MinIO creates erasure sets across them — typically 16 drives in one EC set, or two sets of 8 depending on configuration. Each object is split into data plus parity chunks distributed so that any one node’s drives are not over-represented in a single set; that’s what gives you host-level fault tolerance. The default parity in MNMD is EC:4, meaning 4 chunks of parity per object — you can lose any 4 drives or any 1 entire node before reads start failing.

Quorum matters in two ways. Read quorum requires enough drives online to reconstruct an object — for EC:N, that’s the total drives minus N. Write quorum is stricter: you need a majority of drives online to accept writes. If you lose two nodes simultaneously in a four-node cluster, writes stop until at least one comes back. This is why MNMD is recommended on at least four nodes and EC ratios are tuned for your tolerance.

Healing is automatic but throttled. When a drive comes back online (after a replacement or reboot), MinIO scans objects and rebuilds the chunks that should be on that drive. The default heal speed is conservative to avoid I/O storms during business hours; for capacity-recovery situations you can crank it up with mc admin heal cluster --recursive --force-start, but watch your network and disk I/O during it.

Network is the surprise constraint. MNMD does a lot of inter-node chatter — for each PUT, fragments are sent to every other node holding part of the erasure set. A 10 GbE backbone between nodes is the comfortable minimum; 1 GbE noticeably bottlenecks any write-heavy workload.

The procedure

  1. Provision four servers (minio1 through minio4), each with four equal-sized XFS-formatted drives mounted at /mnt/disk1 through /mnt/disk4. All nodes must have the same drive count and sizes.

  2. Configure passwordless DNS resolution. The MinIO config uses hostnames, and they must resolve identically from every node:

    # /etc/hosts on each node (or your DNS)
    10.0.0.11 minio1
    10.0.0.12 minio2
    10.0.0.13 minio3
    10.0.0.14 minio4
  3. Install the MinIO server binary on every node:

    wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20260101000000.0.0_amd64.deb
    sudo dpkg -i minio_*.deb
    sudo useradd -r minio-user -s /sbin/nologin
    sudo chown -R minio-user:minio-user /mnt/disk*
  4. Create identical /etc/default/minio on each node:

    MINIO_VOLUMES="http://minio{1...4}/mnt/disk{1...4}"
    MINIO_OPTS="--console-address :9001 --address :9000"
    MINIO_ROOT_USER="minioadmin"
    MINIO_ROOT_PASSWORD="<strong-password-same-on-every-node>"
    MINIO_SERVER_URL="https://s3.example.com"
    MINIO_BROWSER_REDIRECT_URL="https://console.example.com"
  5. Open required ports on every node:

    sudo ufw allow from 10.0.0.0/24 to any port 9000 proto tcp
    sudo ufw allow from 10.0.0.0/24 to any port 9001 proto tcp
  6. Start MinIO on all four nodes within 30 seconds of each other. Stagger starts beyond that window cause cluster formation issues:

    # On every node, more or less simultaneously
    sudo systemctl enable --now minio
  7. Verify cluster formation from one node:

    mc alias set cluster http://minio1:9000 minioadmin <password>
    mc admin info cluster
    # Should show 4 servers, 16 drives, all online
  8. Front the cluster with HAProxy or another load balancer that round-robins to the four nodes on port 9000. The S3 SDK uses standard HTTP, so any L7 LB works.

  9. Create users and buckets the same way as single-node, but against the cluster alias:

    mc mb cluster/app-uploads
    mc admin user add cluster app01 <secret>
    mc admin policy attach cluster readwrite --user app01

Common pitfalls

  • Unequal drive counts across nodes break MNMD. Each node must have the exact same number of drives, each the same size. The cluster won’t start otherwise.
  • Starting nodes asynchronously across a long window — MinIO requires near-simultaneous start to form quorum. Use Ansible or a coordinated systemd dependency to launch all nodes within seconds of each other.
  • DNS or /etc/hosts mismatch — if one node resolves minio2 to a different IP than the others do, you get a split-cluster that silently splits writes. Verify resolution from every node.
  • Network MTU mismatch between nodes (one is 9000 jumbo, others are 1500) causes large object writes to fragment and stall. Match MTU across the cluster.
  • Expansion is by adding a server pool (another set of 4+ nodes), not by adding nodes to the existing pool. The existing pool is fixed at deploy time; growth is horizontal across pools.

In the engagements we run, distributed MinIO is the S3-compatible object storage tier for environments where data sovereignty matters — backup targets, ML data lakes, log archives. We deploy with EC:4 across 4-8 nodes, monitor healing throughput and per-drive utilization in Prometheus, and run weekly mc admin heal scans to catch silent bit rot. When a node goes down for kernel patches, write quorum is preserved and the application keeps working — that’s the difference from single-server MinIO.