Docker部署分布式Minio进行的测试和错误

Docker部署分布式Minio进行的测试和错误

两台服务器,计划四个数据块
测试方案1 均在两台服务器上执行 不通过
docker run --privileged -d -it -p 9000:9000 -p 9111:9111 --name minio
--restart=always --net=host
-e "MINIO_ROOT_USER=minio"
-e "MINIO_ROOT_PASSWORD=minio123"
--privileged=true
-v /mydata/minio/data1:/data1
-v /mydata/minio/data2:/data2
-v /mydata/minio/data3:/data3
-v /mydata/minio/data4:/data4
-v /mydata/minio/conf:/root/.minio
minio/minio:RELEASE.2022-01-04T07-41-07Z server http://minio{1...2}/data{1...4}
--console-address ":9111"

测试方案2 均在两台服务器上执行 不通过
docker run --privileged -d --name minio
--restart=always --net=host
-e "MINIO_ROOT_USER=minio"
-e "MINIO_ROOT_PASSWORD=minio123"
--privileged=true
-v /mydata/minio/data1:/data1
-v /mydata/minio/data2:/data2
-v /mydata/minio/data3:/data3
-v /mydata/minio/data4:/data4
-v /mydata/minio/conf:/root/.minio
minio/minio:RELEASE.2022-01-04T07-41-07Z server --address 服务器IP:9000
http://minio{1...2}/data{1...4}

测试方案3 均在两台服务器上执行 不通过
docker run -d --network=host --name minio
--restart=always
--log-opt max-size=100m
-v /etc/timezone:/etc/timezone
-v /etc/localtime:/etc/localtime
-v /mydata/minio/data1:/data1
-v /mydata/minio/data2:/data2
-v /mydata/minio/data3:/data3
-v /mydata/minio/data4:/data4
-e "MINIO_ROOT_USER=minio"
-e "MINIO_ROOT_PASSWORD=minio123"
minio/minio server http://minio{1...2}/data{1...4}

运行结果及报错内容

只记录一种错
API: SYSTEM()
Time: 14:54:49 UTC 10/03/2022
Error: Read failed. Insufficient number of drives online (*errors.errorString)
6: internal/logger/logger.go:259:logger.LogIf()
5: cmd/prepare-storage.go:242:cmd.connectLoadInitFormats()
4: cmd/prepare-storage.go:302:cmd.waitForFormatErasure()
3: cmd/erasure-server-pool.go:109:cmd.newErasureServerPools()
2: cmd/server-main.go:706:cmd.newObjectLayer()
1: cmd/server-main.go:533:cmd.serverMain()
Waiting for a minimum of 4 drives to come online (elapsed 5m33s)

Unable to read 'format.json' from http://minio1:9000/data1: Do not upgrade one server at a time - please follow the recommended guidelines mentioned here https://github.com/minio/minio#upgrading-minio for your environment

Unable to read 'format.json' from http://minio2:9000/data1: Server expects 'storage' API version 'v43', instead found 'v49' - rolling upgrade is not allowed - please make sure all servers are running the same MinIO version (RELEASE.2022-01-04T07-41-07Z)

Unable to read 'format.json' from http://minio1:9000/data2: Do not upgrade one server at a time - please follow the recommended guidelines mentioned here https://github.com/minio/minio#upgrading-minio for your environment

Unable to read 'format.json' from http://minio2:9000/data2: Server expects 'storage' API version 'v43', instead found 'v49' - rolling upgrade is not allowed - please make sure all servers are running the same MinIO version (RELEASE.2022-01-04T07-41-07Z)

Unable to read 'format.json' from http://minio1:9000/data3: Do not upgrade one server at a time - please follow the recommended guidelines mentioned here https://github.com/minio/minio#upgrading-minio for your environment

Unable to read 'format.json' from http://minio2:9000/data3: Server expects 'storage' API version 'v43', instead found 'v49' - rolling upgrade is not allowed - please make sure all servers are running the same MinIO version (RELEASE.2022-01-04T07-41-07Z)

Unable to read 'format.json' from http://minio1:9000/data4: Do not upgrade one server at a time - please follow the recommended guidelines mentioned here https://github.com/minio/minio#upgrading-minio for your environment

Unable to read 'format.json' from http://minio2:9000/data4: Server expects 'storage' API version 'v43', instead found 'v49' - rolling upgrade is not allowed - please make sure all servers are running the same MinIO version (RELEASE.2022-01-04T07-41-07Z)

我想要达到的结果

docker logs minio能正常启动