init mon fail since use service rather than systemctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I met below issue:

INFO: initialize ceph mon ...
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.25): /usr/bin/ceph-deploy --overwrite-conf mon create-initial
[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts dx-storage
[ceph_deploy.mon][DEBUG ] detecting platform for host dx-storage ...
[dx-storage][DEBUG ] connected to host: dx-storage
[dx-storage][DEBUG ] detect platform information from remote host
[dx-storage][DEBUG ] detect machine type
[ceph_deploy.mon][INFO  ] distro info: CentOS Linux 7.4.1708 Core
[dx-storage][DEBUG ] determining if provided host has same hostname in remote
[dx-storage][DEBUG ] get remote short hostname
[dx-storage][DEBUG ] deploying mon to dx-storage
[dx-storage][DEBUG ] get remote short hostname
[dx-storage][DEBUG ] remote hostname: dx-storage
[dx-storage][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[dx-storage][DEBUG ] create the mon path if it does not exist
[dx-storage][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-dx-storage/done
[dx-storage][DEBUG ] done path does not exist: /var/lib/ceph/mon/ceph-dx-storage/done
[dx-storage][INFO  ] creating keyring file: /var/lib/ceph/tmp/ceph-dx-storage.mon.keyring
[dx-storage][DEBUG ] create the monitor keyring file
[dx-storage][INFO  ] Running command: ceph-mon --cluster ceph --mkfs -i dx-storage --keyring /var/lib/ceph/tmp/ceph-dx-storage.mon.keyring
[dx-storage][INFO  ] unlinking keyring file /var/lib/ceph/tmp/ceph-dx-storage.mon.keyring
[dx-storage][DEBUG ] create a done file to avoid re-doing the mon deployment
[dx-storage][DEBUG ] create the init path if it does not exist
[dx-storage][DEBUG ] locating the `service` executable...
[dx-storage][INFO  ] Running command: /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.dx-storage
[dx-storage][WARNING] The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
[dx-storage][ERROR ] RuntimeError: command returned non-zero exit status: 2
[ceph_deploy.mon][ERROR ] Failed to execute command: /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.dx-storage
[ceph_deploy][ERROR ] GenericError: Failed to create 1 monitors

My test host is centos7.4, and i think it should call systemctl rather than service, but it still call service and failed.

My systemctl status is running, why ceph choose service rather than systemctl?

Could anyone tell me details?

Thanks in advance.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux