1. 查看出错的详细信息

    ceph health detail

  2. 启用资源服务(主要的设置资源池种类,方便做好分类)
    image-20201003141032367

  3. 查看资源池的分类

ceph osd pool application get demo

  1. 查看crash的情况

    ceph crash ls

    查看具体的crash情况

    ceph crash info <id>

    删除crash报警(如果是误报的话)

    ceph crash archive <id>

    ceph crash archive all

    直接删除crash

    ceph crash rm {crash-id}

  2. 解决时间偏移警告

    • 查看当前对应结点时间

      ntpd -pn

    • 先停掉时钟同步

      systemctl stop ntpd

    • 更新时间

      npdate {第一步的结果}

    • 写入到硬时钟,以便机器重启时读取

      hwclock -w

    • 重启时钟服务

      systemctl restart ntpd

  3. 代码调试

    如上命令可能会导致执行失败

    用以下的命令

    其实.asok文件在

    /var/run/ceph/文件下

    ceph --admin-daemon ceph-client.rgw.ceph119.2198988.94410876256936.asok config show|grep ssl

    ceph --admin-daemon ceph-client.rgw.ceph119.2198988.94410876256936.asok config set debug_rgw 20

    注意加上 ” --admin-daemon “

  4. 认证出现问题一定要查看下客户端与集群内部时间是否一致

    集群內部时间查看:就是看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
    
  5. user创建不了有可能是因为其email地址与其他user重复了

Logo

一站式 AI 云服务平台

更多推荐