OSD Error after ceph reboot

Source: Internet
Author: User
Tags reset k8s

Here will encounter an err, because the jewel version of CEPH requirements journal need to be Ceph:ceph permissions, the error is as follows:

Journalctl-xeu ceph-osd@9.service

 0月 09:54:05 k8s-master ceph-osd[2848]: Starting Osd.9 at:/0 osd_data/var/lib/c Eph/osd/ceph-9/var/lib/ceph/osd/ceph-9/journal
October 09:54:05 k8s-master ceph-osd[2848]: 2017-10-31 09:54:05.414647 7f0dbf58b800-1 Filestore (/var/lib/ceph/osd/ceph-9) Mount failed to open journal/var/lib/ceph/osd/ Ceph-9/journal: (October)
09:54:05 k8s-master ceph-osd[2848]: 2017-10-31 09:54:05.424957 7f0dbf58b800-1 Osd.9 0 OSD  : Init:unable to Mount object store
October 09:54:05 k8s-master ceph-osd[2848]: 2017-10-31 09:54:05.424985 7f0dbf58b800 -1  * * ERROR:OSD init failed: (Permission) denied

This error can be resolved by executing the following command.

Chown Ceph:ceph/dev/vde[1-4]

Do not forget that all journal disks require permission to modify.

Restart OSD after modification

Systemctl Restart Ceph-osd@9.service

Sometimes the restart is too frequent, the error will be as follows

Job for Ceph-osd@9.service failed because start of the service is attempted too often. See "Systemctl Status Ceph-osd@9.service" and "Journalctl-xe" for details.
To force a start use "Systemctl reset-failed ceph-osd@9.service" followed by "Systemctl start Ceph-osd@9.service" again.

As it says
Execute first

Systemctl reset-failed Ceph-osd@9.service

In the execution

Systemctl start Ceph-osd@9.service or systemctl restart Ceph-osd@9.service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.