ceph - Ceph意外删除client.admin
问题描述
在学习 Ceph 时,我不小心删除了 client.admin 使用
ceph auth del client.admin
现在我明白了
client.admin 认证错误(1) Operation not allowed.Error connected to cluster: PermissionError
每时每刻。
有没有办法恢复或重新创建新的 client.admin?
我试过了
ceph auth import -i /etc/ceph/ceph.client.admin.keyring
和
ceph add client.admin
它对我不起作用。
解决方案
尝试连接 ceph-node-1 上的 mon keyring
ceph -n mon. --keyring /var/lib/ceph/mon/ceph-node-1/keyring get-or-create client.admin mon 'allow *' mds 'allow *' mgr 'allow *' osd 'allow *'
然后更新 /etc/ceph/ceph.client.admin.keyring
推荐阅读
- c++ - 当同一个程序打开两次时,如何使用 C++ 杀死一个程序?
- python-3.x - 附加 15K+ 图像后出现 Numpy 内存错误
- python - Python - 基本算术/变量名
- ios - 访问方法内的变量并允许使用 segue 将其传递给其他视图控制器
- postgresql - 我可以按用户使用 RLS
- java - 将输出作为对象而不是字符串
- ios - Flutter 集成到使用 bitcode 运行的现有 iOS 应用程序中
- c++ - 不能在函数模板中使用 lambda 函数
- android - 这个 SearchView 图标和 Google Play 一样,是默认的还是自定义的?
- javascript - 如果不使用解构赋值,则需要不工作