## Intro

MinIO is a popular high-performance, Kubernetes-native object storage server compatible with Amazon S3. Running MinIO in production requires careful planning and ongoing operations to ensure data durability, availability, and performance. This article provides a practical production operations checklist with concrete examples. It is intended for developers, DevOps consultants, and technical startup teams who are responsible for deploying and maintaining MinIO in production environments.

By following this checklist, you will be able to:

- Establish a clear inventory of your MinIO deployment, including versions and topology.

- Configure MinIO safely using best practices, with scoped implementation choices.

- Verify the health and performance of your MinIO cluster with observable checks.

- Understand common failure modes and how to recover from them.

- Maintain and review your MinIO operations with a repeatable checklist.

This guide assumes you have some familiarity with MinIO and object storage concepts. However, we provide explanations and examples that are accessible to those new to production operations.

## Version and Environment Inventory

Before making any changes or performing maintenance on a production MinIO deployment, it is crucial to have a clear understanding of the current environment. This includes the MinIO server version, the underlying infrastructure, the deployment topology, and any relevant configuration files. This inventory serves as a baseline for troubleshooting and planning upgrades.

### Check MinIO Server Version

To check the MinIO server version, you can use the mc (MinIO Client) command-line tool or the MinIO web console. Using mc , connect to your MinIO server and run the version command:

mc version 
 Expected output example:

Version: 2023-05-04T21:44:27Z
Release-Tag: RELEASE.2023-05-04T21-44-27Z
Commit-ID: 6b2e9f0a3a1e 
 Alternatively, you can check the version from the MinIO server logs or by visiting the /minio/health/cluster endpoint.

Why it matters: Knowing the exact version is critical for identifying known issues, planning upgrades, and ensuring compatibility with the client SDKs and tools. Always document the version in your inventory.

### Topology and Hardware Inventory

MinIO can be deployed in various topologies: single-node single-drive (for development only), single-node multi-drive, and distributed multi-node multi-drive. For production, a distributed setup with erasure coding is recommended for data durability and high availability.

Record the following for each MinIO server node:

- Hostname and IP address

- Operating system and kernel version

- CPU, memory, and disk specifications

- Number and size of disks used for MinIO data

- Network interface and bandwidth

- MinIO mount points or directories

Example inventory table:

<div class="my-stack-md overflow-x-auto">
<table class="min-w-[42rem] border-collapse text-left">
<thead><tr><th scope="col" class="border border-outline-variant bg-surface-container-low px-4 py-3 text-left font-label-md font-semibold text-on-surface">Node</th><th scope="col" class="border border-outline-variant bg-surface-container-low px-4 py-3 text-left font-label-md font-semibold text-on-surface">IP Address</th><th scope="col" class="border border-outline-variant bg-surface-container-low px-4 py-3 text-left font-label-md font-semibold text-on-surface">OS</th><th scope="col" class="border border-outline-variant bg-surface-container-low px-4 py-3 text-left font-label-md font-semibold text-on-surface">CPU</th><th scope="col" class="border border-outline-variant bg-surface-container-low px-4 py-3 text-left font-label-md font-semibold text-on-surface">Memory</th><th scope="col" class="border border-outline-variant bg-surface-container-low px-4 py-3 text-left font-label-md font-semibold text-on-surface">Data Disks</th><th scope="col" class="border border-outline-variant bg-surface-container-low px-4 py-3 text-left font-label-md font-semibold text-on-surface">MinIO Data Path</th></tr></thead>
<tbody><tr><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">minio1</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">10.0.0.11</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">Ubuntu 22.04</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">8 vCPU</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">32 GB</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">4 x 2 TB NVMe</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">/mnt/data1 /mnt/data2 /mnt/data3 /mnt/data4</td></tr>
<tr><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">minio2</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">10.0.0.12</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">Ubuntu 22.04</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">8 vCPU</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">32 GB</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">4 x 2 TB NVMe</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">/mnt/data1 /mnt/data2 /mnt/data3 /mnt/data4</td></tr>
<tr><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">minio3</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">10.0.0.13</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">Ubuntu 22.04</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">8 vCPU</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">32 GB</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">4 x 2 TB NVMe</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">/mnt/data1 /mnt/data2 /mnt/data3 /mnt/data4</td></tr>
<tr><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">minio4</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">10.0.0.14</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">Ubuntu 22.04</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">8 vCPU</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">32 GB</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">4 x 2 TB NVMe</td><td class="border border-outline-variant px-4 py-3 align-top text-body-md text-on-surface-variant">/mnt/data1 /mnt/data2 /mnt/data3 /mnt/data4</td></tr></tbody>
</table>
</div>
In a distributed MinIO deployment, all nodes must have identical hardware configurations and disk layouts to ensure balanced performance and reliability. The number of erasure code stripes is determined by the total number of drives across the cluster. For example, with 4 nodes each having 4 drives, you have 16 drives total, and MinIO will use a default erasure set size of 16. This means you can lose up to 8 drives (half) without data loss, assuming at least 8 drives remain online.

Prerequisites for Production:

- All nodes must have synchronized time via NTP.

- DNS or hostname resolution must be consistent across all nodes.

- Firewall rules must allow communication on MinIO ports (default 9000 for API, 9001 for console).

- Dedicated disks or volumes for MinIO data, with no other applications sharing them.

- Adequate memory and CPU; MinIO recommends at least 8 GB RAM per node for production, but more is better for caching.

- Use XFS filesystem for data disks for best performance and consistency.

## Safe Configuration Path

Configuration changes to a production MinIO cluster should be made carefully, with a clear understanding of the impact. Always follow a scoped implementation path: test changes in a staging environment first, then apply to production in a controlled manner, and keep backups of configuration files. MinIO supports configuration via environment variables, configuration files, or the mc admin config command. The recommended approach for production is to use environment variables or a configuration file for static settings, and use mc admin config for dynamic settings that can be applied without restart.

### Example: Configuring MinIO with Environment Variables

When starting MinIO via systemd, you can set environment variables in the service unit file. For example, to set the root user and password, and to enable the console:

[Service]
Environment=MINIO_ROOT_USER=minioadmin
Environment=MINIO_ROOT_PASSWORD=strongpassword
Environment=MINIO_CONSOLE_ADDRESS=:9001
ExecStart=/usr/local/bin/minio server http://minio{1...4}/mnt/data{1...4} --console-address ":9001" 
 After editing the unit file, reload systemd and restart MinIO:

sudo systemctl daemon-reload
sudo systemctl restart minio 
 Verify that MinIO started successfully by checking the status:

sudo systemctl status minio 
 Expected output should show active (running) and recent log lines indicating the server is listening on the expected ports.

Important: Never change the root credentials while the cluster is running without ensuring all nodes are updated simultaneously. A mismatch can cause authentication failures or cluster instability.

### Dynamic Configuration with mc admin config

For many settings, you can use the mc admin config command to change configuration without restarting MinIO. For example, to set the maximum number of concurrent requests per node, you can run:

mc admin config set myminio api max_requests=1000 
 To view current configuration for a subsystem:

mc admin config get myminio api 
 Example output (truncated):

api max_requests=1000 
 Always refer to the MinIO documentation for the exact parameter names and valid values.

### Scoped Implementation Choices

When making changes, consider using a canary approach. For example, if you are updating a configuration that affects all nodes, you might first apply it to a single node (if possible) and observe its behavior. However, many MinIO configurations are cluster-wide and must be consistent, so often changes must be applied to all nodes simultaneously. In such cases, ensure you have a rollback plan.

Example: Changing Erasure Set Size

Erasure set size is a fixed parameter that can only be set at cluster initialization. Changing it requires redeploying the cluster and migrating data. This is a significant operation and should be planned carefully. The scoped path would be:

- Set up a new cluster with the desired erasure set size.

- Use mc mirror or mc cp --recursive to migrate data from the old cluster to the new one.

- Verify data integrity and completeness.

- Switch traffic to the new cluster.

- Decommission the old cluster.

Do not attempt to change erasure set size on a live production cluster.

## Verification and Diagnostics

Regular verification and diagnostics are essential to ensure the health of your MinIO cluster. MinIO provides several built-in endpoints and tools for health checks and performance monitoring.

### Health Check Endpoints

MinIO exposes health check endpoints that can be used for load balancer health checks or monitoring.

- Liveness probe: /minio/health/live returns 200 OK if the server is running.

- Readiness probe: /minio/health/ready returns 200 OK if the server is ready to accept requests.

- Cluster health: /minio/health/cluster returns 200 OK and a JSON payload with health status of each node and drive.

Example using curl :

curl -s http://localhost:9000/minio/health/cluster 
 Example output:

{
 "status": "OK",
 "nodes": [
 {
 "host": "minio1",
 "status": "OK"
 },
 {
 "host": "minio2",
 "status": "OK"
 }
 ]
} 
 If any node or drive is degraded, the status will indicate the issue.

### Using mc admin info

The mc admin info command provides a summary of cluster status, including drive and node health.

mc admin info myminio 
 Example output:

● minio1:9000
 Uptime: 10 hours
 Version: 2023-05-04T21:44:27Z
 Network: 2/2 OK
 Drives: 4/4 OK

● minio2:9000
 Uptime: 10 hours
 Version: 2023-05-04T21:44:27Z
 Network: 2/2 OK
 Drives: 4/4 OK

... 
 Look for any drives that are offline or in a degraded state.

### Monitoring Metrics

MinIO exposes Prometheus metrics at the /minio/prometheus/metrics endpoint. You can scrape this with a Prometheus server and visualize with Grafana.

Example curl to fetch metrics (first few lines):

curl -s http://localhost:9000/minio/prometheus/metrics | head -20 
 Example output:

# HELP minio_node_disk_free_bytes Total free bytes on a disk
# TYPE minio_node_disk_free_bytes gauge
minio_node_disk_free_bytes{disk="/mnt/data1",server="minio1"} 1.8e+12
... 
 Set up alerts for critical metrics like disk usage, network errors, and request rates.

### Performance Diagnostics

For performance diagnostics, you can use the mc admin trace or mc admin top commands to see live request traces and top statistics.

Example of top command:

mc admin top myminio 
 This will show top IPs by request count and bandwidth. Useful for identifying hot spots.

For more detailed tracing, you can use:

mc admin trace myminio --verbose 
 This will output a stream of API calls with latency and status.

Regular diagnostic routine:

- Weekly: Check cluster health, drive status, and disk usage.

- Monthly: Review performance metrics and tune configurations if needed.

- Before any upgrade: Capture a baseline of metrics and health status for comparison.

## Failure Modes and Recovery

Despite best efforts, failures can occur. Understanding common failure modes and having a recovery plan is crucial for minimizing downtime and data loss.

### Drive Failure

MinIO is designed to tolerate drive failures in a distributed setup due to erasure coding. When a drive fails, the cluster continues to operate but in a degraded mode. You should replace the failed drive promptly.

Steps for drive replacement:

- Identify the failed drive using mc admin info or the console.

- Stop the MinIO service on the affected node.

- Replace the physical drive or provision a new disk.

- Format the new disk with the same filesystem (e.g., XFS) and mount it at the same path.

- Start the MinIO service. MinIO will automatically detect the new drive and begin healing.

- Monitor the healing process with mc admin heal command:

mc admin heal -r myminio 
 This will show healing status. You can also use mc admin heal --summary for a summary.

Example heal summary:

Summary:
 Objects: 1500
 Versions: 1500
 Queued: 0
 Healed: 1500
 Failed: 0 
 Ensure healing completes and no failed items remain.

### Node Failure

If an entire node goes down, the cluster can still serve requests as long as a quorum of nodes is available. For a 4-node cluster with 16 drives, you can lose one node (4 drives) and still have enough drives for read/write quorum. However, losing more than half the total drives results in read-only mode or data unavailability.

Recovery steps:

- Bring the node back online. If hardware failure, replace the node with identical specs.

- Ensure the MinIO service starts and joins the cluster automatically.

- If the node was replaced and has new disks, MinIO will heal the data from other nodes.

- Monitor cluster health.

### Corrupted Data or Metadata

MinIO has built-in bitrot protection if you enable it (default in erasure coded setups). If data corruption is detected, MinIO can self-heal by reconstructing from parity shards. However, if corruption is widespread, you may need to restore from backups.

Backup strategy:

Always maintain external backups of critical data. Use mc mirror to replicate data to another MinIO cluster or to a different storage backend. For example, to mirror a bucket to a backup MinIO:

mc mirror --watch myminio/mybucket backupminio/mybucket-backup 
 Regularly test restores to ensure backup integrity.

### Misconfiguration Leading to Downtime

Configuration errors (e.g., wrong credentials, improper network settings) can cause service disruption. Always maintain a copy of the last known good configuration. Use version control for configuration files and environment variables.

Rollback procedure:

- If you changed configuration via mc admin config , you can reset to defaults using mc admin config reset myminio <subsystem> .

- If you changed environment variables and the service fails to start, revert to the previous unit file and restart.

- Have a documented incident response plan.

### Network Partition

In a distributed cluster, network partitions can cause split-brain scenarios. MinIO requires a strict quorum (n/2 + 1) for write operations. During a partition, the minority side will not accept writes to prevent data inconsistency.

Recovery:

- Restore network connectivity.

- The cluster should automatically recover once connectivity is restored.

- If a partition persists, ensure the majority side remains operational and investigate the cause.

## Common Pitfalls and Mistakes

Even experienced operators can fall into traps when running MinIO in production. Here are common pitfalls, why they happen, and how to avoid or recover from them.

### Pitfall 1: Heterogeneous Hardware in Distributed Mode

Why it happens: Teams add nodes with different disk sizes or CPU/RAM specifications to save costs or due to hardware availability.

Consequence: MinIO distributes data based on the total number of drives and erasure set size. Mismatched hardware can lead to uneven data distribution, performance bottlenecks, and reduced fault tolerance.

How to avoid: Always use identical hardware for all nodes in a distributed MinIO deployment. If you need to expand, add a new erasure set with identical hardware or provision a new cluster and migrate data.

Recovery: If you already have heterogeneous nodes, plan to migrate to a homogeneous cluster. Use mc mirror to copy data and switch over.

### Pitfall 2: Incorrect Time Synchronization

Why it happens: NTP is not configured or fails silently, leading to clock drift between nodes.

Consequence: MinIO uses timestamps for object versioning and replication. Clock skew can cause unexpected behavior, including data inconsistency or replication failures.

How to avoid: Configure NTP on all nodes and monitor clock skew. Set up alerts if skew exceeds a threshold (e.g., 1 second).

Recovery: Re-synchronize clocks and restart MinIO services. Investigate NTP issues.

### Pitfall 3: Sharing Data Disks with Other Applications

Why it happens: In resource-constrained environments, teams may place MinIO data on the same physical disks as other applications.

Consequence: Disk contention can cause severe performance degradation and may lead to data corruption if filesystems are not isolated.

How to avoid: Use dedicated disks for MinIO data. If using virtual machines, ensure the underlying storage is dedicated and not overcommitted.

Recovery: Move MinIO data to dedicated disks by following the drive replacement procedure for each disk.

### Pitfall 4: Ignoring Backup and Restore Testing

Why it happens: Backups are configured but never tested, or restore procedures are not documented.

Consequence: In a disaster, backups may be incomplete or unusable, leading to data loss.

How to avoid: Schedule regular restore tests. Automate backup verification and alert on failures.

Recovery: Immediately test restore from your latest backup and fix any issues. Document a clear runbook.

### Pitfall 5: Applying Config Changes Without a Rollback Plan

Why it happens: Changes are made on the fly to address issues, without considering the impact or having a way to revert.

Consequence: A bad configuration change can cause downtime or data unavailability.

How to avoid: Use configuration management tools and version control. Always have a rollback plan and test changes in staging.

Recovery: Revert to the last known good configuration using backups or version control.

## Operations Checklist

To keep your MinIO production environment healthy, use the following repeatable operational checklist. It covers daily, weekly, monthly, and pre/post upgrade tasks.

### Daily Checks

- [ ] Verify cluster health via mc admin info or health endpoint.

- [ ] Check disk space usage on all nodes; ensure sufficient free space.

- [ ] Review system logs for errors or warnings.

- [ ] Monitor request rates and error rates in dashboards.

### Weekly Checks

- [ ] Perform mc admin info and review drive status; replace any failed drives.

- [ ] Check for MinIO updates and security patches.

- [ ] Review backup job status and test restore of a sample object.

- [ ] Verify time synchronization across nodes.

### Monthly Checks

- [ ] Analyze performance metrics and capacity planning.

- [ ] Review and rotate access keys and secrets if necessary.

- [ ] Test disaster recovery procedure in a non-production environment.

- [ ] Audit user access and policies.

### Pre-Upgrade Checklist

- [ ] Read release notes for the new version.

- [ ] Backup MinIO configuration and metadata (e.g., mc admin config export ).

- [ ] Test upgrade in a staging cluster.

- [ ] Schedule a maintenance window.

- [ ] Prepare rollback plan.

### Post-Upgrade Checklist

- [ ] Verify cluster health.

- [ ] Run a smoke test: upload, download, list, and delete objects.

- [ ] Check performance metrics and compare with baseline.

- [ ] Update documentation and inventory.

### Example: Exporting Configuration for Backup

Use mc admin config export to save the current configuration:

mc admin config export myminio > minio-config-backup.txt 
 This exports all environment variables and settings that can be re-imported later with mc admin config import .

### Regular Review Meeting

Hold a monthly operations review meeting with the team to discuss the health of the MinIO deployment, incidents, capacity trends, and upcoming changes. Document decisions and action items.

## Conclusion

Running MinIO in production requires diligent operations. This checklist has provided a structured approach to managing your MinIO deployment, from inventory and configuration to verification, failure recovery, and ongoing operations. By following these practices and using the concrete examples, you can ensure your MinIO cluster remains reliable, performant, and secure.

Adopt this checklist, adapt it to your environment, and continuously improve your operational practices. Your next step is to implement the inventory and health checks in your environment, then schedule regular reviews. With these tools, you can confidently operate MinIO in production.