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