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 ~]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25854343/viewspace-2642445/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ceph-deploy離線部署ceph叢集及報錯解決FAQ
- 【redis叢集安裝】Redis
- zookeeper 叢集安裝
- kafka叢集安裝Kafka
- hbase叢集安裝
- StarRocks 叢集安裝
- cdh 叢集安裝
- hadoop+hbase+zookeeper叢集安裝方法Hadoop
- MariaDB +Centos+MMM 叢集安裝除錯CentOS除錯
- ElasticSearch 6.6.0叢集安裝Elasticsearch
- TiDB叢集安裝TiDB
- Elasticsearch 叢集安裝部署Elasticsearch
- 【Zookeeper】zookeeper叢集安裝
- 記HBase叢集安裝
- Hadoop叢集安裝Hadoop
- Hadoop叢集安裝配置Hadoop
- kubernetes叢集安裝
- elasticsearch叢集安裝(3臺)Elasticsearch
- Storm叢集安裝與部署ORM
- ZooKeeper叢集安裝和部署
- linux ZooKeeper叢集安裝Linux
- WAS叢集安裝配置過程
- Kubernetes 叢集安裝
- 安裝psutil模組報錯的解決方法
- redis cluster 4.0.9 叢集安裝搭建Redis
- WAS中介軟體垂直叢集安裝
- WAS中介軟體水平叢集安裝
- mongo副本集叢集安裝配置Go
- K8S叢集安裝K8S
- CDH5 叢集安裝教程H5
- Hadoop 叢集安裝與配置Hadoop
- hadoop叢集安裝檔案Hadoop
- Flink(四)叢集安裝(二)
- Zookeeper介紹與叢集安裝
- k8s 叢集安裝K8S
- hive使用報錯解決方法Hive
- kaldi的編譯安裝與報錯解決方法編譯
- 安裝ionic 報錯 安裝canvas報錯 解決辦法Canvas