Minio / Start Minio Server Cluster Nodes
Start Minio Server Cluster Nodes
Minio server command to initialize nodes for scalable storage on specified addresses.
minio server <node1_hostname> <path/to/data_directory> <node2_hostname> <path/to/data_directory> minio server <node1_hostname> <path/to/data_directory> <node2_hostname> <path/to/data_directory> #!/bin/bash
# Start Minio Server Cluster Nodes
minio server {{node1_hostname}} {{path/to/data_directory}} {{node2_hostname}} {{path/to/data_directory}} import subprocess
# Start Minio Server Cluster Nodes
# Make sure to replace <placeholders> with actual values
def run_command():
cmd = [
"minio",
"server",
"<node1_hostname>",
"<path/to/data_directory>",
"<node2_hostname>",
"<path/to/data_directory>"
]
try:
print(f"Executing: {' '.join(cmd)}")
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
except FileNotFoundError:
print("Error: minio not found. Please install it first.")
if __name__ == "__main__":
run_command() When To Use
During a node failure recovery or scaling operation in an active cluster.
Pro Tip
Use the --address flag to bind the server to a specific network interface for performance tuning.
Command Builder
Tune the command before you copy it
minio server <node1_hostname> <path/to/data_directory> <node2_hostname> <path/to/data_directory> Anatomy of Output
Understanding the result
[INFO] Listening on :9000 Server Start Indicates initial server binding on port 9000.
[INFO] API: /minio/storage/v1 API Endpoint Endpoint URL for accessing storage API.
[INFO] Minio server started successfully Server Status Confirms successful startup of Minio server.
Troubleshooting
Common pitfalls
Error: InvalidArgument: storage directory does not exist
Solution: Ensure the specified data directory exists.
Error: Network error: bind: address already in use
Solution: Check if another process is using the required port.
Error: Unable to parse config, config file malformed
Solution: Validate the JSON/YAML syntax of the Minio configuration file.
Command Breakdown
What each part is doing
-
minio - Base Command
- The executable that performs this operation. Here it runs Minio before the shell applies any redirect operators.
-
<node1_hostname> - node1 hostname
- The host or server name supplied to this command.
-
<path/to/data_directory> - path to data directory
- The directory path supplied to this command.
-
<node2_hostname> - node2 hostname
- The host or server name supplied to this command.
Alternative Approaches
Comparable commands in other tools
Alternative cloud infrastructure tools for the same job.
gcloud compute ssh <user>@<instance> Flyctl / View Status Of Specific Application flyctl status --app <app_name> Aws / Delete Eks Cluster 1608 aws eks delete-cluster --name <cluster_name> Gh / Create Codespace Github Interactively gh cs create Cradle / Submit Elasticsearch Schema cradle elastic map