Re: init mon fail since use service rather than systemctl

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

 



Thanks very much

----- Original Message -----
From: "Alfredo Deza" <adeza@xxxxxxxxxx>
To: "xiang dai" <xiang.dai@xxxxxxxxxxx>
Cc: "ceph-users" <ceph-users@xxxxxxxxxxxxxx>
Sent: Thursday, June 21, 2018 8:42:34 PM
Subject: Re:  init mon fail since use service rather than systemctl

On Thu, Jun 21, 2018 at 8:41 AM,  <xiang.dai@xxxxxxxxxxx> wrote:
> 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?

You are using ceph-deploy version 1.5.25, that has a bug that was
fixed in 1.5.38 regarding systemd detection for CentOS:

http://docs.ceph.com/ceph-deploy/docs/changelog.html#id6


>
> 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
>
-- 
戴翔 
南京天数信息科技有限公司 
电话: +86 1 3382776490 
公司官网: www.sky-data.cn 
免费使用天数润科智能计算平台 SkyDiscovery
_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux