CephFS用户认证格式写错的问题
阅读原文时间:2023年07月08日阅读:1

问题三:

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