zoukankan      html  css  js  c++  java
  • CephFS用户认证格式写错的问题

    问题三:

    CephFS(James Gallagher)

    问题原文

    Hi,
    I'm looking to implement the CephFS on my Firefly release (v0.80) with an XFS native file system, but so far I'm having some difficulties. After following the ceph/qsg and creating a storage cluster, I have the following topology
    ……

    分析:

    问题提出者在配置了 auth 后,在客户端进行cephfs 挂载的时候,报了文件系统的错误,这个原因是问题提出者没有弄清楚 auth 的格式,而用了主机名去替代了用户名称

    这个地方是在server端去创建用户

    ceph auth get-or-create client.zp mon 'allow *' mds 'allow *' osd 'allow *'
    

    找到认证的key

    ceph auth list 
    

    然后在客户端挂载的格式为

    mount -t ceph 192.168.8.106:6789:/ /mnt -o name=zp,secret={secretkey}
    

    这样就完成了认证模式下的挂载

    总结:

    在ceph的一些操作中,需要弄清楚里面的操作的格式问题,不然会出现一些很奇怪的问题

  • 相关阅读:
    axios 封装
    Git 常用命令行
    React Native 开发环境搭建
    React Native 组件分类
    日期插件rolldate.js的使用
    单图片上传
    使用css完成物流进度的样式
    搜索过滤 以及排序
    v-for的使用方法
    v-if 和v-show 用法
  • 原文地址:https://www.cnblogs.com/zphj1987/p/13575326.html
Copyright © 2011-2022 走看看