Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

health HEALTH_WARN 64 pgs incomplete; 64 pgs stuck inactive; 64 pgs stuck unclean #95

Closed
mattshma opened this issue Sep 8, 2017 · 0 comments
Labels

Comments

@mattshma
Copy link
Owner

mattshma commented Sep 8, 2017

在根据文档操作过程中,查看 ceph 状态异常:

$ ceph -w
    cluster 78abe680-037c-47a3-872e-cd2858ec11ce
     health HEALTH_ERR
            64 pgs are stuck inactive for more than 300 seconds
            64 pgs stuck inactive
$ ceph osd tree
ID WEIGHT  TYPE NAME              UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 0.51859 root default
-2 0.25929     host svr002
 0 0.25929         osd.0             down        0          1.00000
-3 0.25929     host svr003
 1 0.25929         osd.1             down        0          1.00000

使用的操作系统为 CentOS7,文件系统为 ext4,根据文档说明应在 ceph.conf 中添加如下行:

osd max object name len = 256
osd max object namespace len = 64

然后通过 ceph-deploy --overwrite-conf admin svr002 svr003将配置推送给所有 osd 节点,确保 osd 节点上 ceph 用户对 /etc/ceph/ceph.client.admin.keyring 有可读权限:sudo chmod +r /etc/ceph/ceph.client.admin.keyring后,重新启动 osd 节点:ceph-deploy osd activate svr002:/opt/data/osd2 svr003:/opt/data/osd3即可。

说明: 本过程已在 ceph-cookbook-issue187中进行了说明,为防止之后重新遇到问题,这里简单记录下。

@mattshma mattshma closed this as completed Sep 8, 2017
@mattshma mattshma added the Ceph label Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant