Migrate to new config format v4. ``` { "version": "4", "credential": { "accessKey": "WLGDGYAQYIGI833EV05A", "secretKey": "BYvgJM101sHngl2uzjXS/OBF/aMxAN06JrJ3qJlF" }, "region": "us-east-1", "logger": { "console": { "enable": true, "level": "fatal" }, "file": { "enable": false, "fileName": "", "level": "error" }, "syslog": { "enable": false, "address": "", "level": "debug" } } } ``` This patch also updates [minio cli spec](./minio.md)master
parent
6037fe66e9
commit
484ba91b08
@ -1,14 +1,10 @@ |
||||
#!/bin/bash |
||||
|
||||
if [ "$1" = 'fs' ]; then |
||||
if [ -z "$2" ]; then |
||||
echo "Invalid arguments" |
||||
echo "Usage: fs <export_dir>" |
||||
exit 1 |
||||
else |
||||
/bin/mkdir -p "$2" && /minio init fs "$2" && /minio server |
||||
fi |
||||
## Fix this check when we arrive at XL. |
||||
if [ -z "$1" ]; then |
||||
echo "Invalid arguments" |
||||
echo "Usage: <export_dir>" |
||||
exit 1 |
||||
else |
||||
echo "Usage: fs <export_dir>" |
||||
exit 0 |
||||
/bin/mkdir -p "$2" && /minio server "$2" |
||||
fi |
||||
|
@ -1,32 +1,40 @@ |
||||
# Server command line SPEC. - Tue Mar 22 06:04:42 UTC 2016 |
||||
|
||||
Minio initialize filesystem backend. |
||||
~~~ |
||||
$ minio init fs <path> |
||||
~~~ |
||||
|
||||
Minio initialize XL backend. |
||||
~~~ |
||||
$ minio init xl <url1>...<url16> |
||||
~~~ |
||||
|
||||
For 'fs' backend it starts the server. |
||||
~~~ |
||||
$ minio server |
||||
~~~ |
||||
|
||||
For 'xl' backend it waits for servers to join. |
||||
~~~ |
||||
$ minio server |
||||
... [PROGRESS BAR] of servers connecting |
||||
~~~ |
||||
|
||||
Now on other servers execute 'join' and they connect. |
||||
~~~ |
||||
.... |
||||
minio join <url1> -- from <url2> && minio server |
||||
minio join <url1> -- from <url3> && minio server |
||||
... |
||||
... |
||||
minio join <url1> -- from <url16> && minio server |
||||
~~~ |
||||
# Server command line SPEC - Fri Apr 1 19:49:56 PDT 2016 |
||||
|
||||
## Single disk |
||||
Regular single server, single disk mode. |
||||
``` |
||||
$ minio server <disk> |
||||
``` |
||||
|
||||
## Multi disk |
||||
``` |
||||
$ minio controller start - Start minio controller. |
||||
``` |
||||
Prints a secret token to be used by all parties. |
||||
|
||||
Start all servers without disk with `MINIO_CONTROLLER` env set, start in cluster mode. |
||||
``` |
||||
$ MINIO_CONTROLLER=<host>:<token> minio server |
||||
``` |
||||
|
||||
## Minio Controller cli. |
||||
|
||||
Set controller host and token. |
||||
``` |
||||
$ export MINIO_CONTROLLER=<host>:<token> |
||||
``` |
||||
|
||||
Create a cluster from the pool of nodes. |
||||
``` |
||||
$ minioctl new <clustername> <ip1>:/mnt/disk1 .. <ip16>:/mnt/disk1 |
||||
``` |
||||
|
||||
Start the cluster. |
||||
``` |
||||
$ minioctl start <clustername> |
||||
``` |
||||
|
||||
Stop the cluster |
||||
``` |
||||
$ minioctl stop <clustername> |
||||
``` |
||||
|
Loading…
Reference in new issue