Skip to content

Instantly share code, notes, and snippets.

@balamurugana
Last active August 7, 2018 09:54
Show Gist options
  • Save balamurugana/e1a98baf6e7448ec5afc7d4dfc4abbc6 to your computer and use it in GitHub Desktop.
Save balamurugana/e1a98baf6e7448ec5afc7d4dfc4abbc6 to your computer and use it in GitHub Desktop.

Setup information

minio version

$ ./minio version
Version: 2018-08-07T08:28:02Z
Release-Tag: DEVELOPMENT.2018-08-07T08-28-02Z
Commit-ID: d1a1347d4564e4f73086a77311615bab1ce96daa

mc version

$ ./mc version
Version: 2018-08-07T08:27:02Z
Release-tag: DEVELOPMENT.2018-08-07T08-27-02Z
Commit-id: 26f5102eae268a10f07a08f89d1ee3c933c960e4

Servers

Server1: ./minio server --address=localhost:9001 http://localhost:9001/home/bala/tmp/d1  http://localhost:9002/home/bala/tmp/d2  http://localhost:9003/home/bala/tmp/d3  http://localhost:9004/home/bala/tmp/d4
Server2: ./minio server --address=localhost:9002 http://localhost:9001/home/bala/tmp/d1  http://localhost:9002/home/bala/tmp/d2  http://localhost:9003/home/bala/tmp/d3  http://localhost:9004/home/bala/tmp/d4
Server3: ./minio server --address=localhost:9003 http://localhost:9001/home/bala/tmp/d1  http://localhost:9002/home/bala/tmp/d2  http://localhost:9003/home/bala/tmp/d3  http://localhost:9004/home/bala/tmp/d4
Server4: ./minio server --address=localhost:9004 http://localhost:9001/home/bala/tmp/d1  http://localhost:9002/home/bala/tmp/d2  http://localhost:9003/home/bala/tmp/d3  http://localhost:9004/home/bala/tmp/d4

Client:

$ mc config host list
local1      :  http://localhost:9001           minio                 minio123                                  S3v4   auto 

Tests

After all 4 servers started

$ ./mc admin info local1
●  localhost:9001
   Uptime : online since 1 minute ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9002
   Uptime : online since 1 minute ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9003
   Uptime : online since 1 minute ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9004
   Uptime : online since 1 minute ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


After first mc admin info local1

$ ./mc admin info local1
●  localhost:9001
   Uptime : online since 2 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9002
   Uptime : online since 2 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9003
   Uptime : online since 2 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9004
   Uptime : online since 2 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


After second mc admin info local1

$ ./mc admin info local1
●  localhost:9001
   Uptime : online since 3 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9002
   Uptime : online since 3 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9003
   Uptime : online since 3 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9004
   Uptime : online since 3 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


mc admin info local1 after mc mb local1/my-test-bucket

$ ./mc mb local1/my-test-bucket
Bucket created successfully `local1/my-test-bucket`.

$ ./mc admin info local1
●  localhost:9001
   Uptime : online since 4 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 431B, Outgoing 320B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9002
   Uptime : online since 4 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9003
   Uptime : online since 4 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9004
   Uptime : online since 4 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


mc admin info local1 after mc cp 10-mb-file local1/my-test-bucket/10-mb-file

$ ./mc cp ~/tmp/10-mb-file local1/my-test-bucket/10-mb-file
/home/bala/tmp/10-mb-file:      10.00 MB / 10.00 MB ┃▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓┃ 100.00% 65.93 MB/s 0s

$ ./mc admin info local1
●  localhost:9001
   Uptime : online since 9 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 10MiB, Outgoing 2.9KiB
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9002
   Uptime : online since 9 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9003
   Uptime : online since 9 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9004
   Uptime : online since 9 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


mc admin info local1 after mc cp ~/tmp/100-mb-file local1/my-test-bucket/100-mb-file

$ mc cp ~/tmp/100-mb-file local1/my-test-bucket/100-mb-file
/home/bala/tmp/100-mb-file:     100.00 MB / 100.00 MB ┃▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓┃ 100.00% 103.99 MB/s 0s

$ ./mc admin info local1
●  localhost:9001
   Uptime : online since 12 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 110MiB, Outgoing 7.0KiB
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9002
   Uptime : online since 12 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9003
   Uptime : online since 12 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9004
   Uptime : online since 12 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


mc admin info local1 after mc cp local1/my-test-bucket/10-mb-file ~/tmp/f1

$ ./mc cp local1/my-test-bucket/10-mb-file ~/tmp/f1
.../my-test-bucket/10-mb-file:  10.00 MB / 10.00 MB ┃▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓┃ 100.00% 176.09 MB/s 0s

$ ./mc admin info local1
●  localhost:9001
   Uptime : online since 15 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 110MiB, Outgoing 10MiB
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9002
   Uptime : online since 15 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9003
   Uptime : online since 15 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9004
   Uptime : online since 15 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


mc admin info local1 after mc cp local1/my-test-bucket/100-mb-file ~/tmp/f2

$ ./mc cp local1/my-test-bucket/100-mb-file ~/tmp/f2
...my-test-bucket/100-mb-file:  100.00 MB / 100.00 MB ┃▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓┃ 100.00% 209.93 MB/s 0s

$ ./mc admin info local1
●  localhost:9001
   Uptime : online since 17 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 110MiB, Outgoing 110MiB
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9002
   Uptime : online since 17 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9003
   Uptime : online since 17 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


●  localhost:9004
   Uptime : online since 17 minutes ago
  Version : 2018-08-07T08:28:02Z
   Region : 
 SQS ARNs : arn:minio:sqs::1:webhook 
    Stats : Incoming 0B, Outgoing 0B
  Storage : Used 65KiB
    Disks : 4, 0


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment