【发布时间】:2021-11-23 13:35:28
【问题描述】:
已经检查了许多帖子、论坛和视频,但我没有看到任何解决方案。
我想用 docker-compose 构建一个包含 4 个不同主机的 MinIO 集群。
有什么解决办法吗?
最近的错误信息:
API: SYSTEM()
Time: 13:26:13 UTC 11/23/2021
Error: Read failed. Insufficient number of disks online (*errors.errorString)
5: cmd/prepare-storage.go:268:cmd.connectLoadInitFormats()
4: cmd/prepare-storage.go:317:cmd.waitForFormatErasure()
3: cmd/erasure-server-pool.go:91:cmd.newErasureServerPools()
2: cmd/server-main.go:637:cmd.newObjectLayer()
1: cmd/server-main.go:542:cmd.serverMain()
Waiting for a minimum of 2 disks to come online (elapsed 1m4s)
Unable to read 'format.json' from http://10.10.10.1:9000/data: Server expects 'storage' API version 'v41', instead found 'v41' - *rolling upgrade is not allowed* - please make sure all servers are running the same MinIO version (DEVELOPMENT.2021-11-09T03-21-45Z)
Unable to read 'format.json' from http://10.10.10.2:9000/data: Server expects 'storage' API version 'v41', instead found 'v41' - *rolling upgrade is not allowed* - please make sure all servers are running the same MinIO version (DEVELOPMENT.2021-11-09T03-21-45Z)
Unable to read 'format.json' from http://10.10.10.3:9000/data: Server expects 'storage' API version 'v41', instead found 'v41' - *rolling upgrade is not allowed* - please make sure all servers are running the same MinIO version (DEVELOPMENT.2021-11-09T03-21-45Z)
Unable to read 'format.json' from http://10.10.10.4:9000/data: Server expects 'storage' API version 'v41', instead found 'v41' - *rolling upgrade is not allowed* - please make sure all servers are running the same MinIO version (DEVELOPMENT.2021-11-09T03-21-45Z)
docker-compose.yml
version: '2'
services:
minio1:
image: 'bitnami/minio:latest'
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ACCESS_KEY=user
- MINIO_SECRET_KEY=pass123
- MINIO_DISTRIBUTED_MODE_ENABLED=yes
- MINIO_DISTRIBUTED_NODES=10.10.10.1,10.10.10.2,10.10.10.3,10.10.10.4
- MINIO_SKIP_CLIENT=yes
volumes:
- data1-1:/data1
- data1-2:/data2
volumes:
data1-1:
data1-2:
networks:
custom:
driver: bridge
【问题讨论】:
标签: docker docker-compose minio