1. 节点间配置文件不一致
使用ceph-deploy mgr create node1 node2 node3 创建mgr进程时,报错:RuntimeError: config file /etc/ceph/ceph.conf exists with different content; use --overwrite-conf to overwrite。提示使用--overwrite-conf
参数去覆盖不一致的配置文件
2. 100.000% pgs not active
[root@cluster9 ceph-cluster]# cd /etc/ceph/ [root@cluster9 ceph]# ceph osd getcrushmap -o /etc/ceph/crushmap 18 [root@cluster9 ceph]# crushtool -d /etc/ceph/crushmap -o /etc/ceph/crushmap.txt [root@cluster9 ceph]# sed -i 's/step chooseleaf firstn 0 type host/step chooseleaf firstn 0 type osd/' /etc/ceph/crushmap.txt [root@cluster9 ceph]# grep 'step chooseleaf' /etc/ceph/crushmap.txt step chooseleaf firstn 0 type osd [root@cluster9 ceph]# crushtool -c /etc/ceph/crushmap.txt -o /etc/ceph/crushmap-new [root@cluster9 ceph]# ceph osd setcrushmap -i /etc/ceph/crushmap-new 19
3. application not enabled on 1 pool(s)
ceph osd pool application enable pool_name rgw
4. admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
vim ceph.conf
配置文件新增 : public_network= 10.192.46.0/24
ceph-deploy --overwrite-conf config push node1