ceph 安裝過(guò)程中問(wèn)題解決

  • No module named pkg_resources

yum install python-setuptool


  • Ceph 時(shí)鐘偏移問(wèn)題 clock skew detected 解決方案
    1.安裝內(nèi)網(wǎng)ntp服務(wù)
    2.修改ceph.conf,添加以下內(nèi)容
    mon clock drift allowed = 2
    mon clock drift warn backoff = 30
    然后重啟

systemctl restart ceph-mon.target


  • application not enabled on 1 pool(s)
    執(zhí)行ceph health detail,然后找到哪個(gè)pool啟用即可

ceph osd pool application enable .rgw.root rgw


  • 配置s3cmd,添加以下內(nèi)容,不建議用s3cmd --configure配置(太麻煩)

yum -y install s3cmd
cat /root/.s3cfg
[default]
access_key = xxxxxxxxxxxxxxxxxxxxxx
secret_key = 123
host_base = 10.10.10.11
host_bucket = 10.10.10.11/%(bucket)
use_https = False


  • mkfs.xfs無(wú)法格式化問(wèn)題cannot open /dev/sdm: Device or resource busy

for i in dmsetup ls |awk '{print $1}';do dmsetup remove $i;done
然后再格式化硬盤
parted -s /dev/sda mklabel gpt mkpart primary xfs 0% 100%
mkfs.xfs /dev/sda -f

  • ceph集群報(bào)錯(cuò):HEALTH_ERR 1 pgs inconsistent; 1 scrub errors

報(bào)錯(cuò)信息如下:
[root@ceph-6-11 ~]# ceph health detail
HEALTH_ERR 1 pgs inconsistent; 1 scrub errors;
pg 2.37c is active+clean+inconsistent, acting [75,6,35]
1 scrub errors
報(bào)錯(cuò)信息總結(jié):
問(wèn)題PG:2.37c
OSD編號(hào):75,6,35
執(zhí)行常規(guī)修復(fù):
ceph pg repair 2.37c

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容