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的一些操作中,需要弄清楚里面的操作的格式问题,不然会出现一些很奇怪的问题

  • 相关阅读:
    WEB服务器和应用服务器
    java中乱码问题
    面向对象的特征
    数据库中常见的需注意的问题
    String类
    网络编程
    C#泛型基础
    C#中sealed关键字的作用。
    C#自动属性优缺点分析
    TextView属性(转)
  • 原文地址:https://www.cnblogs.com/zphj1987/p/13575326.html
Copyright © 2011-2022 走看看