- No module named pkg_resources
yum install python-setuptool
- Ceph 时钟偏移问题 clock skew detected 解决方案
1.安装内网ntp服务
2.修改ceph.conf,添加以下内容
mon clock drift allowed = 2
mon clock drift warn backoff = 30
然后重启
systemctl restart ceph-mon.target
- application not enabled on 1 pool(s)
执行ceph health detail,然后找到哪个pool启用即可
ceph osd pool application enable .rgw.root rgw
- 配置s3cmd,添加以下内容,不建议用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无法格式化问题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集群报错:HEALTH_ERR 1 pgs inconsistent; 1 scrub errors
报错信息如下:
[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
报错信息总结:
问题PG:2.37c
OSD编号:75,6,35
执行常规修复:
ceph pg repair 2.37c
网友评论