首页 > 其他分享 >ERROR Unable to initialize backend: no locks available.

ERROR Unable to initialize backend: no locks available.

时间:2022-11-24 13:32:44浏览次数:69  
标签:available minio no gitlab locking locks Unable nfs


ERROR Unable to initialize backend: no locks available.

ERROR Unable to initialize backend: no locks available._解决方案

服务器做了nas共享存储后,修改minio的数据目录为nas共享目录,启动minio服务失败,报错信息如上图所示:

从这个日志来看,应该是minio拿不到nfs文件系统的锁。

解决方案

  1. nfs挂载时加nolock参数
  2. 使用nfsv4,而不是用nfsv3

参考

gitlab底层也是用的minio,gitlab官方文档是这么写的

File locking: GitLab requires advisory file locking, which is only supported natively in NFS version 4. NFSv3 also supports locking as long as Linux Kernel 2.6.5+ is used. We recommend using version 4 and do not specifically test NFSv3

​https://docs.gitlab.com/ee/administration/nfs.html​

ERROR Unable to initialize backend: no locks available._minio_02

总结

最后我们选择了方案2,但是Minio官网是推荐用nfsv4协议挂载,以上就是本篇博客的全部内容


标签:available,minio,no,gitlab,locking,locks,Unable,nfs
From: https://blog.51cto.com/u_4679008/5883591

相关文章