当前位置:网站首页>Minio single node deployment Minio distributed deployment fool deployment process (I)

Minio single node deployment Minio distributed deployment fool deployment process (I)

2022-06-23 07:32:00 Stoblie

An existing requirement requires access to the storage system , After preliminary investigation , Decide to choose minio, Here is minio Simple deployment process for , No problem with the test .

 

One 、 preparation : install docker, Study docker Related knowledge , Learning disk mount

S1: Install the dependency Kit

yum install -y yum-utils 

 S2: Set up a remote warehouse

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

S3: install docker

yum install docker-ce -y

 S4: start-up docker And adding auto start

service docker start        # start-up docker
chkconfig docker on         # chkconfig mysqld on 

S5: see docker edition

docker version

The following provides lazy man installation , Direct execution sh File can :

# install_docker.sh
yum install -y yum-utils
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install docker-ce -y
service docker start
chkconfig docker on
docker version

 

Two 、 Single node deployment minio

2.1  Single node single disk deployment

Single node deployment is divided into single disk deployment 、 Multi disk deployment , Single disk is not recommended here , because minio The erasure code algorithm of requires at least 4 Block disk , Otherwise, the erasure code cannot be applied , Data security and high availability cannot be guaranteed .

MINIO_ACCESS_KEY Login account
MINIO_SECRET_KE The login password

Single disk deployment command :

docker run -it -d -p 9000:9000 --name minio1 \
-e "MINIO_ACCESS_KEY=minio" \  
-e "MINIO_SECRET_KEY=minio123" \
-v /opt/data1:/data1 \
-v /opt/config:/root/.minio 
minio/minio server /data1 

Use it directly : The host machine ip:9000 Can access

Note the attached directory ( When the disk makes ) Must be empty .

 

2.2  Single node multi disk deployment

In the case of multiple disks in a single node , Half of the disk damage can still be read losslessly , But you can't upload , At least half +1 The disk can only be uploaded when it is normal .

Multi disk deployment command :

docker run -it -d -p 9000:9000 --name minio1 \
-e "MINIO_ACCESS_KEY=minio" \
-e "MINIO_SECRET_KEY=minio123" \
-v /opt/data1:/data1 \
-v /opt/data2:/data2 \
-v /opt/data3:/data3 \
-v /opt/data4:/data4 \
-v /opt/config:/root/.minio 
minio/minio server /data1 /data2 /data3 /data4

Multi node deployment is published on  minio Single node deployment minio Distributed deployment Foolproof deployment process ( Two ) in

原网站

版权声明
本文为[Stoblie]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230501155840.html