温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

ceph集群安装报错怎么办

发布时间:2021-10-26 15:41:58 来源:亿速云 阅读:439 作者:小新 栏目:服务器

这篇文章给大家分享的是有关ceph集群安装报错怎么办的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

1.创建密钥时报错

[root@node1 ~]#  ceph-deploy gatherkeys node1

[node1][DEBUG ] get remote short hostname

[node1][DEBUG ] fetch remote file

[node1][INFO  ] Running command: /usr/bin/ceph --connect-timeout=25 --cluster=ceph --admin-daemon=/var/run/ceph/ceph-mon.node1.asok mon_status

[node1][ERROR ] Not yet quorum for 'node1'

[ceph_deploy.gatherkeys][ERROR ] Failed to connect to host:node1

[ceph_deploy.gatherkeys][INFO  ] Destroy temp directory /tmp/tmpMfWp77

[ceph_deploy][ERROR ] RuntimeError: Failed to connect any mon

解决方法:

[root@node1 ~]# systemctl  stop firewalld

[root@node1 ~]# systemctl   disable firewalld

Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

[root@node1 ~]# ceph-deploy --overwrite-conf  mon create-initial

2.使用ceph认证权限问题

[root@node1 ~]# /bin/ceph --cluster=ceph osd stat --format=json

2019-04-25 09:16:31.404 7f5a501ac700 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory

2019-04-25 09:16:31.404 7f5a501ac700 -1 monclient: ERROR: missing keyring, cannot use cephx for authentication

[errno 2] error connecting to the cluster

解决方法:

[root@node1 ~]# find / -name ceph.client.admin.keyring

/root/ceph.client.admin.keyring

[root@node1 ~]# cp -a /root/ceph.client.admin.keyring  /etc/ceph/

[root@node1 ~]# chmod +r ceph.client.admin.keyring

[root@node1 ~]# /bin/ceph --cluster=ceph osd stat --format=json

{"epoch":7,"num_osds":1,"num_up_osds":1,"num_in_osds":1,"full":false,"nearfull":false,"num_remapped_pgs":0}

[root@node1 ~]# ceph health

HEALTH_WARN no active mgr

[root@node1 ~]#

3.使用ceph health显示没有激活mgr

[root@node1 ~]# ceph health

HEALTH_WARN no active mgr

[root@node1 ~]#

解决方法:

[root@node1 ~]# ceph-deploy mgr create node1 node2 node3    --创建mgr进程

[root@node1 ~]# ceph health

HEALTH_OK

[root@node1 ~]# ceph mgr metadata

4.安装好ceph后系统重启报错(进入不了终端)

Restarting network (Via systemctl): Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark,1)

Welcome to emergency mode!Aftle logging in,type "journalcel -xb" to view

system logs,"systemctl reboot" to reboot,"systemctl default" or ^D to

try again to boot into default mode.

Give root password for maintenance

(  Control-D   )

login incorrect

解决方法:

注释osd磁盘分区,不能将osd分区挂载,否则会进入不了系统,也可在分区的defaults后面加入nofail参数,用逗号隔开

[root@node2 ~]# cat /etc/fstab 

# /etc/fstab

# Created by anaconda on Wed Apr 24 20:17:43 2019

# Accessible filesystems, by reference, are maintained under '/dev/disk'

# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

UUID=2096e465-9251-4dd7-93c7-a163adba6209    /                       xfs     defaults        0 0

UUID=76236dfd-510d-4d33-9071-3f2ecfeee3f7     /boot                   xfs     defaults        0 0

#UUID=zDLnfa-iAwr-yp1k-C19m-8oOC-iLmS-agJarY   /data            ext4   defaults        0 0     --注释osd磁盘分区,不能挂载

UUID=e1f86a97-a02f-47aa-bd1e-6aaae4db60f7 swap                     swap    defaults      0 0

[root@node2 ~]# 

感谢各位的阅读!关于“ceph集群安装报错怎么办”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI