使用secretfile挂载cephfs

问题描述 投票:0回答:1

我正在尝试挂载cephfs,密码正常:

mount -t ceph ceph-mon:6789:/docker /mnt/cephfs -o name=admin,secret=admin-pass

但是,如果我使用secretfile,它会失败:

mount -t ceph ceph-mon:6789:/docker /mnt/cephfs -o name=admin,secretfile=/etc/ceph/admin.secret

错误消息显示:

mount: wrong fs type, bad option, bad superblock on ceph-mon:6789:/docker,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

并且dmesg|tail显示

libceph: bad option at 'secretfile=/etc/ceph/admin.secret'

我的ceph客户端版本是0.94,系统是centos6.5。

如何使用secretfile挂载cephfs?

mount ceph
1个回答
2
投票

最后在ceph-users邮件列表中找到了解决方案。在Debian上,需要安装包ceph-fs-common。资料来源:http://lists.ceph.com/pipermail/ceph-users-ceph.com/2013-July/032321.html

© www.soinside.com 2019 - 2024. All rights reserved.