1

在 kubectl apply -f cluster.yaml(来自 rook GitHub 存储库的 yaml 示例文件)之后,即使等待 1 小时,我也只有一个 pod rook-ceph-mon-a-*** 在运行。我该如何调查这个问题?

NAME                              READY   STATUS    RESTARTS   AGE
rook-ceph-mon-a-7ff4fd545-qc2wl   1/1     Running   0          20m

并且在单个正在运行的 pod 的日志下方

$ kubectl logs rook-ceph-mon-a-7ff4fd545-qc2wl -n rook-ceph

2019-01-14 17:23:40.578 7f725478c140  0 ceph version 13.2.2 

***

No filesystems configured

2019-01-14 17:23:40.643 7f723a050700  1 mon.a@0(leader).paxosservice(auth 0..0) refresh upgraded, format 3 -> 0
2019-01-14 17:23:40.643 7f723a050700  0 log_channel(cluster) log [DBG] : fsmap
2019-01-14 17:23:40.645 7f723a050700  0 mon.a@0(leader).osd e1 crush map has features 288514050185494528, adjusting msgr requires
2019-01-14 17:23:40.645 7f723a050700  0 mon.a@0(leader).osd e1 crush map has features 288514050185494528, adjusting msgr requires
2019-01-14 17:23:40.645 7f723a050700  0 mon.a@0(leader).osd e1 crush map has features 1009089990564790272, adjusting msgr requires
2019-01-14 17:23:40.645 7f723a050700  0 mon.a@0(leader).osd e1 crush map has features 288514050185494528, adjusting msgr requires
2019-01-14 17:23:40.643443 mon.a unknown.0 - 0 :  [INF] mkfs cb8db53e-2d36-42eb-ab25-2a0918602655
2019-01-14 17:23:40.645 7f723a050700  1 mon.a@0(leader).paxosservice(auth 1..1) refresh upgraded, format 0 -> 3
2019-01-14 17:23:40.647 7f723a050700  0 log_channel(cluster) log [DBG] : osdmap e1: 0 total, 0 up, 0 in
2019-01-14 17:23:40.648 7f723a050700  0 log_channel(cluster) log [DBG] : mgrmap e1: no daemons active
2019-01-14 17:23:40.635473 mon.a mon.0 10.32.0.43:6790/0 1 : cluster [INF] mon.a is new leader, mons a in quorum (ranks 0)
2019-01-14 17:23:40.641926 mon.a mon.0 10.32.0.43:6790/0 2 : cluster [INF] mon.a is new leader, mons a in quorum (ranks 0)
4

2 回答 2

1

假设您已按照此处rook 的 Github 页面中的官方 ceph-quickstart 指南,请先使用以下命令检查有问题的 pod:

kubectl -n rook-ceph get pod

并从他们那里检索日志:

kubectl logs <pod_name>

请更新您的原始问题以包含这些命令输出。

于 2019-01-14T16:08:43.617 回答
0

也许您的旧数据(/var/lib/rook)不为空,我遇到错误,我删除了这些文件。它正在工作!

于 2019-08-09T09:51:18.340 回答