ceph-deploy報錯+解決

執行:node

ceph-deploy mon create-initialspa

報錯:ip

[ceph_deploy][ERROR ] KeyNotFoundError: Could not find keyring file: /etc/ceph/ceph.client.admin.keyring on host node1get

[ceph_deploy][ERROR ] KeyNotFoundError: Could not find keyring file: /etc/ceph/ceph.client.admin.keyring on host node2it

[ceph_deploy][ERROR ] KeyNotFoundError: Could not find keyring file: /etc/ceph/ceph.client.admin.keyring on host node3pip

解決:cli

ceph auth get-or-create client.admin mon ‘allow *’ mds ‘allow *’ osd ‘allow *’ –o /etc/ceph/ceph.client.admin.keyringfile

或者db

ceph-create-keys --id node1di

ceph-create-keys --id node2

ceph-create-keys --id node3

報錯2:

[ceph_deploy.mon][ERROR]Some monitors have still not reached quorum:

[ceph_deploy.mon][ERROR]node1

解決:

暫時解決不了,從頭來過就搞定了報錯3:

-------------------------------------------------------------------------------------

執行:rbd list 

報錯3: 

2018-08-19 10:31:08.047481 7f1f6c1d7700 0 -- 192.168.4.1:0/3336722177 >> 192.168.4.2:6804/9634 pipe(0x55db04d46b20 sd=4 :0 s=1 pgs=0 cs=0 l=1 c=0x55db04d45db0).fault

排錯:

[root@node1 ceph-cluster]# ll /dev/vdb{1,2}
brw-rw----. 1 root disk 252, 17 Aug 19 10:24 /dev/vdb1
brw-rw----. 1 root disk 252, 18 Aug 19 10:24 /dev/vdb2

問題所在:/dev/vdb1 /dev/vdb2 全部者不是ceph

解決:

[root@node1 ceph-cluster]# ll /dev/vdb{1,2}
brw-rw----. 1 ceph ceph 252, 17 Aug 19 10:24 /dev/vdb1
brw-rw----. 1 ceph ceph 252, 18 Aug 19 10:24 /dev/vdb2

chown ceph.ceph /dev/vdb{1,2}

[root@node1 ceph-cluster]# ll /dev/vdb{1,2}
brw-rw----. 1 ceph ceph 252, 17 Aug 19 10:24 /dev/vdb1
brw-rw----. 1 ceph ceph 252, 18 Aug 19 10:24 /dev/vdb2

[root@node1 ceph-cluster]# ceph-deploy osd activate node1:/dev/vdc1 node1:/dev/vdd1

[root@node1 ceph-cluster]# ceph-deploy osd activate node2:/dev/vdc1 node2:/dev/vdd1

[root@node1 ceph-cluster]# ceph-deploy osd activate node3:/dev/vdc1 node3:/dev/vdd1

相關文章
相關標籤/搜索