- 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