docker 安装 minio (时间点:2022-09-07) 拉取得最新版本 latest 显示创建于5天前。
Unable to use the drive /data: invalid argument
Error: Read failed. Insufficient number of drives online
Waiting for a minimum of 0 drives to come online
我用这个命令:
docker run -d -p 9000:9000 -p 9001:9001 --name=minio --restart=always --privileged=true -e "MINIO_ROOT_USER=admin" -e "MINIO_ROOT_PASSWORD=12345678" -v /usr/local/dev/dockerdata/minio/data:/data -v /usr/local/dev/dockerdata/minio/config:/root/.minio minio/minio server /data --console-address ":9001" --address ":9000"
然后 docker logs id 试了n次,一直是下边的错误。查阅了各种文档和博客。都没有看到相同的这个错误。有相似的集群部署,但我是单机 没有参考价值。
Unable to use the drive /data: invalid argument
API: SYSTEM()
Time: 06:47:38 UTC 09/07/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:66:cmd.newErasureServerPools()
2: cmd/server-main.go:700:cmd.newObjectLayer()
1: cmd/server-main.go:534:cmd.serverMain()
Waiting for a minimum of 0 drives to come online (elapsed 13s)
Unable to use the drive /data: invalid argument
API: SYSTEM()
Time: 06:47:38 UTC 09/07/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:66:cmd.newErasureServerPools()
2: cmd/server-main.go:700:cmd.newObjectLayer()
1: cmd/server-main.go:534:cmd.serverMain()
Waiting for a minimum of 0 drives to come online (elapsed 13s)
期间用官网的《官网doc汉化链接》简单命令试了一下docker run -p 9000:9000 minio/minio server /data
可以启动成功。但是无法访问提供的API和console的网页。
最后怀疑镜像问题。于是决定找个旧点的镜像试试,在参考了这篇老哥的文章这里
里的旧版本。然后用他的命令(挂载目录改为自己的),终于成功了!文章来源:https://www.toymoban.com/news/detail-561197.html
sudo docker pull minio/minio:RELEASE.2021-04-18T19-26-29Z
sudo docker run \
-d \
--name minio \
--restart=always \
-p 9000:9000 \
-p 9001:9001 \
-e "MINIO_ROOT_USER=minioroot" \
-e "MINIO_ROOT_PASSWORD=minioroot" \
-v /usr/local/dev/dockerdata/minio/data:/data \
-v /usr/local/dev/dockerdata/minio/config:/root/.minio \
minio/minio:RELEASE.2022-02-12T00-51-25Z server /data --console-address ":9001"
ac94f49b84127160d59974654b77988eafa8362f96dc3cb96de315884c424ec0
hanpeng@hanpeng data % docker logs ac94f
API: http://172.17.0.3:9000 http://127.0.0.1:9000
Console: http://172.17.0.3:9001 http://127.0.0.1:9001
Documentation: https://docs.min.io
You are running an older version of MinIO released 6 months ago
Update:
Run `mc admin update`
本来是一个非常简单的任务,现在搞了我一天。为了确认自己的没错,连新建的挂载目录都chmod 777了,有点怀疑是不是镜像的问题,但是疑车无据,官方也不应该把不完善的镜像发上去吧。可是又觉的自己原先的命令没问题。谁知道原因,麻烦评论告知我一下。文章来源地址https://www.toymoban.com/news/detail-561197.html
到了这里,关于minio报错:Unable to use the drive /data: invalid argument的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!