ceph运维排错
查看出错的详细信息ceph health detail启用资源服务(主要的设置资源池种类,方便做好分类)查看资源池的分类ceph osd pool application get demo查看crash的情况ceph crash ls查看具体的crash情况ceph crash info <id>删除crash报警(如果是误报的话)ceph crash archive <id&g
-
查看出错的详细信息
ceph health detail -
启用资源服务(主要的设置资源池种类,方便做好分类)

-
查看资源池的分类
ceph osd pool application get demo
-
查看crash的情况
ceph crash ls查看具体的crash情况
ceph crash info <id>删除crash报警(如果是误报的话)
ceph crash archive <id>ceph crash archive all直接删除crash
ceph crash rm {crash-id} -
解决时间偏移警告
-
查看当前对应结点时间
ntpd -pn -
先停掉时钟同步
systemctl stop ntpd -
更新时间
npdate {第一步的结果} -
写入到硬时钟,以便机器重启时读取
hwclock -w -
重启时钟服务
systemctl restart ntpd
-
-
如上命令可能会导致执行失败
用以下的命令
其实.asok文件在
/var/run/ceph/文件下ceph --admin-daemon ceph-client.rgw.ceph119.2198988.94410876256936.asok config show|grep sslceph --admin-daemon ceph-client.rgw.ceph119.2198988.94410876256936.asok config set debug_rgw 20注意加上 ” --admin-daemon “
-
认证出现问题一定要查看下客户端与集群内部时间是否一致
集群內部时间查看:就是看ceph的log信息打印的日志时间
客户端时间查看:就是当前linux主机的时间
date -R两者如果不一致将会导致很多错误,这说明两个ntp服务对于分布式存储来说十分重要
比如下面的情况就是因为集群与客户端时间不一致这样引起的
2021-05-08 06:02:53.930 7fb56f405700 5 req 534476 0.000s :list_metadata Failed the auth strategy, reason=-2012 2021-05-08 06:03:09.728 7fb5c44af700 20 req 534711 0.000s :list_metadata rgw::auth::s3::LocalEngine denied with reason=-2012 2021-05-08 06:03:09.728 7fb5c44af700 20 req 534711 0.000s :list_metadata rgw::auth::s3::AWSAuthStrategy denied with reason=-2012 2021-05-08 06:03:09.728 7fb5c44af700 20 req 534711 0.000s :list_metadata rgw::auth::s3::LocalEngine denied with reason=-2012 2021-05-08 06:03:09.728 7fb5c44af700 20 req 534711 0.000s :list_metadata rgw::auth::s3::AWSAuthStrategy denied with reason=-2012 2021-05-08 06:03:09.728 7fb5c44af700 5 req 534711 0.000s :list_metadata Failed the auth strategy, reason=-2012 2021-05-08 06:04:51.089 7fb5e8cf8700 20 req 536010 0.001s :list_metadata rgw::auth::s3::LocalEngine denied with reason=-2012 2021-05-08 06:04:51.089 7fb5e8cf8700 20 req 536010 0.001s :list_metadata rgw::auth::s3::AWSAuthStrategy denied with reason=-2012 2021-05-08 06:04:51.089 7fb5e8cf8700 20 req 536010 0.001s :list_metadata rgw::auth::s3::LocalEngine denied with reason=-2012 2021-05-08 06:04:51.089 7fb5e8cf8700 20 req 536010 0.001s :list_metadata rgw::auth::s3::AWSAuthStrategy denied with reason=-2012 2021-05-08 06:04:51.089 7fb5e8cf8700 5 req 536010 0.001s :list_metadata Failed the auth strategy, reason=-2012 2021-05-08 06:08:24.204 7fb5ecd00700 20 req 537737 0.000s :list_metadata rgw::auth::s3::LocalEngine denied with reason=-2012 2021-05-08 06:08:24.204 7fb5ecd00700 20 req 537737 0.000s :list_metadata rgw::auth::s3::AWSAuthStrategy denied with reason=-2012 2021-05-08 06:08:24.204 7fb5ecd00700 20 req 537737 0.000s :list_metadata rgw::auth::s3::LocalEngine denied with reason=-2012 2021-05-08 06:08:24.204 7fb5ecd00700 20 req 537737 0.000s :list_metadata rgw::auth::s3::AWSAuthStrategy denied with reason=-2012 2021-05-08 06:08:24.204 7fb5ecd00700 5 req 537737 0.000s :list_metadata Failed the auth strategy, reason=-2012 -
user创建不了有可能是因为其email地址与其他user重复了
更多推荐




所有评论(0)