2016-04-07 46 views
0

おはようございます。CEPHモニタを展開できません

私はcephクラスタを展開するために3つの仮想マシンでテスト環境をセットアップしました。 マシンはすべてCentOS7 64bitと同じです。私はそれらのすべてにcephをインストールし、cephはノード1に展開します。私はceph-node1に初期モニターをインストールしましたが、ceph-node2にインストールしようとするとエラーが発生し、それを越えることはできません。私はこれをトラブルシューティングする方法がわかりません。何か案は? [CEPH-ノード2] [WARNIN] public_addrpublic_networkどちらのキーがモニター

のために定義されているので、解決策はceph.confファイルにpublic_addrを追加している:最終的な解決策は警告情報に従うべきで

[[email protected] ~]# ceph-deploy mon create ceph-node2 
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf 
[ceph_deploy.cli][INFO ] Invoked (1.5.25): /usr/bin/ceph-deploy mon create ceph-node2 
[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts ceph-node2 
[ceph_deploy.mon][DEBUG ] detecting platform for host ceph-node2 ... 
[ceph-node2][DEBUG ] connected to host: ceph-node2 
[ceph-node2][DEBUG ] detect platform information from remote host 
[ceph-node2][DEBUG ] detect machine type 
[ceph_deploy.mon][INFO ] distro info: CentOS Linux 7.2.1511 Core 
[ceph-node2][DEBUG ] determining if provided host has same hostname in remote 
[ceph-node2][DEBUG ] get remote short hostname 
[ceph-node2][DEBUG ] deploying mon to ceph-node2 
[ceph-node2][DEBUG ] get remote short hostname 
[ceph-node2][DEBUG ] remote hostname: ceph-node2 
[ceph-node2][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf 
[ceph-node2][DEBUG ] create the mon path if it does not exist 
[ceph-node2][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-ceph-node2/done 
[ceph-node2][DEBUG ] create a done file to avoid re-doing the mon deployment 
[ceph-node2][DEBUG ] create the init path if it does not exist 
[ceph-node2][DEBUG ] locating the `service` executable... 
[ceph-node2][INFO ] Running command: /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.ceph-node2 
[ceph-node2][DEBUG ] === mon.ceph-node2 === 
[ceph-node2][DEBUG ] Starting Ceph mon.ceph-node2 on ceph-node2... 
[ceph-node2][WARNIN] Running as unit ceph-mon.ceph-node2.1460047679.725134876.service. 
[ceph-node2][DEBUG ] Starting ceph-create-keys on ceph-node2... 
[ceph-node2][INFO ] Running command: systemctl enable ceph 
[ceph-node2][WARNIN] ceph.service is not a native service, redirecting to /sbin/chkconfig. 
[ceph-node2][WARNIN] Executing /sbin/chkconfig ceph on 
[ceph-node2][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph-node2.asok mon_status 
[ceph-node2][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory 
[ceph-node2][WARNIN] monitor: mon.ceph-node2, might not be running yet 
[ceph-node2][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph-node2.asok mon_status 
[ceph-node2][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory 
[ceph-node2][WARNIN] ceph-node2 is not defined in `mon initial members` 
[ceph-node2][WARNIN] monitor ceph-node2 does not exist in monmap 
[ceph-node2][WARNIN] neither `public_addr` nor `public_network` keys are defined for monitors 
[ceph-node2][WARNIN] monitors may not be able to form quorum 
+0

私は同じ問題を抱えています。私はその場所のファイルに触れることで問題を解決します。 ERRORに記述されているとおりに名前を付けます。 – Tiina

+0

Tiinaさんに感謝します。正確な場所は?私はエラーメッセージからそれを理解することはできません。 "admin_socket"のエラーは混乱します:D –

+0

あなたの投稿には "/var/run/ceph/ceph-mon.ceph-node2.asok"と書かれています。これは私が思うところです。 – Tiina

答えて

関連する問題