如题,ceph version 0.72.2 配置完毕
执行初始化: mkcephfs -a -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.keyrin 成功。
执行:service ceph start 出错:
root@mon:/var/lib/ceph# service ceph start === mon.a === Starting Ceph mon.a on mon... must specify '--mon-data=foo' data path usage: ceph-mon -i monid [--mon-data=pathtodata] [flags] --debug_mon n debug monitor level (e.g. 10) --mkfs build fresh monitor fs --conf/-c Read configuration from the given configuration file -d Run in foreground, log to stderr. -f Run in foreground, log to usual location. --id/-i set ID portion of my name --name/-n set name (TYPE.ID) --version show version and quit --debug_ms N set message debug level (e.g. 1) failed: ' /usr/bin/ceph-mon -i a -c /etc/ceph/ceph.conf '

监控节点要先起来吧?
解决了,原因是 ceph.conf 配置文件要指定 : [mon] mon data=/date/$name (要新建目录哦)