[root@lab8106 ~]# systemctl start ceph-disk@/dev/sdf1 Job for [email protected] failed because the control process exited with error code. See "systemctl status [email protected]" and "journalctl -xe" for details.
Dec 22 10:15:52 lab8106 sh[16334]: main(sys.argv[1:]) Dec 22 10:15:52 lab8106 sh[16334]: File "/usr/lib/python2.7/site-packages/ceph_disk/main.py", line 4962, in main Dec 22 10:15:52 lab8106 sh[16334]: args.func(args) Dec 22 10:15:52 lab8106 sh[16334]: File "/usr/lib/python2.7/site-packages/ceph_disk/main.py", line 4394, in main_trigger Dec 22 10:15:52 lab8106 sh[16334]: raise Error('unrecognized partition type %s' % parttype) Dec 22 10:15:52 lab8106 sh[16334]: ceph_disk.main.Error: Error: unrecognized partition type 0fc63daf-8483-4772-8e79-3d69d8477de4 Dec 22 10:15:52 lab8106 systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE Dec 22 10:15:52 lab8106 systemd[1]: Failed to start Ceph disk activation: /dev/sdf1. Dec 22 10:15:52 lab8106 systemd[1]: Unit [email protected] entered failed state. Dec 22 10:15:52 lab8106 systemd[1]: [email protected] failed.
关键在这句
raise Error(‘unrecognized partition type %s’ % parttype)
检查分区情况,可以看到确实跟另外一种方法部署的OSD情况不同
1 2 3 4 5 6
[root@lab8106 ceph]# ceph-disk list ··· /dev/sde2 ceph journal, for /dev/sde1 /dev/sde1 ceph data, active, cluster ceph, osd.6, journal /dev/sde2 dev/sdf : /dev/sdf1 other, xfs, mounted on /var/lib/ceph/osd/ceph-7