Skip to content

Running distributed Erasure on localhost

Krishna Srinivas edited this page Apr 12, 2017 · 1 revision

Terminal-1:

minio server --address localhost:9001 http://localhost:9001/mnt/export/disk1 http://localhost:9002/mnt/export/disk2 http://localhost:9003/mnt/export/disk3 http://localhost:9004/mnt/export/disk4

Terminal-2:

minio server --address localhost:9002 http://localhost:9001/mnt/export/disk1 http://localhost:9002/mnt/export/disk2 http://localhost:9003/mnt/export/disk3 http://localhost:9004/mnt/export/disk4

Terminal-3:

minio server --address localhost:9003 http://localhost:9001/mnt/export/disk1 http://localhost:9002/mnt/export/disk2 http://localhost:9003/mnt/export/disk3 http://localhost:9004/mnt/export/disk4

Terminal-4:

minio server --address localhost:9004 http://localhost:9001/mnt/export/disk1 http://localhost:9002/mnt/export/disk2 http://localhost:9003/mnt/export/disk3 http://localhost:9004/mnt/export/disk4

This should run 4 minio processes in distributed mode.

mc config host add myminio http://localhost:9001 SXO8VW2OFKKP2OG7AC85 CKWSSgrUgvfUMTaNBkB63exet4WW+uNhQvi91Bc3

Now:

mc cp /etc/passwd myminio/test/passwd

This should create erasure coded file on all the backend directories.

if you kill minio on terminal-4 and do:

mc cp /etc/issue myminio/test/issue

The erasure file should not be created on /mnt/export/disk4

Clone this wiki locally