這篇文章給大家分享的是有關(guān)ceph集群安裝報(bào)錯(cuò)怎么辦的內(nèi)容。小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過來看看吧。
創(chuàng)新互聯(lián)公司基于成都重慶香港及美國(guó)等地區(qū)分布式IDC機(jī)房數(shù)據(jù)中心構(gòu)建的電信大帶寬,聯(lián)通大帶寬,移動(dòng)大帶寬,多線BGP大帶寬租用,是為眾多客戶提供專業(yè)服務(wù)器托管報(bào)價(jià),主機(jī)托管價(jià)格性價(jià)比高,為金融證券行業(yè)移動(dòng)服務(wù)器托管,ai人工智能服務(wù)器托管提供bgp線路100M獨(dú)享,G口帶寬及機(jī)柜租用的專業(yè)成都idc公司。1.創(chuàng)建密鑰時(shí)報(bào)錯(cuò)
[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認(rèn)證權(quán)限問題
[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 --創(chuàng)建mgr進(jìn)程
[root@node1 ~]# ceph health
HEALTH_OK
[root@node1 ~]# ceph mgr metadata
4.安裝好ceph后系統(tǒng)重啟報(bào)錯(cuò)(進(jìn)入不了終端)
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磁盤分區(qū),不能將osd分區(qū)掛載,否則會(huì)進(jìn)入不了系統(tǒng),也可在分區(qū)的defaults后面加入nofail參數(shù),用逗號(hào)隔開
[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磁盤分區(qū),不能掛載
UUID=e1f86a97-a02f-47aa-bd1e-6aaae4db60f7 swap swap defaults 0 0
[root@node2 ~]#
感謝各位的閱讀!關(guān)于“ceph集群安裝報(bào)錯(cuò)怎么辦”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!
分享名稱:ceph集群安裝報(bào)錯(cuò)怎么辦-創(chuàng)新互聯(lián)
分享鏈接:http://www.rwnh.cn/article12/dpecdc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制開發(fā)、App開發(fā)、企業(yè)網(wǎng)站制作、商城網(wǎng)站、手機(jī)網(wǎng)站建設(shè)、品牌網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容
網(wǎng)頁(yè)設(shè)計(jì)公司知識(shí)